From: Dirk Hohndel <hohndel@infradead.org>
To: notmuch <notmuch@notmuchmail.org>
Subject: fix problem with notmuch-hello-nice-number
Date: Wed, 09 Jun 2010 07:49:01 -0700 [thread overview]
Message-ID: <m37hm8fehu.fsf@x201s.gr8dns.org> (raw)
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
next reply other threads:[~2010-06-09 17:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 14:49 Dirk Hohndel [this message]
2010-06-10 7:05 ` fix problem with notmuch-hello-nice-number David Edmondson
2010-06-10 14:00 ` Dirk Hohndel
2010-10-29 22:56 ` Carl Worth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m37hm8fehu.fsf@x201s.gr8dns.org \
--to=hohndel@infradead.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).