Bläddra i källkod

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.
Ihor Radchenko 3 år sedan
förälder
incheckning
f8bb414615
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      lisp/org.el

+ 3 - 2
lisp/org.el

@@ -15026,8 +15026,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))