* mu4e-view: fix buffer quiting
This commit is contained in:
@ -1158,8 +1158,8 @@ region if there is a region, then move to the next message."
|
||||
(mu4e-headers-next))
|
||||
|
||||
(defun mu4e~headers-quit-buffer ()
|
||||
"Quit the mu4e-headers buffer. This is a rather complex function; to
|
||||
ensure we don't disturb other windows."
|
||||
"Quit the mu4e-headers buffer. This is a rather complex function,
|
||||
to ensure we don't disturb other windows."
|
||||
(interactive)
|
||||
(unless (eq major-mode 'mu4e-headers-mode)
|
||||
(error "Must be in mu4e-headers-mode (%S)" major-mode))
|
||||
|
||||
@ -1027,7 +1027,7 @@ the results."
|
||||
(mu4e-process-file-through-pipe path cmd)))
|
||||
|
||||
(defun mu4e~view-quit-buffer ()
|
||||
"Quit the mu4e-view buffer. This is a rather complex function; to
|
||||
"Quit the mu4e-view buffer. This is a rather complex function, to
|
||||
ensure we don't disturb other windows."
|
||||
(interactive)
|
||||
(unless (eq major-mode 'mu4e-view-mode)
|
||||
@ -1050,7 +1050,7 @@ ensure we don't disturb other windows."
|
||||
;; now, all *other* windows should be gone.
|
||||
;; if the headers view is also visible, kill ourselves + window; otherwise
|
||||
;; switch to the headers view
|
||||
(when (window-live-p headers-win)
|
||||
(if (window-live-p headers-win)
|
||||
;; headers are visible
|
||||
(progn
|
||||
(kill-buffer-and-window) ;; kill the view win
|
||||
|
||||
Reference in New Issue
Block a user