aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-hello.el
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <hohndel@infradead.org>2010-10-29 15:49:01 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-29 15:49:01 -0700
commitee578338a691bb948a00d9372f9fe2b898f2b267 (patch)
tree39ed54a5991175dcce168121a143c5a75800fe20 /emacs/notmuch-hello.el
parentf99ad42da03afd638bfdfdea92d1cbdd3b510b8f (diff)
Fix problem with notmuch-hello-nice-number
Without this little patch notmuch fails if asked to display a saved search that has zero results Edited-by: David Edmondson <dme@dme.org>: With code that is a little more "emacsy".
Diffstat (limited to 'emacs/notmuch-hello.el')
-rw-r--r--emacs/notmuch-hello.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index c384313f..4b6a90db 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)