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

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

Date: Thu, 10 Jun 2010 08:05:13 +0100

To: Dirk Hohndel, notmuch

Cc:

From: David Edmondson


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:

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)

dme.
-- 
David Edmondson, http://dme.org
part-000.sig (application/pgp-signature)

Thread: