fix problem with notmuch-hello-nice-number
David Edmondson
dme at dme.org
Thu Jun 10 00:05:13 PDT 2010
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)
dme.
--
David Edmondson, http://dme.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100610/0db9cf68/attachment.pgp>
More information about the notmuch
mailing list