mu4e: implement mu4e-query-items

Implement function / datas structure to conveniently aggregate all
query-related data, for reuse in various places in mu4e...

... to start with the main menu, which gets much simpler. And the
modeline.
This commit is contained in:
Dirk-Jan C. Binnema
2023-01-09 23:58:10 +02:00
parent fc867c9065
commit 10041eb2e1
10 changed files with 345 additions and 281 deletions

View File

@ -63,11 +63,6 @@ the buffer-local one."
mu4e--modeline-global-items)
" "))))
(defun mu4e--modeline-update ()
"Recalculate and force-update the modeline."
(setq mu4e--modeline-string-cached nil)
(force-mode-line-update))
(define-minor-mode mu4e-modeline-mode
"Minor mode for showing mu4e information on the modeline."
;; This is a bit special 'global' mode, since it consists of both
@ -87,6 +82,13 @@ the buffer-local one."
global-mode-string)))
(force-mode-line-update)))
(defun mu4e--modeline-update ()
"Recalculate and force-update the modeline."
(when mu4e-modeline-mode
(setq mu4e--modeline-string-cached nil)
(force-mode-line-update)))
(provide 'mu4e-modeline)
;;; mu4e-modeline.el ends here