Ver Fonte

org-compat: Add missing definition

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

This is a followup to 209fb501bdf1d331075d0297dd7d15c06dbd47d7.
Nicolas Goaziou há 5 anos atrás
pai
commit
d9b1fb1e8c
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      lisp/org-compat.el

+ 6 - 0
lisp/org-compat.el

@@ -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."