mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
org-make-tags-matcher: Do not treat PROPERTY="[X]" as timestamp match
* lisp/org.el (org-make-tags-matcher): Improve heuristics used to detect timestamps in the matcher. Reported-by: Daniel J. Sinder <djsinder@gmail.com> Link: https://orgmode.org/list/CAHND-wwBsoAQs2a5XTGKyX-=fFL5AwCPup=uA+R=FRH=1rUeVg@mail.gmail.com
This commit is contained in:
parent
cd835dcad8
commit
e022a0cea1
@ -11337,7 +11337,7 @@ See also `org-scan-tags'."
|
||||
(pv (match-string 7 term))
|
||||
(regexp (eq (string-to-char pv) ?{))
|
||||
(strp (eq (string-to-char pv) ?\"))
|
||||
(timep (string-match-p "^\"[[<].*[]>]\"$" pv))
|
||||
(timep (string-match-p "^\"[[<][0-9]+.*[]>]\"$" pv))
|
||||
(po (org-op-to-function (match-string 6 term)
|
||||
(if timep 'time strp))))
|
||||
(setq pv (if (or regexp strp) (substring pv 1 -1) pv))
|
||||
|
Loading…
Reference in New Issue
Block a user