Commit graph

877 commits

Author SHA1 Message Date
Adam Porter
e4fb1cce2e Docs: Explain how caching works
Fixes #132.  Thanks to Mikhail Skorzhinskii (@mskorzhinskiy) for
suggesting.
2020-11-20 08:13:15 -06:00
Adam Porter
f8a531f2be Merge: 0.4.9 2020-11-20 08:01:24 -06:00
Adam Porter
cd819c1e84 Release: 0.4.9 2020-11-20 07:55:55 -06:00
Adam Porter
038c5ae3bf Update changelog, version headers
Released as 0.4.9.
2020-11-20 07:54:44 -06:00
Ihor Radchenko
0f5cf5eff3 Honor restriction when it is set from inside agenda dispatcher 2020-11-20 07:43:03 -06:00
Adam Porter
1a77cb0e18 Tests: Add more sexp link tests 2020-11-18 08:15:47 -06:00
Adam Porter
e2dbeb4620 Notes: Move to meta/notes branch 2020-11-18 04:31:15 -06:00
Adam Porter
6b96c3684d Notes: Update 2020-11-18 04:16:07 -06:00
Adam Porter
dbf5dd3b0b Merge: 0.4.8 2020-11-18 04:14:01 -06:00
Adam Porter
a9c7345066 Notes: Add idea 2020-11-18 03:04:34 -06:00
Adam Porter
29090c4448 Fix: (org-ql--sort-by) Use reverse instead of nreverse
Released as 0.4.8.
2020-11-18 00:18:20 -06:00
Adam Porter
6618318622 Update readme, version header 2020-11-18 00:03:41 -06:00
Imran Khan
d500d28af5 Change nreverse to non-destructive version 2020-11-17 23:58:20 -06:00
Adam Porter
619fd8c403 Notes: Update 2020-11-17 00:37:21 -06:00
Adam Porter
814f3f0eda Notes: Update 2020-11-17 00:25:34 -06:00
Adam Porter
a02514c0dc Tests: Test dynamic block sexp query warning 2020-11-17 00:24:26 -06:00
Adam Porter
71703def04 Change: Query safety checks
- Variable org-ql-ask-unsafe-queries replaces
  org-ql-view-ask-unsafe-links.
- New function: org-ql--ask-unsafe-query.
- Tests: Improve
2020-11-16 23:52:15 -06:00
Adam Porter
0ca6b4b119 Tidy: Docstring 2020-11-16 23:51:24 -06:00
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