Re: fix problem with notmuch-hello-nice-number

Subject: Re: fix problem with notmuch-hello-nice-number

Date: Fri, 29 Oct 2010 15:56:16 -0700

To: David Edmondson, Dirk Hohndel, notmuch

Cc:

From: Carl Worth


On Thu, 10 Jun 2010 08:05:13 +0100, David Edmondson <dme@dme.org> wrote:
> On Wed, 09 Jun 2010 07:49:01 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:
> > Without this little patch notmuch fails with current git if there's a
> > saved search that has zero results
> 
> How about:
...
>        (setq n (/ n 1000)))
> +    (setq result (or result '(0)))
>      (apply #'concat

Thanks Dirk and David,

I've just pushed this version (finally!) of this nearly-trivial patch
From so long ago. The bug hasn't been as important lately since by
default notmuch doesn't even display saved searches with 0 results. But
the bug was still present for anyone that set
notmuch-show-empty-saved-searches to a non-nil value.

I've also added a test to the test suite to ensure this case gets
exercised there.

Thanks again,

-Carl

-- 
carl.d.worth@intel.com
part-000.sig (application/pgp-signature)

Thread: