From 78592682028e27a33ec61eaf30fded7a39d8a219 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 31 Aug 2023 10:02:36 +0300 Subject: [PATCH] Revert "mu4e-headers: switch to buffer on current frame" This reverts commit 11b7e5748cf14d3d51b184159a286191776a2775. The change has some unpleasant side-effect (switching to the headers buffer from whatever you are doing); needs some more thought. --- mu4e/mu4e-headers.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 38242e8e..425760b6 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -806,9 +806,9 @@ true, do *not* update the query history stack." (setq list-buffers-directory rewritten-expr) (mu4e--modeline-update)) - ;; when the buffer is already visible on the frame, select it; otherwise, + ;; when the buffer is already visible, select it; otherwise, ;; switch to it. - (unless (get-buffer-window buf) + (unless (get-buffer-window buf 0) (mu4e-display-buffer buf t)) (run-hook-with-args 'mu4e-search-hook expr) (mu4e~headers-clear mu4e~search-message)