1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Use dedicated minibuffer history for mairix-search

* lisp/net/mairix.el (mairix-search-history): New variable.
(mairix-search): Use it (bug#79926).
This commit is contained in:
Paul Nelson 2025-12-01 09:04:04 +01:00 committed by Sean Whitton
parent 7d4e2107b3
commit 02afd1305b
2 changed files with 8 additions and 1 deletions

View file

@ -1748,6 +1748,11 @@ This contains the list of regular expressions used to match "Re:" and
international variants of it when modifying the Subject field in
replies.
** mairix
---
*** 'mairix-search' now keeps its own minibuffer history.
** Imap
---

View file

@ -200,6 +200,8 @@ Currently there are `threads' and `flags'.")
;;;; Internal variables
(defvar mairix-search-history nil
"Minibuffer history for `mairix-search'.")
(defvar mairix-last-search nil)
(defvar mairix-searches-changed nil)
@ -334,7 +336,7 @@ If THREADS is non-nil, also display whole threads of found
messages. Results will be put into the default search file."
(interactive
(list
(read-string "Query: ")
(read-string "Query: " nil 'mairix-search-history)
(y-or-n-p "Include threads? ")))
(when (mairix-call-mairix
(split-string search)