Function: todo-short-file-name
todo-short-file-name is a byte-compiled function defined in
todo-mode.el.gz.
Signature
(todo-short-file-name FILE)
Documentation
Return the short form of todo file FILE's name.
This lacks the extension and directory components.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
;; -----------------------------------------------------------------------------
;;; Entering and exiting
;; -----------------------------------------------------------------------------
;; (defcustom todo-visit-files-commands (list 'find-file 'dired-find-file)
;; "List of file finding commands for `todo-display-as-todo-file'.
;; Invoking these commands to visit a todo file or todo archive file
;; calls `todo-show' or `todo-find-archive', so that the file is
;; displayed correctly."
;; :type '(repeat function)
;; :group 'todo)
(defun todo-short-file-name (file)
"Return the short form of todo file FILE's name.
This lacks the extension and directory components."
(when (stringp file)
(file-name-sans-extension (file-name-nondirectory file))))