Function: todo-absolute-file-name

todo-absolute-file-name is a byte-compiled function defined in todo-mode.el.gz.

Signature

(todo-absolute-file-name NAME &optional TYPE)

Documentation

Return the absolute file name of short todo file NAME.

With TYPE archive or top return the absolute file name of the short todo archive or top priorities file name, respectively.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
;; -----------------------------------------------------------------------------
;;; Utility functions for todo files, categories and items
;; -----------------------------------------------------------------------------

(defun todo-absolute-file-name (name &optional type)
  "Return the absolute file name of short todo file NAME.
With TYPE `archive' or `top' return the absolute file name of the
short todo archive or top priorities file name, respectively."
  ;; No-op if there is no todo file yet (i.e. don't concatenate nil).
  (when name
    (file-truename
     (concat todo-directory name
	     (cond ((eq type 'archive) ".toda")
		   ((eq type 'top) ".todt")
		   ((eq type 'diary) ".tody")
		   ((eq type 'regexp) ".todr")
		   (t ".todo"))))))