Panagiotis Vlantis
640a12b513
Merge f300d04ec5 into 4b8330a683
2025-05-04 23:59:37 +00:00
Adam Porter
1c8c89f264
Add: (defface org-ql-view-title) Use in -view--header-line-format
...
Note that we also add a safety check in ORG-QL-VIEW--LINK-FOLLOW,
because the addition of a call to PROPERTIZE in
ORG-QL-VIEW--HEADER-LINE-FORMAT effectively removes what was
functioning as a safety check there (as CONCAT had been signaling an
error for the unsafe argument, whereas PROPERTIZE, which is called to
apply the new face, does not). We also change the expected error in
the tests accordingly.
2024-09-10 22:37:19 -05:00
Adam Porter
c3519fb4a0
Merge: v0.8.9
2024-09-05 18:58:13 -05:00
Adam Porter
5ea97d2272
Fix: (level) Check number argument for preamble
...
This allows a query like this:
(level <= (string-to-number (property PROPERTY)))
to proceed without signaling an error from ORG-QL--QUERY-PREAMBLE.
See #460 .
Reported-by: Stewmath <https://github.com/Stewmath >
2024-09-05 18:35:19 -05:00
Adam Porter
c77bade432
Tests: Fix filenames for CI (better)
...
This is much simpler.
2024-09-05 04:25:59 -05:00
Adam Porter
86d338729f
Fix: (property) Calling like (property PROPERTY :inherit t)
...
Supporting this form isn't really required, since it violates the
CL-style argument parsing of CL-DEFUN, but it's convenient, and
probably saves some hair-pulling for users who are less familiar with
Elisp.
Fixes #460 .
Reported-by: Stewmath <https://github.com/Stewmath >
2024-09-05 04:24:24 -05:00
Adam Porter
831a1d4736
Tests: Fix filenames for CI (better)
...
This is much simpler.
2024-09-04 21:47:53 -05:00
Adam Porter
f72feb8018
Revert "Tests: Fix filename tests for CI"
...
This reverts commit 611198155d .
2024-09-04 21:40:36 -05:00
Adam Porter
611198155d
Tests: Fix filename tests for CI
...
As the comment says, in CI the filenames are being abbreviated, which
I can't explain (it has not always been this way). So we compare them
in abbreviated form.
2024-06-27 08:03:04 -05:00
Adam Porter
bfb0fbeec1
Tests: Declare requirement on xr
...
This was overlooked because makem.sh gets run with --install-linters,
which installs relint, which depends on xr.
2024-06-27 07:41:16 -05:00
Adam Porter
f24d93f038
Merge: v0.8.7
2024-06-26 11:32:45 -05:00
Adam Porter
ffc3477013
Fix: (org-ql-regexp-part-ts-date) Allow punctuation in day-of-week
...
Fixes <https://github.com/alphapapa/org-ql/issues/432 >. Closes
<https://github.com/alphapapa/org-ql/pull/435 >.
Reported-by: Florian D. <https://github.com/neurolit >
2024-06-26 11:20:28 -05:00
Adam Porter
02b4213826
Tests: Timestamps with inner time ranges
2024-06-26 10:20:35 -05:00
Adam Porter
0f01f0a9d8
Tidy: Compilation warnings
2024-06-12 22:47:33 -05:00
Adam Porter
c90bae0eab
Fix: (ancestors, parent) Normalize sub-queries
...
I'm not sure why calling the REC labeled function didn't correctly
normalize these sub-queries; it seemed to only normalize for one
round, leaving some queries incorrectly normalized. But this fixes
it.
Fixes #365 .
Reported-by: Gabriele Mongiano <https://github.com/kofm >
2024-02-21 05:45:46 -06:00
Adam Porter
b6efba9aeb
Fix: (heading) Don't match strings as regexps
...
Reported-by: Alex Popescu <https://github.com/al3xandru >
2024-02-21 05:45:36 -06:00
Adam Porter
004ed1ee0f
Tidy: Indentation
...
For Emacs 29.1's and with-simulated-input's changes.
2023-12-16 05:37:48 -06:00
Adam Porter
7a6b622cd0
Fix: Ignore empty quoted strings when parsing string queries
...
Fixes #383 .
Reported-by: Adam Porter <adam@alphapapa.net>
2023-12-16 04:10:34 -06:00
Adam Porter
ed81b7d7c8
Tests: Require xr
...
This is only a development dependency.
2023-09-06 18:56:32 -05:00
Panagiotis Vlantis
f300d04ec5
Tests: Tag hierarchy aware queries
2023-04-09 10:50:16 +03:00
Adam Porter
1d98c7d07c
Tests: Disable Org link bracket tests on old Org versions
2023-03-14 12:13:07 -05:00
Adam Porter
9e14f9eefa
Fix: (link) Allow brackets in description
...
Org 9.3 stopped replacing brackets in link descriptions with braces
and started escaping them instead.
Fixes #283 . Thanks to Daniel Borchmann (@exot) for reporting.
2023-03-10 05:56:01 -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
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
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
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
ecde3a0420
Change/Fix: (src) Normalization, case-insensitivity
2022-12-09 20:19:55 -06:00
Adam Porter
6602f32165
Tests: Update (add, reorganize)
...
They all pass now (with a temporary, uncommitted workaround in
makem.sh for a Buttercup bug:
<https://github.com/jorgenschaefer/emacs-buttercup/issues/218 >).
2022-06-11 08:15:24 -05:00
Adam Porter
c7fab9dfce
Tests: Wrap bare (expect) forms in (it) forms
2022-06-09 22:34:07 -05:00
Adam Porter
36e97d51cf
Tests: Fix non-file-backed-buffer test
...
Somehow a Unicode "RIGHT SINGLE QUOTATION MARK" replaced the ASCII
apostrophe in this string, which broke the test. Weird!
2022-06-09 22:16:59 -05:00
Adam Porter
140aa891f4
Remove: Obsolete macro org-ql
2021-09-22 01:08:54 -05:00
Adam Porter
e2a1d16cc4
Tests: Normalization of tags-inherited predicate
...
See #216 .
2021-06-23 01:47:05 -05:00
Adam Porter
e03fb24f9b
Fix: (outline-path) Normalizer infinite loop
...
Hopefully there aren't more of these lurking, but with the recent
--normalize-query change, there might be...
2021-06-21 07:55:58 -05:00
Adam Porter
482a5c939b
Fix: Cache invalidation of relative-date ts-related predicates
...
Fixes #223 . Thanks to Ihor Radchenko (@yantar92) for reporting.
2021-06-21 06:18:03 -05:00
Adam Porter
87b3d0bd97
Add: :with-time argument for timestamp predicates
...
Squashed commit of the following:
commit 5d43309c55
Author: Adam Porter <adam@alphapapa.net>
Date: Sat Jun 19 02:24:08 2021 -0500
WIP: Allow "with-time=" in string queries
commit 9e683e17c1
Author: Adam Porter <adam@alphapapa.net>
Date: Sat Jun 19 02:09:42 2021 -0500
WIP: Update docstrings, comments, and readme
commit 8e93f4cbb3
Author: Adam Porter <adam@alphapapa.net>
Date: Sat Jun 19 00:18:21 2021 -0500
WIP: Tidy
commit 26c58c6c77
Author: Adam Porter <adam@alphapapa.net>
Date: Fri Jun 18 23:55:42 2021 -0500
WIP
commit a24b41d7e5
Author: Adam Porter <adam@alphapapa.net>
Date: Fri Jun 18 22:27:43 2021 -0500
WIP
commit 71857f9b43
Author: Adam Porter <adam@alphapapa.net>
Date: Fri Jun 18 00:05:53 2021 -0500
WIP: (ts :with-time) and supporting changes
commit 745e53b313
Author: Adam Porter <adam@alphapapa.net>
Date: Thu Jun 17 22:54:51 2021 -0500
Add: New timestamp regexps
commit f87be23954
Author: Adam Porter <adam@alphapapa.net>
Date: Thu Jun 17 20:03:02 2021 -0500
WIP
commit e893e65207
Author: Adam Porter <adam@alphapapa.net>
Date: Sat Dec 19 03:54:11 2020 -0600
WIP: Add with-time arg to timestamp predicates
2021-06-19 03:28:14 -05:00
Adam Porter
d8bfa2317a
Add: (effort) predicate
...
Closes #80 .
2021-06-16 20:44:00 -05:00
Adam Porter
0dc073ffac
Comment: Add TODO
2021-06-16 20:01:24 -05:00
Adam Porter
55f5708cc0
Tests: Fix link-to-self-buffer-search test
...
Also, ensure that views that search non-file-backed buffers can’t be
linked to.
This fixes the test failures on Emacs 27.2 and Emacs 28
pre-release. (I can't explain why this test didn't fail on earlier
versions, but it's not worth figuring out.)
2021-06-16 19:09:20 -05:00
Adam Porter
831a21b63e
Merge: 0.5.2
...
NOTE: Due to changes between 0.5 and 0.6, the fixes don't merge
cleanly, so they will be applied in subsequent commits. See #220 .
2021-06-16 17:54:33 -05:00
Adam Porter
c57f0975f6
Tests: Add more LINK tests
...
Closes https://github.com/alphapapa/org-ql/pull/222 . See also
https://github.com/alphapapa/org-ql/pull/220 .
Thanks to Akira Komamura (@akirak).
2021-06-16 17:28:00 -05:00
Adam Porter
7a8e3b2e8e
Tidy: Indentation
...
Due to changes in dash.
2021-06-08 10:56:05 -05:00
Adam Porter
2dfd378d5f
Add/Change: (heading-regexp), (heading) predicates
...
Closes #64 . Closes #68 .
Thanks to Feng Shu (@tumashu) for suggestions.
2020-12-09 21:28:55 -06:00
Adam Porter
8fb6efecc1
Fix: Compile warnings
2020-11-24 11:47:42 -06:00
Adam Porter
57b3eeba49
Merge: org-ql-defpred
...
Squashed commit of the following:
commit a0ace307b0de3f5e811f042fd9f0b821a0bbc95c
Author: Adam Porter <adam@alphapapa.net>
Date: Mon Nov 23 01:11:07 2020 -0600
Docs: Fix TOC
commit bef9f3c9b5b762070445c76ac3c833e51dd893ba
Author: Adam Porter <adam@alphapapa.net>
Date: Mon Nov 23 01:09:33 2020 -0600
Docs: (README.org) Add org-ql-defpred
commit ff0257696fe87764e3289e12ddc336377a9a5d01
Author: Adam Porter <adam@alphapapa.net>
Date: Mon Nov 23 00:52:06 2020 -0600
Docs: Improve defpred.org
Thanks to piyo in #emacsconf@freenode.
commit 18d6d73a99c336cd637c99309ee5d150106b73b7
Author: Adam Porter <adam@alphapapa.net>
Date: Mon Nov 23 00:35:24 2020 -0600
Docs: Improve custom predicate tutorial
Closes #155 . Thanks to Merlin Göttlinger (@mgttlinger) for suggesting
improvements.
commit b8cbe36fb3
Author: Adam Porter <adam@alphapapa.net>
Date: Mon Nov 23 00:05:52 2020 -0600
Docs: Add custom predicate tutorial
commit b1008d0c52
Author: Adam Porter <adam@alphapapa.net>
Date: Sun Nov 22 19:34:16 2020 -0600
Docs: Update readme
commit 73d4f95cd4
Merge: 9a2719f 148a193
Author: Adam Porter <adam@alphapapa.net>
Date: Sun Nov 22 19:29:15 2020 -0600
Merge branch 'wip/0.6-pre' into wip/define-predicate
...
2020-11-23 01:13:03 -06:00