Function: todo-edit-category-diary-nonmarking
todo-edit-category-diary-nonmarking is an interactive and
byte-compiled function defined in todo-mode.el.gz.
Signature
(todo-edit-category-diary-nonmarking ARG)
Documentation
Add diary-nonmarking-symbol to all diary items in this category.
With prefix ARG, remove diary-nonmarking-symbol from all diary
items in this category.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-edit-category-diary-nonmarking (arg)
"Add `diary-nonmarking-symbol' to all diary items in this category.
With prefix ARG, remove `diary-nonmarking-symbol' from all diary
items in this category."
(interactive "P")
(save-excursion
(goto-char (point-min))
(let ((inhibit-read-only t))
(catch 'stop
(while (not (eobp))
(if (todo-done-item-p) ; We've gone too far.
(throw 'stop nil)
(unless (looking-at (regexp-quote todo-nondiary-start))
(if arg
(when (looking-at (regexp-quote diary-nonmarking-symbol))
(replace-match ""))
(unless (looking-at (regexp-quote diary-nonmarking-symbol))
(insert diary-nonmarking-symbol))))
(todo-forward-item)))))))