From 523becb84cd7c4d7ef3ca864cbacc77276a669a8 Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 16 Jun 2012 10:45:51 +0300 Subject: [PATCH] * mu4e-view: fix buffer quiting --- emacs/mu4e-headers.el | 4 ++-- emacs/mu4e-view.el | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/mu4e-headers.el b/emacs/mu4e-headers.el index 478ec4c1..43eea36f 100644 --- a/emacs/mu4e-headers.el +++ b/emacs/mu4e-headers.el @@ -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)) diff --git a/emacs/mu4e-view.el b/emacs/mu4e-view.el index aca48516..5c5a0244 100644 --- a/emacs/mu4e-view.el +++ b/emacs/mu4e-view.el @@ -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