* don't return to headers view after closing mu4e

This commit is contained in:
djcb
2012-04-10 18:13:03 +03:00
parent 3e723b331a
commit 9c03b76834
3 changed files with 5 additions and 10 deletions

View File

@ -312,10 +312,9 @@ point in eiter the headers buffer or the view buffer."
`kill-buffer-and-window', but can be called from any buffer, and
simply does not attempt to delete the window if there is none,
instead of erroring out."
(when (buffer-live-p buf)
(with-current-buffer buf
(when (buffer-live-p buf)
((bury-buffer buf)
(delete-windows-on buf) ;; destroy all windows for this buffer
(delete-windows-on buf) ;; destroy all windows for this buffer
(kill-buffer buf))))
(defun mu4e-select-other-view ()