Re: newbie questions about notmuch.el

Subject: Re: newbie questions about notmuch.el

Date: Fri, 08 Sep 2017 07:46:21 -0300

To: Julien Cubizolles, Tom Hirschowitz

Cc: Notmuch Mail

From: David Bremner


Julien Cubizolles <j.cubizolles@free.fr> writes:

> Tom Hirschowitz <tom.hirschowitz@univ-smb.fr> writes:
>
>> I think Julien meant the 'flagged' tag: just press the space bar to
>> switch it on and off.
>>
>> Regarding the second question, you may filter your search (e.g., by the
>> 'flagged' tag) and then tag all messages by pressing *. IIRC there is no
>> shortcut for filtering by default. I have this
>>
>> (define-key notmuch-show-mode-map (kbd "l") 'notmuch-search-filter) 
>> (define-key notmuch-search-mode-map (kbd "l") 'notmuch-search-filter) 
>> (define-key notmuch-tree-mode-map (kbd "l") 'notmuch-search-filter) 
>
> notmuch-search-filter doesn't seem to work in tree mode: I get
>
> --8<---------------cut here---------------start------------->8---
> (void-variable notmuch-search-query-string)
>   notmuch-search-filter-by-tag("+unread")
> --8<---------------cut here---------------end--------------->8---

Yes, I think there has to be some mistake in what Tom quoted (or Tom is
using a heavily modified version of notmuch), since
notmuch-search-filter doesn't work in notmuch-show-mode either. The
prefix is a  a hint why that might be: notmuch-search-foo is
generally intended to be called in notmuch-search mode.  As was already
mentioned, 'l' is bound by default to filter in both notmuch-show and
notmuch-search mode. There's no direct equivalent in tree-mode
currently, but you can use the following workaround

S - switch to search view of same query
l - limit search
Z - switch back to tree view.

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: