From fd949273e0761f5251b286ec0d0af8721adec34d Mon Sep 17 00:00:00 2001 From: Sean Farley Date: Mon, 1 Dec 2014 20:37:50 -0800 Subject: [PATCH] mu4e-view: select next unread message in view buffer Previously, the behavior of mu4e-view-headers-next-unread was that the cursor moved in the headers view but did not change the highlight nor the message in the view buffer. This patch updates the function to also select the message in the view buffer which appears to also highlight the message correctly in the header view. --- mu4e/mu4e-view.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 4eaee2d9..0b9546c1 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -866,9 +866,9 @@ message view. If this succeeds, return the new docid. Otherwise, return nil." (interactive "P") (mu4e~view-in-headers-context - (mu4e-headers-next-unread backwards))) -;; NOTE perhaps nice to have it also _select_ the found message; -;; but it seems emacs gets a bit confused when we try that. + (mu4e-headers-next-unread backwards)) + (mu4e-select-other-view) + (mu4e-headers-view-message)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;