[PATCH v3] emacs: wrap current search in parens when filtering

2015-09-06 Thread Uli Scholler
When filtering the current search further with notmuch-search-filter, wrap the current search in parens (if necessary). This fixes unexpected behavior when the current search is complex (like "(tag:this and date:one_week_ago..) or tag:that"). --- emacs/notmuch.el | 20 +++- 1

[PATCH] emacs: wrap current search in parens when filtering

2015-09-03 Thread Uli Scholler
When filtering the current search further with notmuch-search-filter, wrap the current search in parens. This fixes unexpected behavior when the current search is complex (like "(tag:this and date:one_week_ago..) or tag:that"). --- emacs/notmuch.el | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2] emacs: wrap current search in parens when filtering

2015-09-03 Thread Uli Scholler
Tomi Ollila writes: > But should this do the same "notmuch-search-disjunctive-regexp" check > which is done when building up `grouped-query' ? Here is an improved version of my patch: --- When filtering the current search further with notmuch-search-filter, wrap the current