Commit graph

259 commits

Author SHA1 Message Date
Adam Porter
b448be874a WIP 2020-11-22 17:13:41 -06:00
Adam Porter
f14d84fd48 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
919f7fc010 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
049485b813 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
efae2229ed WIP 2020-11-22 17:13:41 -06:00
Adam Porter
4575a66bed WIP 2020-11-22 17:13:41 -06:00
Adam Porter
1daf3db379 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
8cf4e65ef0 Change: Rename --plain-query to --query-string-to-sexp 2020-11-22 17:13:41 -06:00
Adam Porter
3024f8bc9a WIP 2020-11-22 17:13:41 -06:00
Adam Porter
f861b490ee WIP 2020-11-22 17:13:41 -06:00
Adam Porter
c89beb1bbb WIP 2020-11-22 17:13:41 -06:00
Adam Porter
78375ed958 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
064982bd65 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
6e24af5909 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
0ac7d9860b WIP 2020-11-22 17:13:41 -06:00
Adam Porter
7b3f5618a2 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
45a0afd3f1 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
0d0b6bb808 It works! 2020-11-22 17:13:41 -06:00
Adam Porter
4237f4bc53 WIP 2020-11-22 17:13:41 -06:00
Adam Porter
b8bf23ec1e WIP 2020-11-22 17:12:53 -06:00
Adam Porter
64e4f8de89 WIP 2020-11-22 17:12:53 -06:00
Adam Porter
5f1dc17e68 WIP 2020-11-22 17:12:53 -06:00
Adam Porter
eb92910512 WIP 2020-11-22 17:12:53 -06:00
Adam Porter
bde0a0be5f WIP
This might actually work
2020-11-22 17:12:53 -06:00
Adam Porter
2aa8e84fc9 Fix: peg-related compiler warnings 2020-11-22 17:09:36 -06:00
Adam Porter
dbf5dd3b0b Merge: 0.4.8 2020-11-18 04:14:01 -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
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
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
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
337bfa6695 Add: (tags-regexp, tags*) Predicate 2020-11-12 04:09:57 -06:00
Adam Porter
e15cc3eb76 Add: (--query-sexp-to-string) 2020-11-11 19:52:24 -06:00
Adam Porter
73da48d9da Comment: Add FIXMEs 2020-11-11 00:23:32 -06:00
Adam Porter
2e469fa547 Tidy: (org-ql--peg-parse-string) Silence, Checkdoc! 2020-11-10 04:14:44 -06:00
Adam Porter
5e61d1b326 Fix: (org-ql--peg-parse-string) Unused lexical variable warning
peg.el doesn't use lexical binding, and org-ql.el does, so this caused
a byte-compile warning.  It doesn't seem to change the behavior of the
expanded code, so it should be a safe change...
2020-11-05 11:28:22 -06:00
Adam Porter
6633dbb276 Release: 0.4.6
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iEYEABECAAYFAl8L0BwACgkQ5+GdyTDsrJsFVQCdGz0i4KXwrnqcQC7Ov5/b+YSH
 lUEAoIJBRRJ462lJbe4nzkOkrB3VMIGF
 =JOpa
 -----END PGP SIGNATURE-----

Merge: 0.4.6
2020-07-12 22:09:03 -05:00
Adam Porter
0080055690 Fix: Copy macro peg-parse-string from peg-tests.el
Unfortunately, the macro was moved from peg.el to peg-tests.el in
later versions of peg, so we copy it for our use here.

Fixes #75.  Thanks to Karl Voit (@novoid) and @karlicoss for
reporting.

Released as 0.4.6.
2020-07-12 22:08:01 -05:00
Adam Porter
c847afe0b5 Merge: 0.4.5 2020-05-01 06:31:45 -05:00
Adam Porter
5a031bf5c1 Fix: (org-ql--select) Bind case-fold-search only around preamble
Fixes #114.  Thanks to @bitclick for reporting.

Released as 0.4.5.
2020-05-01 06:27:30 -05:00
Adam Porter
81673fc7b5 Fix: (org-ql-predicates) Use eval-and-compile
This is technically correct, even though package.el might obscure the
problem by causing the file to be loaded before it is compiled.
2020-04-07 12:05:24 -05:00
Adam Porter
4fef5b089f Fix/Revert: Don't derive a new mode; check a variable in refresh
Using a different major mode in org-ql-view buffers causes some Org Agenda
remote commands to not work, because they test whether the major mode
is org-agenda-mode.  Even though these remote commands are not
guaranteed to work, it was not intended to break them now, so this
restores compatibility with them.

Fixes #102.  Thanks to Alois Janíček (@aloisjanicek) for reporting.

This reverts commit ba7d4a2e82.

Released as 0.4.4.
2020-03-15 15:02:52 -05:00
Adam Porter
ba7d4a2e82 Add/Fix: org-ql-view-mode, and check when refreshing
Use a derived major mode for org-ql-view buffers, and ensure that mode
is active when calling org-ql-view-refresh, to avoid interfering with
buffers in other modes if the user calls the command by accident.

See
<b87156f2bb>.
Thanks to Alois Janíček (@AloisJanicek) for discovering the bug.

Released as 0.4.3.
2020-03-14 14:06:42 -05:00
Adam Porter
881d298cd0 Comment: Add TODOs 2020-03-13 19:08:26 -05:00
Adam Porter
4b1e253ee9 Fix: (org-ql-view--add-todo-face) Always return to-do keyword
Even when org-done-keywords-for-agenda is nil.  I'm not sure when this
was broken, but the logic was wrong in this function, and this is the
intended behavior, so this is a bug fix.

Released as 0.4.2.
2020-02-26 19:11:40 -06:00
Adam Porter
9a56141f6c Add: (link) predicate 2020-02-24 01:47:02 -06:00
Adam Porter
5d720b9fc3 Merge: 0.4.1 2020-02-23 23:27:06 -06:00
Adam Porter
32c68d7f24 Fix: (--pre-process-query) level predicate with args in plain query
Fixes #96.  Thanks to Akira Komamura (@akirak) for reporting.

Released as 0.4.1.
2020-02-23 23:22:11 -06:00
Adam Porter
87b483e4e4 Fix: Require transient in org-ql.el
I guess package-build only finds dependencies in the file named after
the package.
2020-02-11 06:54:19 -06:00