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.
This commit is contained in:
parent
d5410433e9
commit
f8bb414615
|
@ -15026,8 +15026,9 @@ When matching, the match groups are the following:
|
||||||
(let* ((regexp
|
(let* ((regexp
|
||||||
(if extended
|
(if extended
|
||||||
(if (eq extended 'agenda)
|
(if (eq extended 'agenda)
|
||||||
(rx (or (regexp org-ts-regexp3)
|
(rx-to-string
|
||||||
(regexp org-element--timestamp-regexp)))
|
`(or (regexp ,org-ts-regexp3)
|
||||||
|
(regexp ,org-element--timestamp-regexp)))
|
||||||
org-ts-regexp3)
|
org-ts-regexp3)
|
||||||
org-ts-regexp2))
|
org-ts-regexp2))
|
||||||
(pos (point))
|
(pos (point))
|
||||||
|
|
Loading…
Reference in New Issue