From 5d5533c9538c95da17273c2b25a02913bf95cccd Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 21 May 2012 15:28:55 +0300 Subject: [PATCH] * fix errors when doing next/forward in split-view --- emacs/mu4e-headers.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/mu4e-headers.el b/emacs/mu4e-headers.el index bba09291..9f75996c 100644 --- a/emacs/mu4e-headers.el +++ b/emacs/mu4e-headers.el @@ -633,8 +633,8 @@ update the query history stack." of `mu4e-split-view', and return a window for the message view." (unless (buffer-live-p mu4e~headers-buffer) (error "No headers buffer available")) - (ignore-errors (delete-window mu4e~headers-view-win)) (switch-to-buffer mu4e~headers-buffer) + (delete-other-windows) (setq mu4e~headers-view-win (cond ((eq mu4e-split-view 'horizontal) ;; split horizontally @@ -965,10 +965,10 @@ docid. Otherwise, return nil." (set-window-point (get-buffer-window mu4e~headers-buffer) (point)) ;; attempt to highlight the new line, display the message (mu4e~headers-highlight docid) + ;; update message view if it was already showing (when (window-live-p mu4e~headers-view-win) - (select-window (mu4e~headers-redraw-get-view-window) - (mu4e-headers-view-message))) - docid))) + (mu4e-headers-view-message)) + docid))) (defun mu4e-headers-next (&optional n) "Move point to the next message header. If this succeeds, return