* mu4e-headers: add mu4e-headers-forget-queries

This commit is contained in:
djcb 2012-05-07 16:30:22 +03:00
parent 5b19d029d6
commit 50ecb17431
1 changed files with 11 additions and 1 deletions

View File

@ -913,7 +913,17 @@ determines where the query is taken from and is a symbol, either
"Execute the previous query from the query stacks." "Execute the previous query from the query stacks."
(interactive "P") (interactive "P")
(mu4e~headers-query-navigate full-search 'past)) (mu4e~headers-query-navigate full-search 'past))
;; forget the past so we don't repeat it :/
(defun mu4e-headers-forget-queries ()
"Forget all the complete query history."
(interactive)
(setq
mu4e~headers-query-past nil
mu4e~headers-query-present nil
mu4e~headers-query-future nil)
(mu4e-message "Query history cleared"))
(defun mu4e~headers-move (lines) (defun mu4e~headers-move (lines)
"Move point LINES lines forward (if LINES is positive) or "Move point LINES lines forward (if LINES is positive) or
backward (if LINES is negative). If this succeeds, return the new backward (if LINES is negative). If this succeeds, return the new