Use of "notmuch count" in notmuch-hello.el

Jason White jason at jasonjgw.net
Fri May 7 20:35:39 PDT 2010


The ELisp code in the current Git master branch calls notmuch count, rather
than notmuch count *.

I don't know whether this is supposed to be corrected in the C code or in the
Emacs code; the manual page still documents the old behaviour.

Here's a quick patch that enables m-x notmuch to run for me.


>From 1cd04171eb6051adc9a37d25ccf9e09504e7a944 Mon Sep 17 00:00:00 2001
From: Jason White <jason at jasonjgw.net>
Date: Sat, 8 May 2010 13:30:59 +1000
Subject: [PATCH] Correct invocation of notmuch count.

---
 emacs/notmuch-hello.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 6a1c56e..c0dcc31 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -272,7 +272,7 @@ diagonal."
 		     :notify (lambda (&rest ignore)
 			       (notmuch-hello-update))
 		     :help-echo "Refresh"
-		     (car (process-lines notmuch-command "count")))
+		     (car (process-lines notmuch-command "count" "*")))
       (widget-insert " messages (that's not much mail).\n\n"))
 
     (let ((found-target-pos nil)
-- 
1.7.1



More information about the notmuch mailing list