Function: org-cancel-repeaters

org-cancel-repeaters is an interactive and byte-compiled function defined in org.el.gz.

Signature

(org-cancel-repeaters)

Documentation

Cancel all the repeaters in entry by setting their numeric value to zero.

Key Bindings

Aliases

org-cancel-repeater

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-cancel-repeaters ()
  "Cancel all the repeaters in entry by setting their numeric value to zero."
  (interactive)
  (save-excursion
    (org-back-to-heading t)
    (let ((bound1 (point))
	  (bound0 (save-excursion (outline-next-heading) (point))))
      (while (re-search-forward
	      (concat "\\(" org-scheduled-time-regexp "\\)\\|\\("
		      org-deadline-time-regexp "\\)\\|\\("
		      org-ts-regexp "\\)")
	      bound0 t)
        (when (save-excursion
                (re-search-backward "[ \t]+\\(?:[.+]\\)?\\+\\([0-9]+\\)[hdwmy]"
                                    bound1 t))
	  (replace-match "0" t nil nil 1))))))