aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2013-05-21 11:23:52 +0200
committerStephen Berman2013-05-21 11:23:52 +0200
commite8429183d55a6b3541c4b51fb85b2439caec65f6 (patch)
tree7c1bb7eac600a0d61069c7f545803a81f3692335
parentd196d62507ea43a65456bf92f64601ba2d060250 (diff)
downloademacs-e8429183d55a6b3541c4b51fb85b2439caec65f6.tar.gz
emacs-e8429183d55a6b3541c4b51fb85b2439caec65f6.zip
* todos.el (todos-read-file-name): Fix previous change to ensure
it works when invoked outside of a Todos file.
-rw-r--r--lisp/calendar/ChangeLog5
-rw-r--r--lisp/calendar/todos.el11
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/calendar/ChangeLog b/lisp/calendar/ChangeLog
index 7cf8b2f9d15..4b68e41698d 100644
--- a/lisp/calendar/ChangeLog
+++ b/lisp/calendar/ChangeLog
@@ -1,3 +1,8 @@
12013-05-21 Stephen Berman <stephen.berman@gmx.net>
2
3 * todos.el (todos-read-file-name): Fix previous change to ensure
4 it works when invoked outside of a Todos file.
5
12013-05-20 Stephen Berman <stephen.berman@gmx.net> 62013-05-20 Stephen Berman <stephen.berman@gmx.net>
2 7
3 * todos.el: Fixes concerning filtered items. 8 * todos.el: Fixes concerning filtered items.
diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el
index e7f619256c3..d8bf02b432a 100644
--- a/lisp/calendar/todos.el
+++ b/lisp/calendar/todos.el
@@ -1657,10 +1657,15 @@ otherwise, a new file name is allowed."
1657 (if archive todos-archives todos-files))) 1657 (if archive todos-archives todos-files)))
1658 (file (completing-read prompt files nil mustmatch nil nil 1658 (file (completing-read prompt files nil mustmatch nil nil
1659 (if files 1659 (if files
1660 ;; If user hit RET without choosing 1660 ;; If user hit RET without
1661 ;; a file, default to current file. 1661 ;; choosing a file, default to
1662 ;; current or default file.
1662 (todos-short-file-name 1663 (todos-short-file-name
1663 todos-current-todos-file) 1664 (or todos-current-todos-file
1665 (and todos-show-current-file
1666 todos-global-current-todos-file)
1667 (todos-absolute-file-name
1668 todos-default-todos-file)))
1664 ;; Trigger prompt for initial file. 1669 ;; Trigger prompt for initial file.
1665 "")))) 1670 ""))))
1666 (unless (file-exists-p todos-directory) 1671 (unless (file-exists-p todos-directory)