From ee578338a691bb948a00d9372f9fe2b898f2b267 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 29 Oct 2010 15:49:01 -0700 Subject: 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". --- emacs/notmuch-hello.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs/notmuch-hello.el') 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) -- cgit v1.2.3