From 02afd1305b4921d209aa95c1728768e514d37f8a Mon Sep 17 00:00:00 2001 From: Paul Nelson Date: Mon, 1 Dec 2025 09:04:04 +0100 Subject: [PATCH] Use dedicated minibuffer history for mairix-search * lisp/net/mairix.el (mairix-search-history): New variable. (mairix-search): Use it (bug#79926). --- etc/NEWS | 5 +++++ lisp/net/mairix.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index d8510814913..5b064108606 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -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 --- diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el index a976c4fa8a4..9f63c289936 100644 --- a/lisp/net/mairix.el +++ b/lisp/net/mairix.el @@ -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)