Add: (regexp) Alias "r"

Thanks to Feng Shu (@tumashu).
This commit is contained in:
Feng Shu 2019-12-08 13:58:47 +08:00 committed by Adam Porter
parent 70a1acde93
commit b9dfd7d93b
3 changed files with 29 additions and 19 deletions

View file

@ -575,6 +575,11 @@ Replaces bare strings with (regexp) selectors, and appropriate
;; "h" alias.
`(heading ,@args))
;; Regexps.
(`(r . ,args)
;; "r" alias.
`(regexp ,@args))
;; Outline paths.
(`(,(or 'outline-path 'olp) . ,strings)
;; Regexp quote headings.
@ -1127,7 +1132,7 @@ priority B)."
"Return non-nil if entry is a habit."
(org-is-habit-p))
(org-ql--defpred regexp (&rest regexps)
(org-ql--defpred (regexp r) (&rest regexps)
"Return non-nil if current entry matches all of REGEXPS (regexp strings)."
(let ((end (or (save-excursion
(outline-next-heading))