summaryrefslogtreecommitdiff
path: root/mu4e
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-10-18 02:14:41 +0200
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-10-19 13:11:01 +0300
commit177da72f5e7ade64dec0b7c4cfdf8c89258bacb7 (patch)
tree100b65629d7189b6fcae54784f353a2aaf524516 /mu4e
parent0d1540bcf2e06e2b9e1282f21c50be8afd44c69c (diff)
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
Diffstat (limited to 'mu4e')
-rw-r--r--mu4e/mu4e-headers.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el
index 59ccd24..713fcac 100644
--- a/mu4e/mu4e-headers.el
+++ b/mu4e/mu4e-headers.el
@@ -788,8 +788,6 @@ present, don't do anything."
buf nil t))
(kill-buffer buf))))
-
-
;;; Performing queries (internal)
(defconst mu4e~search-message "Searching...")
(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)))
;; maybe enable thread folding
(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 'mu4e-headers-found-hook))
-
;;; Marking
(defmacro mu4e~headers-defun-mark-for (mark)
@@ -1179,8 +1178,7 @@ The following specs are supported:
(setq
truncate-lines t
buffer-undo-list t ;; don't record undo information
- overwrite-mode nil
- header-line-format (mu4e~header-line-format))
+ overwrite-mode nil)
(mu4e--mark-initialize) ;; initialize the marking subsystem
(mu4e-context-minor-mode)