From d67f0f181b4e404c51bd9cc7c90cd2442040738c Mon Sep 17 00:00:00 2001 From: djcb Date: Tue, 12 Jun 2012 00:34:56 +0300 Subject: [PATCH] * mu4e-headers.el: give better feedback when changing sort-order/threading/full-search, document it. --- emacs/mu4e-headers.el | 14 +++++++++++++- emacs/mu4e.texi | 8 +++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/emacs/mu4e-headers.el b/emacs/mu4e-headers.el index b860b8da..a13a36ba 100644 --- a/emacs/mu4e-headers.el +++ b/emacs/mu4e-headers.el @@ -938,6 +938,11 @@ rerun the last search with the new parameters." (setq mu4e-headers-sortfield sortfield mu4e-headers-sort-revert revert) ;; "descending" means "revert" + (mu4e-message "Sorting by %s (%s)%s" + (symbol-name sortfield) + (if revert "descending" "ascending") + (if rerun + "" " (press 'g' to refresh)")) (when rerun (mu4e-headers-rerun-search)))) @@ -946,6 +951,9 @@ rerun the last search with the new parameters." rerun the last search with the new setting for threading." (interactive "P") (setq mu4e-headers-show-threads (not mu4e-headers-show-threads)) + (mu4e-message "Threading turned %s%s" + (if mu4e-headers-show-threads "on" "off") + (if rerun "" " (press 'g' to refresh)")) (when rerun (mu4e-headers-rerun-search))) @@ -954,7 +962,11 @@ rerun the last search with the new setting for threading." rerun the last search with the new setting for threading." (interactive "P") (setq mu4e-headers-full-search (not mu4e-headers-full-search)) - (when rerun (mu4e-headers-rerun-search))) + (mu4e-message "Full search turned %s%s" + (if mu4e-headers-full-search "on" "off") + (if rerun "" " (press 'g' to refresh)")) + (when rerun + (mu4e-headers-rerun-search))) (defun mu4e-headers-view-message () diff --git a/emacs/mu4e.texi b/emacs/mu4e.texi index 609ed10b..6da96bd7 100644 --- a/emacs/mu4e.texi +++ b/emacs/mu4e.texi @@ -544,6 +544,7 @@ M-right next query O change sort order P toggle threading +Q toggle full-search a execute some action on header @@ -609,9 +610,10 @@ order. You can change the sort order with @t{M-x mu4e-headers-change-sorting} or @key{O}, and you can toggle threading on/off using @t{M-x -mu4e-headers-toggle-threading}. For both of these functions, if you provide a -prefix argument (@key{C-u}), the current search is updated immediately using -the new parameters. +mu4e-headers-toggle-threading} or @key{P}. For both of these functions, if you +provide a prefix argument (@key{C-u}), the current search is updated +immediately using the new parameters. You can toggle full-search +(@ref{Searching}) using @t{M-x mu4e-headers-toggle-full-search} or @key{Q}. If you want to change the defaults for these settings, you can use the variables @code{mu4e-headers-sortfield} and @code{mu4e-headers-show-threads}.