]> git.eshelyaron.com Git - emacs.git/commit
Fix exiting from editing todo archive file (bug#32437)
authorStephen Berman <stephen.berman@gmx.net>
Tue, 14 Aug 2018 19:39:24 +0000 (21:39 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Tue, 14 Aug 2018 19:39:24 +0000 (21:39 +0200)
commita2ec595e5d7cf95715312a9cd0a6f4ef0f6e370f
tree75f7d6ebf424945177cc972b3b15f3bf86d822b2
parent11c7c2f758f8f07e7b917fbc93267cee236a80e5
Fix exiting from editing todo archive file (bug#32437)

* lisp/calendar/todo-mode.el (todo-edit-file): Make the warning
also suitable for Todo Archive mode, and add more space to it.
(todo-edit-quit): On quitting editing an archive file, return to
the Todo Archive mode buffer editing was invoked in.
(todo-check-format): Display a warning instead of a message when
the categories sexp isn't as expected.
(todo-mode-external-set): Remove.
(todo-edit-mode): Set buffer local values of
todo-current-todo-file and todo-categories from the todo or
archive file being edited.
(todo-categories-mode): Set buffer local values of
todo-current-todo-file and todo-categories as before but directly
instead of using superfluous todo-mode-external-set function.

* test/lisp/calendar/todo-mode-tests.el (todo-test-edit-quit): New test.
lisp/calendar/todo-mode.el
test/lisp/calendar/todo-mode-tests.el