Commit graph

372 commits

Author SHA1 Message Date
Adam Porter
3a2eaceca8 Tidy: Move defvar 2019-07-16 18:51:59 -05:00
Adam Porter
c6250d1ee2 Tidy: Docstring 2019-07-16 18:50:06 -05:00
Adam Porter
9648dd12f9 Tidy: Headers, commentaries, etc. 2019-07-16 18:46:19 -05:00
Adam Porter
42138e2673 Docs: Update docstrings
To comply with checkdoc.
2019-07-16 13:49:41 -05:00
Adam Porter
04725bb900 Tidy: Remove unused macro 2019-07-16 13:45:39 -05:00
Adam Porter
2b267ad195 Fix: Depend on Emacs 26.1 for if-let* 2019-07-16 13:45:25 -05:00
Daniel Kraus
adcb96cb1e Fix: Compatibility with org>=9.2
The API for `org-get-tags-at` and `org-timestamp--to-internal-time`
changed in org-mode version 9.2.

Thanks to Ataias Pereira Reis (@ataias) and Daniel Kraus (@dakra).

Closes #27.  Closes #31.
2019-07-16 13:29:13 -05:00
Adam Porter
3b88b71b41 Fix: Unused variable warnings 2019-07-16 13:01:45 -05:00
Adam Porter
3933db460b Add: Query preambles
Notes: Mark preambles as done

Docs: Add changelog entry
2019-07-16 12:49:09 -05:00
Adam Porter
3adaf4e5fc Change: (org-ql-query) Call --select-cached with query, not pred
Since we will be pre-processing and modifying the query, the predicate
may not correspond exactly to the query, so we should key the cache on
the original query.
2019-07-16 12:42:58 -05:00
Adam Porter
7dcdc21ea1 Change: (regexp) Accept multiple regexps 2019-07-16 12:38:58 -05:00
Adam Porter
7068322757 Meta: Update version 2019-07-16 12:38:04 -05:00
Adam Porter
eb281fe345 Release: 0.1 2019-07-16 12:03:09 -05:00
Adam Porter
a74520c223 Docs: (deadline) Mention org-deadline-warning-days 2019-06-10 16:49:06 -05:00
Adam Porter
9b5004b436 Fix: Restore date predicate
Need to deprecate with a warning and update examples before removing.

Fixes #25.  Closes #26.  Thanks to @xeijin for reporting.
2019-06-09 14:34:38 -05:00
Adam Porter
c40eb050a9 Notes: Add tasks 2019-06-09 05:09:53 -05:00
Adam Porter
943bb6d6c0 Add: (ts) predicates, improved tests 2019-06-09 03:13:42 -05:00
Adam Porter
4174dbad84 Tidy: Docstring 2019-06-09 00:08:26 -05:00
Adam Porter
3a036c3efb Fix: Predicate args in documentation 2019-06-09 00:03:32 -05:00
Adam Porter
7fed9f43bf Fix: Requirements 2019-06-08 23:52:03 -05:00
Adam Porter
b2e8b9cbfc Fix: (--predicate-clocked) advertised-calling-convention 2019-06-08 23:52:03 -05:00
Adam Porter
6c6bb2d572 Add: Clocked selector and supporting code 2019-06-08 23:51:52 -05:00
Adam Porter
9deec36458 Fix: Require org-habit
It would be optimal to avoid requiring it, but not worth the trouble.
2019-06-08 23:31:24 -05:00
Adam Porter
7b093bba30 Fix: (--predicate-done) Refer to new pred name
Fixes #24.  Thanks to @xeijin for reporting.
2019-06-08 18:49:06 -05:00
Adam Porter
2722d87460 Tidy: Docstrings, symbol names 2019-06-08 04:30:52 -05:00
Adam Porter
4d186d7054 Docs: org-ql, org-ql-query
Also rename org-ql--query to org-ql-query.
2019-06-08 04:24:50 -05:00
Adam Porter
fc5647aea3 Change: Define predicates with macro, generate docs 2019-06-08 04:16:58 -05:00
Adam Porter
b11a3ea3cf Tidy: Docstring and tasks 2019-06-07 21:53:20 -05:00
Adam Porter
c5599a6030 Add/Change: date->planning, and new selector checks all dates/ranges
Fixes #15.  Closes #16.

Thanks to @codygman for reporting, and to @swflint for reminding me.
2019-01-16 09:24:59 -06:00
Adam Porter
62fa389901 Fix: (org-ql) Add package headers 2018-12-28 10:46:52 -06:00
Adam Porter
50fab59fec Change: Simplify a pcase 2018-11-19 03:24:33 -06:00
Adam Porter
e7bc68c9d1 Fix: Don't use aprog1
I wish more people had anaphora installed, but since they don't...
2018-08-22 18:13:06 -05:00
Adam Porter
db6543b18c Fix: (org-ql--query) Error if run in non-Org-derived buffer 2018-08-22 16:40:06 -05:00
Adam Porter
6a9f5cc37c Add: Heading matcher
This should also be easy to optimize with a buffer-wide regexp search.
2018-08-22 14:41:00 -05:00
Adam Porter
e141089633 Fix: Unused lexical vars 2018-08-22 14:18:56 -05:00
Adam Porter
90aa62a5af Change/Fix: (org-ql--add-agenda-markers) Rename and use copy-marker
org-agenda-new-marker sometimes raises "selecting deleted buffer"
errors, and other times returns markers that don't point into a
buffer (I don't even know how that's possible).  copy-marker always
works, so we'll use it, even though it might leave markers hanging
around which theoretically could affect performance over time (but
isn't Emacs still supposed to GC them?  I'm not sure).

Also, rename it to org-ql--add-markers, since we're not adding
"agenda" markers anymore.
2018-08-22 14:15:28 -05:00
Adam Porter
a2d8ed2eeb Add: Caching
Seems to work well so far.  Hopefully no bugs will be found (ha,
ha)...

Fixes #6.  Thanks to @yantar92 for suggesting!
<https://www.reddit.com/r/emacs/comments/990swh/querying_org_files_for_due_items_and_showing/e4kduul/>
2018-08-22 14:03:48 -05:00
Adam Porter
cdbe750b7c Fix: Don't treat an element's :begin property as a marker
Only markers are markers.  Also add FIXME about tag inheritance when
no marker is used (although see caveat in it...).
2018-08-22 13:32:44 -05:00
Adam Porter
ad4aad16f1 Change: Rename fmap macro to flet 2018-08-20 08:17:10 -05:00
Adam Porter
32f2b3304a Change: Use macrolet instead of flet for priority sorter 2018-08-20 07:49:49 -05:00
Adam Porter
f6db1097dc Change: Refactor and tidy
Move add-markers function into org-ql, which should help avoid
cross-dependency, and should be generally useful.
2018-08-20 07:38:07 -05:00
Adam Porter
4822f1406f Change: Consolidate action 2018-08-20 07:09:48 -05:00
Adam Porter
88cf7f395e Change: Minor refactoring 2018-08-20 06:42:19 -05:00
Adam Porter
14351e617d Change: Handle sort argument in org-ql--query
Rather than in the macro.  Trying to consolidate.
2018-08-20 06:18:23 -05:00
Adam Porter
d73175714c Fix: (org-ql) Work when not sorting
Don't know when I broke this.  Oops.
2018-08-19 13:21:00 -05:00
Adam Porter
95d51ef998 Comment: Remove comment
Benchmarking shows that, when org-ql is byte-compiled, calling
org-outline-level is actually slightly faster than org-current-level.
2018-08-04 23:14:44 -05:00
Adam Porter
465767e7cc Add: Outline level predicate
Fixes #3.  Thanks to @akirak.
2018-08-04 23:09:21 -05:00
Adam Porter
334b68de3d Change: (org-ql) Handle arbitrary expressions for sort arg
See https://github.com/alphapapa/org-agenda-ng/pull/1
2018-08-04 15:48:18 -05:00
Adam Porter
cc05faa977 Docs: Add missing sort type to docstring 2018-08-04 15:47:41 -05:00
Adam Porter
08243d5479 Add: (org-ql) Markers argument 2018-08-04 01:52:23 -05:00