Function: todo-reset-done-separator
todo-reset-done-separator is a byte-compiled function defined in
todo-mode.el.gz.
Signature
(todo-reset-done-separator SEP)
Documentation
Replace existing overlays of done items separator string SEP.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-reset-done-separator (sep)
"Replace existing overlays of done items separator string SEP."
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(while (re-search-forward
(concat "\n\\(" (regexp-quote todo-category-done) "\\)") nil t)
(let* ((beg (match-beginning 1))
(end (match-end 0))
(ov (progn (goto-char beg)
(todo-get-overlay 'separator)))
(old-sep (when ov (overlay-get ov 'display)))
new-ov)
(when old-sep
(unless (string= old-sep sep)
(setq new-ov (make-overlay beg end))
(overlay-put new-ov 'todo 'separator)
(overlay-put new-ov 'display todo-done-separator)
(delete-overlay ov))))))))