Function: todo-files
todo-files is a byte-compiled function defined in todo-mode.el.gz.
Signature
(todo-files &optional ARCHIVES)
Documentation
Default value of todo-files-function.
This returns the case-insensitive alphabetically sorted list of
file truenames in todo-directory with the extension
".todo". With non-nil ARCHIVES return the list of archive file
truenames (those with the extension ".toda").
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-files (&optional archives)
"Default value of `todo-files-function'.
This returns the case-insensitive alphabetically sorted list of
file truenames in `todo-directory' with the extension
\".todo\". With non-nil ARCHIVES return the list of archive file
truenames (those with the extension \".toda\")."
(let ((files (if (file-exists-p todo-directory)
(mapcar #'file-truename
(directory-files todo-directory t
(if archives "\\.toda\\'" "\\.todo\\'") t)))))
(sort files (lambda (s1 s2) (let ((cis1 (upcase s1))
(cis2 (upcase s2)))
(string< cis1 cis2))))))