diff options
| author | djcb <djcb@djcbsoftware.nl> | 2012-06-16 10:45:51 +0300 |
|---|---|---|
| committer | djcb <djcb@djcbsoftware.nl> | 2012-06-16 10:45:51 +0300 |
| commit | 523becb84cd7c4d7ef3ca864cbacc77276a669a8 (patch) | |
| tree | 504e4040a535d57ec5f0d40a41c6a96b7e58d2fc | |
| parent | 095e471fe6365f3de61e54f2563bc1a38e557405 (diff) | |
* mu4e-view: fix buffer quiting
| -rw-r--r-- | emacs/mu4e-headers.el | 4 | ||||
| -rw-r--r-- | 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 478ec4c..43eea36 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 aca4851..5c5a024 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 |
