projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f99ad42
)
Fix problem with notmuch-hello-nice-number
author
Dirk Hohndel
<hohndel@infradead.org>
Fri, 29 Oct 2010 22:49:01 +0000
(15:49 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 29 Oct 2010 22:49:01 +0000
(15:49 -0700)
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
patch
|
blob
|
history
diff --git
a/emacs/notmuch-hello.el
b/emacs/notmuch-hello.el
index c384313f69fc1c052de87ad29c272251c351c89a..4b6a90dbc0ecc3e5a334c3a68d301e451c57fa46 100644
(file)
--- 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)