Fix `org-get-repeat'

* lisp/org.el (org-get-repeat): Prevent false positive.
This commit is contained in:
Nicolas Goaziou 2017-02-03 00:32:16 +01:00
parent 2a59d2f76f
commit aef7eef0f9

View file

@ -13199,11 +13199,13 @@ on INACTIVE-OK."
(save-match-data (save-match-data
(save-excursion (save-excursion
(org-back-to-heading t) (org-back-to-heading t)
(and (re-search-forward (if tagline (let ((end (org-entry-end-position))
(concat tagline "\\s-*" org-repeat-re) (regexp (if tagline (concat tagline "\\s-*" org-repeat-re)
org-repeat-re) org-repeat-re)))
(org-entry-end-position) t) (catch :repeat
(match-string-no-properties 1))))) (while (re-search-forward regexp end t)
(when (org-at-timestamp-p)
(throw :repeat (match-string-no-properties 1)))))))))
(defvar org-last-changed-timestamp) (defvar org-last-changed-timestamp)
(defvar org-last-inserted-timestamp) (defvar org-last-inserted-timestamp)