From 79f1819160917a8941f3c56c7c07aade3d7a7929 Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 23 Jun 2012 11:28:56 +0300 Subject: [PATCH] * mu4e-headers: kill the existing message view --- emacs/mu4e-headers.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/mu4e-headers.el b/emacs/mu4e-headers.el index 832eb323..dc3d854c 100644 --- a/emacs/mu4e-headers.el +++ b/emacs/mu4e-headers.el @@ -728,6 +728,10 @@ of `mu4e-split-view', and return a window for the message view." (unless (buffer-live-p mu4e~headers-buffer) (error "No headers buffer available")) (switch-to-buffer mu4e~headers-buffer) + ;; kill the existing view win + (when (buffer-live-p mu4e~view-buffer) + (kill-buffer mu4e~view-buffer)) + ;; get a new view window (setq mu4e~headers-view-win (cond ((eq mu4e-split-view 'horizontal) ;; split horizontally