From ee578338a691bb948a00d9372f9fe2b898f2b267 Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <hohndel@infradead.org>
Date: Fri, 29 Oct 2010 15:49:01 -0700
Subject: [PATCH] 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".
---
 emacs/notmuch-hello.el | 1 +
 1 file changed, 1 insertion(+)

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)
-- 
2.45.2