mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
emacs: hello: ask confirmation for clearing recent searches
The button to clear the recent searches in notmuch-hello is easy to press accidentally while moving around the, clearing potentially useful searches with no way of recovering them.
This commit is contained in:
parent
e2f30a2b32
commit
486340e28e
1 changed files with 3 additions and 2 deletions
|
@ -599,8 +599,9 @@ Complete list of currently available key bindings:
|
|||
(widget-insert "Recent searches: ")
|
||||
(widget-create 'push-button
|
||||
:notify (lambda (&rest ignore)
|
||||
(setq notmuch-search-history nil)
|
||||
(notmuch-hello-update))
|
||||
(when (y-or-n-p "Are you sure you want to clear the searches? ")
|
||||
(setq notmuch-search-history nil)
|
||||
(notmuch-hello-update)))
|
||||
"clear")
|
||||
(widget-insert "\n\n")
|
||||
(let ((start (point)))
|
||||
|
|
Loading…
Add table
Reference in a new issue