0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00

org-compat: Add missing definition

* lisp/org-compat.el (org-maybe-keyword-time-regexp): New variable.

This is a followup to 209fb501bd.
This commit is contained in:
Nicolas Goaziou 2020-03-12 09:55:00 +01:00
parent 209fb501bd
commit d9b1fb1e8c

View file

@ -637,6 +637,12 @@ use of this function is for the stuck project list."
(define-obsolete-variable-alias 'org-sort-agenda-noeffort-is-high
'org-agenda-sort-noeffort-is-high "9.4")
(defconst org-maybe-keyword-time-regexp
(concat "\\(\\<\\(\\(?:CLO\\(?:CK\\|SED\\)\\|DEADLINE\\|SCHEDULED\\):\\)\\)?"
" *\\([[<][0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ?[^]\r\n>]*?[]>]"
"\\|"
"<%%([^\r\n>]*>\\)")
"Matches a timestamp, possibly preceded by a keyword.")
(make-obsolete-variable
'org-maybe-keyword-time-regexp
"use `org-planning-line-re', followed by `org-ts-regexp-both' instead."