From 50ecb1743131884d4107f2d462c98ab76c036c10 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 7 May 2012 16:30:22 +0300 Subject: [PATCH] * mu4e-headers: add mu4e-headers-forget-queries --- emacs/mu4e-headers.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/emacs/mu4e-headers.el b/emacs/mu4e-headers.el index 065eed15..8afada5f 100644 --- a/emacs/mu4e-headers.el +++ b/emacs/mu4e-headers.el @@ -913,7 +913,17 @@ determines where the query is taken from and is a symbol, either "Execute the previous query from the query stacks." (interactive "P") (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) "Move point LINES lines forward (if LINES is positive) or backward (if LINES is negative). If this succeeds, return the new