[PATCH v2 1/2] emacs: add a filter option to show

Mark Walters markwalters1009 at gmail.com
Thu Apr 26 12:10:01 PDT 2012


On Thu, 26 Apr 2012, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> On Wed, Apr 25 2012, Mark Walters <markwalters1009 at gmail.com> wrote:
>
>> Show the current thread with a different filter (i.e., open messages
>> in the thread matching the new query).
>>
>> Bound to 'l' for "limit".
>>
>> Note that it is not the same as filter in search mode as it replaces
>> the existing query rather than ANDing with it (but it does keep the
>> thread-id part of the query).
>> ---
>
> LGTM -- just one question -- to be analogous with 'notmuch-search-filter'
> 'notmuch-show-filter-thread' could look something like:
>
> (defun notmuch-show-filter-thread (query)
>   "Filter or LIMIT the current thread based on a new query string.
>
> Reshows the current thread with matches defined by the new query-string."
>   (interactive (list (notmuch-read-query "Filter thread: ")))
>   (setq notmuch-show-query-context (if (string= query "") nil query))
>   (notmuch-show-refresh-view t))
>

Oh that looks much nicer! I will resubmit.

Best wishes

Mark



More information about the notmuch mailing list