fix problem with notmuch-hello-nice-number
Dirk Hohndel
hohndel at infradead.org
Thu Jun 10 07:00:57 PDT 2010
On Thu, 10 Jun 2010 08:05:13 +0100, David Edmondson <dme at dme.org> wrote:
> On Wed, 09 Jun 2010 07:49:01 -0700, Dirk Hohndel <hohndel at infradead.org> wrote:
> > Without this little patch notmuch fails with current git if there's a
> > saved search that has zero results
>
> How about:
>
> diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
> index a6e8a47..48bb6e3 100644
> --- a/emacs/notmuch-hello.el
> +++ b/emacs/notmuch-hello.el
> @@ -115,6 +115,7 @@ Typically \",\" in the US and UK and \".\" in Europe."
> (while (> n 0)
> (push (% n 1000) result)
> (setq n (/ n 1000)))
> + (setq result (or result '(0)))
> (apply #'concat
> (number-to-string (car result))
> (mapcar (lambda (elem)
>
Much better. Mine made sense when you looked at it - this one has a much
more emacs-y feel to it in that I need to stare at it for 30 seconds
before I can grasp what it does :-)
/D
--
Dirk Hohndel
Intel Open Source Technology Center
More information about the notmuch
mailing list