* mu4e-headers.el: give better feedback when changing sort-order/threading/full-search, document it.

This commit is contained in:
djcb 2012-06-12 00:34:56 +03:00
parent 1c8f12c25e
commit d67f0f181b
2 changed files with 18 additions and 4 deletions

View File

@ -938,6 +938,11 @@ rerun the last search with the new parameters."
(setq (setq
mu4e-headers-sortfield sortfield mu4e-headers-sortfield sortfield
mu4e-headers-sort-revert revert) ;; "descending" means "revert" 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 (when rerun
(mu4e-headers-rerun-search)))) (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." rerun the last search with the new setting for threading."
(interactive "P") (interactive "P")
(setq mu4e-headers-show-threads (not mu4e-headers-show-threads)) (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 (when rerun
(mu4e-headers-rerun-search))) (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." rerun the last search with the new setting for threading."
(interactive "P") (interactive "P")
(setq mu4e-headers-full-search (not mu4e-headers-full-search)) (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 () (defun mu4e-headers-view-message ()

View File

@ -544,6 +544,7 @@ M-right next query
O change sort order O change sort order
P toggle threading P toggle threading
Q toggle full-search
a execute some action on header 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 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 @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 mu4e-headers-toggle-threading} or @key{P}. For both of these functions, if you
prefix argument (@key{C-u}), the current search is updated immediately using provide a prefix argument (@key{C-u}), the current search is updated
the new parameters. 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 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}. variables @code{mu4e-headers-sortfield} and @code{mu4e-headers-show-threads}.