]> git.eshelyaron.com Git - emacs.git/commitdiff
Adjust todo-quit to recent change in dired
authorStephen Berman <stephen.berman@gmx.net>
Wed, 19 Jul 2017 13:41:59 +0000 (15:41 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Wed, 19 Jul 2017 13:41:59 +0000 (15:41 +0200)
* lisp/calendar/todo-mode.el (todo-quit): Use quit-window instead of
bury-buffer to exit todo-mode.  This restores the desired behavior
of not immediately returning to the exited todo-mode buffer on
quitting another buffer, which a dired bug fix had changed (see
http://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00739.html).

lisp/calendar/todo-mode.el

index 235eb83e85bc633d587c14688b884d47ff13eb04..e184fdc591cfe1569cc3c82c03f40c7a8d584a25 100644 (file)
@@ -823,7 +823,7 @@ buries it and restores state as needed."
           (when (buffer-live-p buf) (kill-buffer buf)))
          ((eq major-mode 'todo-mode)
           (todo-save)
-          (bury-buffer)))))
+           (quit-window)))))
 
 ;; -----------------------------------------------------------------------------
 ;;; Navigation between and within categories