mirror of https://github.com/djcb/mu.git
* mu4e-utils.el: improve mu4e-quit-buffer (bury-buffer)
This commit is contained in:
parent
46a6b445b3
commit
a4bef96620
|
@ -779,6 +779,7 @@ is ignored."
|
|||
(defun mu4e-quit-buffer ()
|
||||
"Bury the current buffer (and delete all windows displaying it)."
|
||||
(interactive)
|
||||
(let ((buf (current-buffer)))
|
||||
(walk-windows
|
||||
;; kill any window that:
|
||||
;; a) displays the current buffer
|
||||
|
@ -786,7 +787,10 @@ is ignored."
|
|||
(lambda (win)
|
||||
(when (eq (window-buffer win) (current-buffer))
|
||||
(unless (one-window-p t)
|
||||
(delete-window win)))) nil t))
|
||||
(delete-window win)))) nil t)
|
||||
;; if current buffer is still here, bury it
|
||||
(when (eq buf (current-buffer))
|
||||
(bury-buffer))))
|
||||
|
||||
|
||||
(defun mu4e-hide-other-mu4e-buffers ()
|
||||
|
|
Loading…
Reference in New Issue