Re: [notmuch] [RFC] Precedence of OR and AND

Subject: Re: [notmuch] [RFC] Precedence of OR and AND

Date: Sun, 22 Nov 2009 22:43:30 +0100

To: Bart Trojanowski

Cc: notmuch@notmuchmail.org

From: Jed Brown


On Sun, 22 Nov 2009 16:36:49 -0500, Bart Trojanowski <bart@jukie.net> wrote:
> Wouldn't this problem be solved by each filter appending a bracketed
> version of your filter?
> 
> You start with tag:inbox and you filter on "term1 or term2" you'd get:
> 
>         tag:inbox and (term1 or term2)

Absolutely, and I have this applied locally to notmuch.el, but I didn't
fix notmuch-search-filter-by-tag because that would really need to parse
the expression.  I'm just asking if anyone else thinks binding OR
tighter than AND would be desirable.

Jed

Thread: