emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org e022a0cea1: org-make-tags-matcher: Do not treat PRO


From: ELPA Syncer
Subject: [elpa] externals/org e022a0cea1: org-make-tags-matcher: Do not treat PROPERTY="[X]" as timestamp match
Date: Tue, 25 Oct 2022 06:57:50 -0400 (EDT)

branch: externals/org
commit e022a0cea11a0e784ba20ac478a033da7fb1bb7f
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    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
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index e93a812104..01e0279c8e 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]