mu4e-headers: set header-line after query

We only have the complete query-info when we get :found,
so update the header-line only then.

Fixes #2875
This commit is contained in:
Dirk-Jan C. Binnema
2025-10-18 02:14:41 +02:00
committed by Seth Ladygo
parent 7526777c7d
commit b698c1a89f

View File

@ -788,8 +788,6 @@ present, don't do anything."
buf nil t)) buf nil t))
(kill-buffer buf)))) (kill-buffer buf))))
;;; Performing queries (internal) ;;; Performing queries (internal)
(defconst mu4e~search-message "Searching...") (defconst mu4e~search-message "Searching...")
(defconst mu4e~no-matches "No matching messages found") (defconst mu4e~no-matches "No matching messages found")
@ -885,11 +883,12 @@ COUNT is the number of messages found."
(mu4e~headers-highlight (mu4e~headers-docid-at-point))) (mu4e~headers-highlight (mu4e~headers-docid-at-point)))
;; maybe enable thread folding ;; maybe enable thread folding
(when mu4e-search-threads (when mu4e-search-threads
(mu4e-thread-mode)))) (mu4e-thread-mode)))
;; might need updating
(setq header-line-format (mu4e~header-line-format)))
;; run-hooks ;; run-hooks
(run-hooks 'mu4e-headers-found-hook)) (run-hooks 'mu4e-headers-found-hook))
;;; Marking ;;; Marking
(defmacro mu4e~headers-defun-mark-for (mark) (defmacro mu4e~headers-defun-mark-for (mark)
@ -1179,8 +1178,7 @@ The following specs are supported:
(setq (setq
truncate-lines t truncate-lines t
buffer-undo-list t ;; don't record undo information buffer-undo-list t ;; don't record undo information
overwrite-mode nil overwrite-mode nil)
header-line-format (mu4e~header-line-format))
(mu4e--mark-initialize) ;; initialize the marking subsystem (mu4e--mark-initialize) ;; initialize the marking subsystem
(mu4e-context-minor-mode) (mu4e-context-minor-mode)