Re: [PATCH 3/7] emacs/tree: command to toggle search sort order in tree mode

Subject: Re: [PATCH 3/7] emacs/tree: command to toggle search sort order in tree mode

Date: Sat, 26 Jun 2021 07:31:46 -0300

To: jao, notmuch@notmuchmail.org

Cc: jao

From: David Bremner


jao <jao@gnu.org> writes:

> New command notmuch-tree-toggle-order for switching the sort order (by
> reissuing the search with a different flag) in a notmuch-tree buffer.
> ---
>  emacs/notmuch-tree.el | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
> index 6ef8e439..c23dacfc 100644
> --- a/emacs/notmuch-tree.el
> +++ b/emacs/notmuch-tree.el
> @@ -322,6 +322,7 @@ then NAME behaves like CMD."
>      ;; that additionally close the message window.
>      (define-key map [remap notmuch-bury-or-kill-this-buffer] 'notmuch-tree-quit)
>      (define-key map [remap notmuch-search]       'notmuch-tree-to-search)
> +    (define-key map [remap notmuch-search]       'notmuch-tree-toggle-order)
>      (define-key map [remap notmuch-help]         'notmuch-tree-help)
>      (define-key map [remap notmuch-mua-new-mail] 'notmuch-tree-new-mail)
>      (define-key map [remap notmuch-jump-search]  'notmuch-tree-jump-search)

That remap command looks like a copy-paste failure. Does it actually
work?

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: