Revert "mu4e-headers: switch to buffer on current frame"

This reverts commit 11b7e5748c.

The change has some unpleasant side-effect (switching to the headers
buffer from whatever you are doing); needs some more thought.
This commit is contained in:
Dirk-Jan C. Binnema 2023-08-31 10:02:36 +03:00
parent 11b7e5748c
commit 7859268202
1 changed files with 2 additions and 2 deletions

View File

@ -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)