From: Dirk Hohndel Date: Fri, 29 Oct 2010 22:49:01 +0000 (-0700) Subject: Fix problem with notmuch-hello-nice-number X-Git-Tag: 0.4~21 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=ee578338a691bb948a00d9372f9fe2b898f2b267 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 : With code that is a little more "emacsy". --- 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)