unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* fix problem with notmuch-hello-nice-number
@ 2010-06-09 14:49 Dirk Hohndel
  2010-06-10  7:05 ` David Edmondson
  0 siblings, 1 reply; 4+ messages in thread
From: Dirk Hohndel @ 2010-06-09 14:49 UTC (permalink / raw)
  To: notmuch


Without this little patch notmuch fails with current git if there's a
saved search that has zero results

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index f5d061b..7c32f7c 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -112,6 +112,8 @@ Typically \",\" in the US and UK and \".\" in Europe."
 
 (defun notmuch-hello-nice-number (n)
   (let (result)
+    (if (= n 0)
+       (push 0 result))
     (while (> n 0)
       (push (% n 1000) result)
       (setq n (/ n 1000)))

-- 
Dirk Hohndel
Intel Open Source Technology Center

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-29 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-09 14:49 fix problem with notmuch-hello-nice-number Dirk Hohndel
2010-06-10  7:05 ` David Edmondson
2010-06-10 14:00   ` Dirk Hohndel
2010-10-29 22:56   ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).