[PATCH] emacs: Make the queries used in the all-tags section
Daniel Schoepe
daniel.schoepe at googlemail.com
Wed May 25 09:51:02 PDT 2011
On Wed, 25 May 2011 10:44:51 -0400, Austin Clements <amdragon at mit.edu> wrote:
> May I suggest a slightly different way of looking at this that will
> quell my inner parser? Instead of configuring a weird "query
> fragment" like "and tag:unread" to be string-concatenated with the tag
> query, configure a *filter* query like merely "tag:unread" that
> narrows down what you'd like to be counted within the scope of a tag.
> The implementations are hardly different---simply generate the query
> "tag:<tag> and ( <filter> )"---but a filter is a well-formed query,
> not some string fragment. Furthermore, the user can't get bitten by
> precedence and wind up with a query that counts messages that don't
> even have that tag.
Good point, I attached an updated patch that implements this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-emacs-Make-queries-used-in-the-all-tags-section-conf.patch
Type: text/x-diff
Size: 3312 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110525/f02b5621/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110525/f02b5621/attachment.pgp>
More information about the notmuch
mailing list