]> git.notmuchmail.org Git - notmuch/commit
emacs: Match entire saved-search when computing search-view buffer name
authorCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 05:49:45 +0000 (22:49 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 05:49:45 +0000 (22:49 -0700)
commitf2ebe3ac446afda9ced6507dc391865464ccdcaa
tree70441e575cd036e1295d0635c9ed58d7a9b1cbb7
parenta4669217600e4536dc0c49f0255af5e2d9bc183f
emacs: Match entire saved-search when computing search-view buffer name

I happen to have a lot of saved searches that are variants of the
tag:inbox search, (such as "tag:inbox and tag:notmuch"). The logic for
these was always matching inbox first, resulting in "[ inbox ] and
tag:notmuch" rather than "notmuch" as desired.

Anchor the regular expression on both ends to make it look harder for
the better match.
emacs/notmuch.el