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:
parent
7d4e2107b3
commit
02afd1305b
2 changed files with 8 additions and 1 deletions
5
etc/NEWS
5
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
|
international variants of it when modifying the Subject field in
|
||||||
replies.
|
replies.
|
||||||
|
|
||||||
|
** mairix
|
||||||
|
|
||||||
|
---
|
||||||
|
*** 'mairix-search' now keeps its own minibuffer history.
|
||||||
|
|
||||||
** Imap
|
** Imap
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -200,6 +200,8 @@ Currently there are `threads' and `flags'.")
|
||||||
|
|
||||||
;;;; Internal variables
|
;;;; Internal variables
|
||||||
|
|
||||||
|
(defvar mairix-search-history nil
|
||||||
|
"Minibuffer history for `mairix-search'.")
|
||||||
(defvar mairix-last-search nil)
|
(defvar mairix-last-search nil)
|
||||||
(defvar mairix-searches-changed 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."
|
messages. Results will be put into the default search file."
|
||||||
(interactive
|
(interactive
|
||||||
(list
|
(list
|
||||||
(read-string "Query: ")
|
(read-string "Query: " nil 'mairix-search-history)
|
||||||
(y-or-n-p "Include threads? ")))
|
(y-or-n-p "Include threads? ")))
|
||||||
(when (mairix-call-mairix
|
(when (mairix-call-mairix
|
||||||
(split-string search)
|
(split-string search)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue