Commit graph

98 commits

Author SHA1 Message Date
Ahmed Shariff
2d68ef526d Adding test cases for buffers-files 2022-11-20 23:11:19 -08: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
Adam Porter
90f712aba9 Change: (org-ql) Declare macro obsolete 2020-11-22 18:15:39 -06:00
Adam Porter
1a77cb0e18 Tests: Add more sexp link tests 2020-11-18 08:15:47 -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
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
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
faaa6f7ee9 Test: Tidy
This prevents extra output about buffers without headings.
2020-11-16 03:49:15 -06:00
Adam Porter
e9815f39a0 Tests: Fix link-opening test 2020-11-16 03:16:40 -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
b90e6e25d0 Tests: Use test buffer for link safety tests 2020-11-13 02:42:52 -06:00
Adam Porter
337bfa6695 Add: (tags-regexp, tags*) Predicate 2020-11-12 04:09:57 -06:00
Adam Porter
5e790c48ac Tests: Add tests for link safety 2020-11-12 00:22:45 -06:00
Adam Porter
4b557857d3 Tidy: Indentation 2020-11-11 19:52:46 -06:00
Adam Porter
e15cc3eb76 Add: (--query-sexp-to-string) 2020-11-11 19:52:24 -06: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
9b2ff276a0 Tests: Tidy 2020-02-24 01:48:09 -06:00
Adam Porter
9a56141f6c Add: (link) predicate 2020-02-24 01:47:02 -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
e48cdf7143 Tests: Add ancestor/parent tests 2020-01-22 23:33:16 -06:00
Adam Porter
fc536cafd6 Tests: (org-ql-test-show-result) Fix symbol 2020-01-13 20:24:14 -06:00
Adam Porter
16cb6cef52 Tests: Declare variable 2020-01-08 13:05:50 -06:00
Adam Porter
9f5bbeb3f2 Fix: Inherit org-file-tags
Fixes #55.  Closes #57.

Thanks to Mikhail Skorzhinskiy (@mskorzhinskiy).
2020-01-08 10:58:55 -06:00
Adam Porter
dadbbe4a87 Tests: Allow using other data file 2020-01-08 09:26:55 -06:00
Adam Porter
2a7440b639 Tests: Move non-test-data to notes.org 2020-01-08 09:00:24 -06:00
Adam Porter
d2f7b06f3d Tests: Rename symbols, fix loading test data interactively 2020-01-08 06:48:11 -06:00
Adam Porter
997765f9ea Tidy: Comment out unused form
Removes a linter warning for now.
2020-01-03 07:02:06 -06:00
Adam Porter
a513f25b4a Tests: Declare buttercup dependency
Used in makem.sh to parse test dependencies.
2019-12-31 21:13:50 -06:00
Adam Porter
091a732a88 Fix: (--value-at) On cache miss, return nil when function does
Previously, on a cache miss, if FN returned nil, the sentinel would be
returned instead of nil.

Closes #78.  Thanks to Josh Moller-Mara (@mm--) for reporting.
2019-12-21 16:28:51 -06:00
Adam Porter
a1851ed0eb Fix: (--value-at) Clear value cache when buffer changes
Fixes #59.  Thanks to Daniel Hubmann (@hubisan) for reporting.
2019-11-24 05:43:21 -06:00