Make sure exiting todo-mode buffer buries it (bug#27121)
commitd76c0078986b72bd83741f16f4db83c1b31de520
authorStephen Berman <stephen.berman@gmx.net>
Sun, 28 May 2017 20:52:05 +0000 (28 22:52 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Sun, 28 May 2017 22:06:22 +0000 (29 00:06 +0200)
tree1ea19ecffcefec0fdd50a6393b17851af46ca9e6
parente7bb7cc29bc27b368a066c088943c93b1c689b23
Make sure exiting todo-mode buffer buries it (bug#27121)

This failed due to commit ea3ae33b from 2013-05-16, which prevented
quitting todo-mode buffer after visiting todo-archive buffer from
making the archive buffer current again.  Avoid this now by simply
killing the archive buffer, since there's no need to keep it a live
buffer.  Consequently, quitting a todo-mode buffer can now use
bury-buffer without an argument, which ensures that is will not
becomes current on quitting the buffer that replaced it in the window.

* lisp/calendar/todo-mode.el (todo-quit): Kill todo-archive-mode
buffer instead of burying it.  This now allows exiting the
todo-mode buffer by bury-buffer without an argument, so do that.
lisp/calendar/todo-mode.el