]> git.eshelyaron.com Git - emacs.git/commit
Make todo-show work when adding and deleting a new todo file
authorStephen Berman <stephen.berman@gmx.net>
Mon, 3 Sep 2018 20:40:24 +0000 (22:40 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Mon, 3 Sep 2018 20:40:24 +0000 (22:40 +0200)
commit40f8ade7c81ab6f99537691ae00d2d42069bdb20
tree470239326b29b7b0aef70878b455e8920eff5bac
parent7e24039a9747cc1117b17631511e42cb3576362b
Make todo-show work when adding and deleting a new todo file

* lisp/calendar/todo-mode.el (todo-add-file): Since
todo-current-todo-file must be set before calling todo-show, but
the buffer is not yet in todo-mode, which makes it buffer local,
explicitly set it buffer locally (bug#32627).

* test/lisp/calendar/todo-mode-tests.el (todo-test--add-file)
(todo-test--delete-file): New functions.
(todo-test-add-and-delete-file): New test.
lisp/calendar/todo-mode.el
test/lisp/calendar/todo-mode-tests.el