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".
This commit is contained in:
Dirk Hohndel 2010-10-29 15:49:01 -07:00 committed by Carl Worth
parent f99ad42da0
commit ee578338a6

View file

@ -115,6 +115,7 @@ Typically \",\" in the US and UK and \".\" in Europe."
(while (> n 0) (while (> n 0)
(push (% n 1000) result) (push (% n 1000) result)
(setq n (/ n 1000))) (setq n (/ n 1000)))
(setq result (or result '(0)))
(apply #'concat (apply #'concat
(number-to-string (car result)) (number-to-string (car result))
(mapcar (lambda (elem) (mapcar (lambda (elem)