Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

Subject: Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

Date: Mon, 26 Apr 2010 19:20:04 +0100

To: Carl Worth, notmuch@notmuchmail.org

Cc:

From: David Edmondson


On Mon, 26 Apr 2010 11:03:36 -0700, Carl Worth <cworth@cworth.org> wrote:
> Thanks. I've pushed this. Bonus points to someone who fixes it to avoid
> printing "1 matches".

It shouldn't do that:

  (let* (...
	 (num-options (length options))
	 (chosen (if (eq num-options 1)
		     (car options)
		   (completing-read (format "Address (%s matches): " num-options)
				    (cdr options) nil nil (car options)
				    'notmuch-address-history))))

Does it?

More interesting is the zero matches case...

dme.
-- 
David Edmondson, http://dme.org
part-000.sig (application/pgp-signature)

Thread: