Function: todo-reset-highlight-item
todo-reset-highlight-item is a byte-compiled function defined in
todo-mode.el.gz.
Signature
(todo-reset-highlight-item SYMBOL VALUE)
Documentation
The :set function for user option todo-highlight-item.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-reset-highlight-item (symbol value)
"The :set function for user option `todo-highlight-item'."
(let ((oldvalue (symbol-value symbol))
(files (append todo-files todo-archives
(directory-files todo-directory t "\\.tod[rty]\\'" t))))
(custom-set-default symbol value)
(when (not (equal value oldvalue))
(dolist (f files)
(let ((buf (find-buffer-visiting f)))
(when buf
(with-current-buffer buf
(require 'hl-line)
(if value
(hl-line-mode 1)
(hl-line-mode -1)))))))))