Function: org-get-repeat
org-get-repeat is a byte-compiled function defined in org.el.gz.
Signature
(org-get-repeat &optional TIMESTAMP)
Documentation
Check if there is a timestamp with repeater in this entry.
Return the repeater, as a string, or nil. Also return nil when this function is called before first heading.
When optional argument TIMESTAMP is a string, extract the repeater from there instead.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-get-repeat (&optional timestamp)
"Check if there is a timestamp with repeater in this entry.
Return the repeater, as a string, or nil. Also return nil when
this function is called before first heading.
When optional argument TIMESTAMP is a string, extract the
repeater from there instead."
(save-match-data
(cond
(timestamp
(and (string-match org-repeat-re timestamp)
(match-string-no-properties 1 timestamp)))
((org-before-first-heading-p) nil)
(t
(save-excursion
(org-back-to-heading t)
(let ((end (org-entry-end-position)))
(catch :repeat
(while (re-search-forward org-repeat-re end t)
(when (save-match-data (org-at-timestamp-p 'agenda))
(throw :repeat (match-string-no-properties 1)))))))))))