+2013-05-21 Stephen Berman <stephen.berman@gmx.net>
+
+ * todos.el (todos-read-file-name): Fix previous change to ensure
+ it works when invoked outside of a Todos file.
+
2013-05-20 Stephen Berman <stephen.berman@gmx.net>
* todos.el: Fixes concerning filtered items.
(if archive todos-archives todos-files)))
(file (completing-read prompt files nil mustmatch nil nil
(if files
- ;; If user hit RET without choosing
- ;; a file, default to current file.
+ ;; If user hit RET without
+ ;; choosing a file, default to
+ ;; current or default file.
(todos-short-file-name
- todos-current-todos-file)
+ (or todos-current-todos-file
+ (and todos-show-current-file
+ todos-global-current-todos-file)
+ (todos-absolute-file-name
+ todos-default-todos-file)))
;; Trigger prompt for initial file.
""))))
(unless (file-exists-p todos-directory)