From a8d2476f0810872b630b9f1bc4f540fef93063d3 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 14 Jan 2023 19:45:18 +0200 Subject: [PATCH] mu4e-view: select window when operating in headers context Fixes #2398 --- mu4e/mu4e-view.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index ae0279b7..1e94ccab 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -156,7 +156,9 @@ Then, display the results." (unless docid (mu4e-error "Message without docid: action is not possible")) (with-current-buffer buffer - ;;(mu4e-display-buffer buffer) + ;; make sure to select the window, or jumping won't + ;; be reflected. + (select-window (get-buffer-window)) (if (or (mu4e~headers-goto-docid docid) ;; TODO: Is this the best way to find another ;; relevant docid for a view buffer?