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

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

Date: Mon, 23 Nov 2009 05:39:29 +0100

To: Jed Brown, Bart Trojanowski

Cc: notmuch@notmuchmail.org

From: Carl Worth


On Sun, 22 Nov 2009 22:43:30 +0100, Jed Brown <jed@59A2.org> wrote:
> On Sun, 22 Nov 2009 16:36:49 -0500, Bart Trojanowski <bart@jukie.net> wrote:
> Absolutely, and I have this applied locally to notmuch.el,

Patch please?

>                                                            but I didn't
> fix notmuch-search-filter-by-tag because that would really need to parse
> the expression.

I don't see the difference here. Any time we append to the search
string, we should be doing so with parentheses.

>                  I'm just asking if anyone else thinks binding OR
> tighter than AND would be desirable.

Right now, Xapian is doing all of our query parsing. So we'd have to
take things up there to get anything changed for now.

In the future we might be forced into writing our own query parser to
get all the functionality we want.

-Carl

Thread: