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

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

[elpa] externals/org 6ea247d79a 1/2: org-at-timestamp-p: Fix compatibili


From: ELPA Syncer
Subject: [elpa] externals/org 6ea247d79a 1/2: org-at-timestamp-p: Fix compatibility with Emacs 26
Date: Thu, 21 Apr 2022 08:57:41 -0400 (EDT)

branch: externals/org
commit 6ea247d79a27fc8860058d571edcb172c1e58b3e
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-at-timestamp-p: Fix compatibility with Emacs 26
    
    * lisp/org.el (org-at-timestamp-p): Do not use variables in regexp rx
    form.  They are not yet supported in Emacs 26.  Expand them at runtime
    instead.
---
 lisp/org.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 2353c6594f..1cd2bcc2fc 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15263,8 +15263,9 @@ When matching, the match groups are the following:
   (let* ((regexp
           (if extended
               (if (eq extended 'agenda)
-                  (rx (or (regexp org-ts-regexp3)
-                          (regexp org-element--timestamp-regexp)))
+                  (rx-to-string
+                   `(or (regexp ,org-ts-regexp3)
+                        (regexp ,org-element--timestamp-regexp)))
                org-ts-regexp3)
             org-ts-regexp2))
         (pos (point))



reply via email to

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