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

David Edmondson dme at dme.org
Mon Apr 26 11:20:04 PDT 2010


On Mon, 26 Apr 2010 11:03:36 -0700, Carl Worth <cworth at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100426/7be11cdf/attachment.pgp>


More information about the notmuch mailing list