From 11b7e5748cf14d3d51b184159a286191776a2775 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 30 Aug 2023 18:50:15 +0300 Subject: [PATCH] mu4e-headers: switch to buffer on current frame We were possible showing the headers on _another_ frame, which is rather confusing. HT: Marcel van der Boom. Fixes #2545 --- 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 425760b6..38242e8e 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, select it; otherwise, + ;; when the buffer is already visible on the frame, select it; otherwise, ;; switch to it. - (unless (get-buffer-window buf 0) + (unless (get-buffer-window buf) (mu4e-display-buffer buf t)) (run-hook-with-args 'mu4e-search-hook expr) (mu4e~headers-clear mu4e~search-message)