branch: externals/org
commit 6ea247d79a27fc8860058d571edcb172c1e58b3e
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
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))