Function: todo-reset-global-current-todo-file
todo-reset-global-current-todo-file is a byte-compiled function
defined in todo-mode.el.gz.
Signature
(todo-reset-global-current-todo-file)
Documentation
Update the value of todo-global-current-todo-file.
This becomes the latest existing todo file or, if there is none,
the value of todo-default-todo-file.
This function is added to kill-buffer-hook in Todo mode.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-reset-global-current-todo-file ()
"Update the value of `todo-global-current-todo-file'.
This becomes the latest existing todo file or, if there is none,
the value of `todo-default-todo-file'.
This function is added to `kill-buffer-hook' in Todo mode."
(let ((filename (file-truename (buffer-file-name))))
(setq todo-file-buffers (delete filename todo-file-buffers))
(setq todo-global-current-todo-file
(or (car todo-file-buffers)
(todo-absolute-file-name todo-default-todo-file)))))