Commit graph

709 commits

Author SHA1 Message Date
Adam Porter
d73d28f4c3 Notes: Add idea 2020-11-16 22:13:23 -06:00
Adam Porter
50ba441415 Fix: (org-ql-view-bookmark-handler) Bookmark destructuring
See #147.  Thanks to @tpeacock19 for reporting.
2020-11-16 21:16:09 -06:00
Adam Porter
2a010f29c1 Fix: (org-dblock-write:org-ql) Use org-link-display-format
Fixes #153.  Thanks to @jbriquet for reporting.
2020-11-16 20:08:44 -06:00
Adam Porter
2c14903c76 Notes: Update 2020-11-16 05:53:06 -06:00
Adam Porter
ec0f8c7231 Meta: Update makem.sh, Makefile, test.yml 2020-11-16 05:23:33 -06:00
Adam Porter
244c8290d5 Notes: Update 2020-11-16 05:13:05 -06:00
Adam Porter
badf214db7 Tests: Adjust error message for Org 9.3 and/or Emacs 27.1
I don't know if this is due to the Org 9.3 link change or if something
print/read-related changed in Emacs 27.1, but this should fix the
test, hopefully on both versions.
2020-11-16 05:06:55 -06:00
Adam Porter
673edaca11 Fix: (org-ql-view--link-open) Handle Org 9.3 links
Or try to, anyway...
2020-11-16 04:52:45 -06:00
Adam Porter
9396385fed Tests: Add a couple of asserts
Not absolutely needed now, but they might help in the future if
something changes again.
2020-11-16 04:49:28 -06:00
Adam Porter
12b3b426b5 Tests: Call org-store-link interactively 2020-11-16 04:49:20 -06:00
Adam Porter
5814cff188 Tests: (test.yml) Let lint fail
Some of these lint warnings aren't going to be fixed anytime soon, and
it's more useful to let the tests indicate success in that case.
2020-11-16 03:52:26 -06:00
Adam Porter
c07971cd57 Tidy: Use -let* instead of pcase-let* for plists
This actually only fixes a problem with running the tests, because I
don't have a way to force map-2.1 to be installed into the sandbox, so
the tests on CI always fail.  So for now we just use -let* for this.
2020-11-16 03:49:46 -06:00
Adam Porter
faaa6f7ee9 Test: Tidy
This prevents extra output about buffers without headings.
2020-11-16 03:49:15 -06:00
Adam Porter
c3aa701e57 Tidy: Silence, Checkdoc!
Some of these warnings are too much.
2020-11-16 03:29:10 -06:00
Adam Porter
e9815f39a0 Tests: Fix link-opening test 2020-11-16 03:16:40 -06:00
Adam Porter
7770285002 Fix: (org-ql-view--contract-buffers-files) Non-existent org-directory
Fixes #138.  Fixes #139.  Thanks to Matt Huszagh (@matthuszagh) for
reporting.

This *actually* fixes those issues.  The 0.4.7 release is related to
those issues, but those issues actually arose in code added to
0.5-pre.
2020-11-16 02:41:32 -06:00
Adam Porter
7b1919c2d5 Merge: 0.4.7 2020-11-16 02:29:13 -06:00
Adam Porter
0d12cdb3f5 Fix: (org-ql-search-directories-files) Error unless org-directory
Fixes #139.  Thanks to Matt Huszagh (@matthuszagh) for reporting.

Released as 0.4.7.
2020-11-16 02:25:45 -06:00
Adam Porter
e39fb1be5a Tests: Tidy 2020-11-16 02:11:38 -06:00
Adam Porter
9d86ee9e10 Change/Fix: Bookmark, link storing/loading/safety
This makes several changes and fixes and adds test cases for all the
combinations I'm aware of.

See #147.  Thanks to @tpeacock19 for patiently reporting these issues.

Squashed commit of the following:

commit d1b396c5654ae3fa8ad03d0d4b2cbde20000fa1a
Author: Adam Porter <adam@alphapapa.net>
Date:   Mon Nov 16 02:01:23 2020 -0600

    WIP: Fixes

commit 23215a723c4bf6e249c330863e01029166db56c3
Author: Adam Porter <adam@alphapapa.net>
Date:   Mon Nov 16 01:34:34 2020 -0600

    WIP: Fixes

commit 97b13d09d4d52bb168bfc19fb6f8daf2964f4b6c
Author: Adam Porter <adam@alphapapa.net>
Date:   Mon Nov 16 00:46:49 2020 -0600

    WIP: Test links too

    Everything passes now.

commit 1866a71dbbb6416f7e365c90cadd269765d52b70
Author: Adam Porter <adam@alphapapa.net>
Date:   Sun Nov 15 22:22:22 2020 -0600

    WIP: Test loading/saving bookmarks
2020-11-16 02:02:22 -06:00
Adam Porter
b04d0263a4 Notes: Update 2020-11-15 21:07:51 -06:00
Adam Porter
8a1fd14590 Fix: (org-ql-view--link-store) Indirect buffers
Probably the best thing to do, even if it's not "correct" in a sense.
2020-11-14 22:29:53 -06:00
Adam Porter
dabb812a3c Notes: Update 2020-11-14 22:25:11 -06:00
Adam Porter
5c8260b272 Notes: Add checklist 2020-11-14 20:58:32 -06:00
Adam Porter
511edbfff8 Notes: Make ToC after sorting 2020-11-14 20:58:19 -06:00
Adam Porter
60d0c2a455 Notes: Update 2020-11-14 20:53:30 -06:00
Adam Porter
5b401cd8b7 Tidy: (org-ql-view-bookmark-make-record) 2020-11-14 20:36:28 -06:00
Adam Porter
0a2b751464 Fix: (org-ql-view-bookmark-make-record) List of filenames
Fixes #148.  Thanks to @tpeacock19 for reporting.
2020-11-14 20:35:52 -06:00
Adam Porter
1b12d4e9b0 Fix: (org-ql-view--link-store) Don't re-format formatted queries
org-ql-view--format-query already returns a string.
2020-11-14 05:43:50 -06:00
Adam Porter
4a8deb541e Comment: Add FIXME 2020-11-14 05:43:12 -06:00
Adam Porter
0365b785cc Fix: (org-ql--defpred) Add to predicates variable when compiling
This seems to fix an occasional weird bug encountered when
byte-compiling and loading this file.  I can't explain why it only
happens sometimes, but this seems to fix it, and it stands to reason
why it does, so it seems like the right thing to do.
2020-11-14 05:41:37 -06:00
Adam Porter
89ff02a150 Fix: (org-ql--query-sexp-to-string) Ancestors, etc. queries 2020-11-14 05:40:24 -06:00
Adam Porter
dd30f07942 Notes: Update 2020-11-14 05:22:59 -06:00
Adam Porter
be4e941fc9 Notes: Update 2020-11-13 03:13:48 -06:00
Adam Porter
51f987c6b8 Fix: (org-dblock-write:org-ql) Rename unused variables 2020-11-13 02:45:45 -06:00
Adam Porter
f8b41ea027 Fix: (org-dblock-write:org-ql) Remove unused argument 2020-11-13 02:44:46 -06:00
Adam Porter
b90e6e25d0 Tests: Use test buffer for link safety tests 2020-11-13 02:42:52 -06:00
Adam Porter
56647d4b11 Notes: Update 2020-11-12 05:23:59 -06:00
Adam Porter
cd95d10f05 Add: Dynamic block (property) column 2020-11-12 05:01:20 -06:00
Adam Porter
2b21871a02 Notes: Update 2020-11-12 04:13:47 -06:00
Adam Porter
337bfa6695 Add: (tags-regexp, tags*) Predicate 2020-11-12 04:09:57 -06:00
Adam Porter
cbd4ea89f4 Notes: Update 2020-11-12 03:25:47 -06:00
Adam Porter
f63012dd5a Fix: (org-ql-view--link-store) Rejection of unlinkable buffers
Also, remove the Org <=9.1.4 compatibility code.  It's not worth it.
I'm probably the only person who needs it, anyway, and I can live with
the double-call until I upgrade my Org version.

Fixes #148.  Thanks to @tpeacock19 for reporting.
2020-11-12 02:44:16 -06:00
Adam Porter
284eda87e5 Fix: (org-ql-view--link-store) Test Org version
See #147.  Thanks to @tpeacock19 for reporting.
2020-11-12 02:10:57 -06:00
Adam Porter
a069cf5b2c Notes: Update 2020-11-12 00:28:32 -06:00
Adam Porter
5e790c48ac Tests: Add tests for link safety 2020-11-12 00:22:45 -06:00
Adam Porter
a5d4886880 Fix: (org-ql-view--link-open) Safety check the sort parameter 2020-11-12 00:22:23 -06:00
Adam Porter
689cfd68e7 Fix: (-view--link-open) Set org-super-agenda-allow-unsafe-groups 2020-11-11 22:52:54 -06:00
Adam Porter
6ab74454d0 Fix: (org-ql-view--expand-buffers-files) Remove eval support
This prevents arbitrary code execution when opening "org-ql-search:"
links.  (The links feature was just pushed to master in the last day
or so, and no stable release with the feature has been tagged.)  This
fix also means that arbitrary expressions are no longer accepted when
interactively completing the buffers-files argument to
org-ql-search (a worthy trade, I think; users who need to do that can
call the function from Lisp).
2020-11-11 20:51:24 -06:00
Adam Porter
c2c7efed00 Docs: Update readme
Links can search more than just the current document now.
2020-11-11 20:38:05 -06:00