Commit graph

841 commits

Author SHA1 Message Date
Adam Porter
902dad04c1 Docs/Tidy: Update readme, reorder forms 2023-03-10 03:36:21 -06:00
Akira Komamura
6afe3be572 Add: (blocked) predicate 2023-03-10 03:33:08 -06:00
Adam Porter
e5e9daab07 Fix: Aliases
One of them seems to break on Emacs 26.3 only...
2023-03-09 05:00:14 -06:00
Adam Porter
d21da3682b Tidy: Compilation warnings 2023-03-09 03:23:42 -06:00
Adam Porter
d86a402ba5 Tidy: Docstrings 2023-03-09 03:04:15 -06:00
Adam Porter
5c5a15a09b Fix: (org-ql--sanity-check-form) Use pcase 2023-03-09 02:47:23 -06:00
Adam Porter
2bc327d85f Fix: (org-ql-view--link-store) Error message for test suite
Use format string to prevent `substitute-quotes' from changing the
error string, breaking the test suite when run on CI.

Fixes #317.
2023-03-09 02:45:48 -06:00
Adam Porter
8bb1739661 Tests: (src) Normalization with no args
Closes #293.  Thanks to Akira Komamura (@akirak) for reporting.
2023-03-09 02:45:48 -06:00
Adam Porter
0d9940c5df Docs: Update README 2023-03-09 02:45:48 -06:00
Adam Porter
d784f8f71c Tests: (src) Implement 2023-03-09 02:45:48 -06:00
Adam Porter
68ac6ddd28 Tests: Use before-each for org-ql-test-data-buffer
This seems like the best way.
2023-03-09 02:45:48 -06:00
Adam Porter
2ae60f8dc5 Tests: (src) More normal forms 2023-03-09 02:45:48 -06:00
Adam Porter
1fdad05fef Tests: Tidy 2023-03-09 01:46:46 -06:00
Adam Porter
1996969920 Fix: (src) Rewrite body
Fixes #304.  Thanks to @johanwk for reporting.
2023-03-09 01:46:34 -06:00
Adam Porter
0304a2c9dc Tests: (org-ql-it) Expand using Buttercup's it
As the implementation of `it' changes, this will change with
it (correctly).
2023-03-09 00:52:47 -06:00
Adam Porter
6c9c0b957a Tests: Rename data2.org to data-file-tags.org
It appears likely that we'll need a few test-specific data files, so
we should use descriptive names.
2023-03-09 00:05:14 -06:00
Adam Porter
a5fbb5d976 Tidy: Indentation of dash forms
See, e.g. <https://github.com/magnars/dash.el/pull/375>.

Ultimately I'd prefer to indent with one distinguished argument, but
the noise it causes downstream is likely not worth it.  (And,
unfortunately, the indentation of the built-in thread-first and
thread-last forms has changed to be like this as well, which is even
worse, causing 10-11 characters of extra indentation in those forms'
bodies!)
2023-03-09 00:01:32 -06:00
Adam Porter
29533525c3 Tidy: (org-ql--plist-get*) Docstring 2022-12-25 17:51:00 -06:00
Adam Porter
36ff9854ce Fix: (category) Add normalizer for alias 2022-12-25 12:09:50 -06:00
Adam Porter
8dae879841 Change: (org-ql-defpred) Ensure aliased predicates have normalizers
Would have prevented me from releasing the "c" alias for "category"
without a normalizer.
2022-12-25 12:05:52 -06:00
Adam Porter
d253b123cf Docs: Add credits for v0.7-pre 2022-12-09 20:33:01 -06:00
Adam Porter
3d3d958d20 Meta: Test on CI with Emacs 28.1 and 28.2 2022-12-09 20:21:23 -06:00
Adam Porter
91908186fc Change/Fix: Preambles for predicates that expect arguments
Closes #285.  Thanks to Caleb Chase (@chasecaleb) for reporting.
2022-12-09 20:19:55 -06:00
Adam Porter
ecde3a0420 Change/Fix: (src) Normalization, case-insensitivity 2022-12-09 20:19:55 -06:00
Adam Porter
6e3a5eebe7 Fix: (src) Coalesce function 2022-12-08 21:22:40 -06:00
Adam Porter
9dd1bbb10b Merge: 0.6.3 2022-12-08 20:50:01 -06:00
Adam Porter
80b334c269 Release: v0.6.3 2022-12-08 20:45:14 -06:00
Adam Porter
2ddfb7c231 Fix: Require org-duration
This appears to be necessary on newer Org versions, but I don't know
exactly when.
2022-12-08 20:45:14 -06:00
Adam Porter
9f00fa3890 Fix: (org-ql--def-query-string-to-sexp-fn) Updated for peg v1.0.1
Fixes #314, fixes #316.  Thanks to Akira Komamura (@akirak) and Joon
Ro (@joonro) for reporting.

Instead of `[blank]` in this PEX, it used to be `(syntax-class
whitespace)`, which worked fine with peg v1.0.  Then
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59345> was filed and
resulted in the release of peg v1.0.1, after which that no longer
worked.  As best I can tell from reading the discussion, `[blank]` and
`(syntax-class whitespace)` should behave the same way, yet here they
do not: with peg v1.0.1, only `[blank]` works.  Why, I do not know; I
only tried it because I could find no explanation for the broken
behavior, and luckily, it works.  Maybe it's due to the use of
`(syntax-class whitespace)` later in the `pexs`; but since it finally
works again, let's take the victory as-is.
2022-12-08 20:44:24 -06:00
Adam Porter
85aee42fae Meta: Update makem.sh to v0.6-pre
Needed for testing on Emacs 28+.
2022-12-08 20:38:47 -06:00
Adam Porter
f22fdd457b Meta: v0.6.3-pre 2022-12-08 19:48:40 -06:00
Adam Porter
5f70636556 Add: (org-ql-find-display-buffer-action) 2022-10-07 18:34:55 -05:00
Adam Porter
e54ba0102c Add: (property) :inherit argument 2022-10-07 18:33:35 -05:00
Adam Porter
e41cdb4591 Change: (org-ql-find-goto-hook) Add org-reveal
Showing the context is much better for the user.
2022-08-25 16:55:58 -05:00
Adam Porter
d7ada532c7 Add: Alias "c" to (category) 2022-08-19 03:38:43 -05:00
Adam Porter
7f4faff27b Add: (org-ql-refile) 2022-08-19 03:26:15 -05:00
Adam Porter
cfa3b307ec Add/Change: org-ql-completing-read, etc. 2022-08-19 03:26:15 -05:00
Adam Porter
18869c47ff Tidy: Headers 2022-08-19 03:14:46 -05:00
Adam Porter
6257ae8304 Fix: (org-ql-find--snippet-*) Use save-excursion 2022-08-15 16:16:55 -05:00
Adam Porter
06f1e1be6f Revert "Change: (org-ql-find) Add workaround for Ivy support"
This reverts commit a02ed48ac8.

See <https://github.com/alphapapa/org-ql/issues/284#issuecomment-1187705847>.
2022-07-18 13:44:25 -05:00
Adam Porter
a02ed48ac8 Change: (org-ql-find) Add workaround for Ivy support
See <https://github.com/alphapapa/org-ql/issues/284>.
2022-07-18 10:57:50 -05:00
Adam Porter
98b6049ecc Fix: (org-ql-find) Check major mode
See https://github.com/alphapapa/org-ql/issues/284#issuecomment-1185367899.
2022-07-15 13:50:10 -05:00
Adam Porter
a986e360c3 Fix: (org-ql-find) Select buffer
Thanks again to Thomas Bergheim (@bergheim).
2022-07-14 13:05:42 -05:00
Adam Porter
d46e69b0fc Fix: (org-ql-find) Always include query-prefix
Thanks to Thomas Bergheim (@bergheim) for his help!
2022-07-14 12:52:44 -05:00
Adam Porter
c2b8af3181 Fix: (org-ql-find) Always map across a list 2022-06-26 22:55:20 -05:00
Adam Porter
77916a1c4f Tidy: Indentation 2022-06-25 10:58:33 -05:00
Adam Porter
5f058b9eee Add: (org-ql-find-in-agenda, org-ql-find-in-org-directory) 2022-06-25 10:58:17 -05:00
Adam Porter
dc02c59cad Add: (org-ql--ensure-buffer)
And use in org-ql-find.  This seems to solve a problem I've been
noticing in helm-org-ql for a long time: that it can apparently
interrupt Org's initialization code, which can leave buffers
unprepared for Org, even stuck in fundamental-mode.  This should also
be used in helm-org-ql...
2022-06-25 10:56:18 -05:00
Adam Porter
bbd164c6ae Change/Fix: (org-ql-select) Warn instead of erroring on bad files
This helps prevent unexpected errors from making it impossible to
search, and displaying the messages in the warnings buffer makes them
more noticeable and readable for the user.
2022-06-25 10:54:38 -05:00
Adam Porter
5768c685ad Remove: org-ql-find-heading, org-ql-find-path
These are virtually obsolete with the introduction of the "rifle"
predicate as the default one.  Having them now is just confusing.
2022-06-25 10:53:29 -05:00