Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 295E2431FC1 for ; Mon, 26 Apr 2010 11:20:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EwRK+W7w8Md8 for ; Mon, 26 Apr 2010 11:20:00 -0700 (PDT) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by olra.theworths.org (Postfix) with ESMTP id 5D2F04196F0 for ; Mon, 26 Apr 2010 11:20:00 -0700 (PDT) Received: by wwi18 with SMTP id 18so653330wwi.26 for ; Mon, 26 Apr 2010 11:19:59 -0700 (PDT) Received: by 10.216.157.82 with SMTP id n60mr1568658wek.100.1272305998754; Mon, 26 Apr 2010 11:19:58 -0700 (PDT) Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id v59sm221032wec.3.2010.04.26.11.19.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 11:19:57 -0700 (PDT) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id F271E59413B; Mon, 26 Apr 2010 19:20:08 +0100 (BST) To: Carl Worth , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch In-Reply-To: <87zl0qccqv.fsf@yoom.home.cworth.org> References: <1271927023-10103-1-git-send-email-dme@dme.org> <87633hoesd.fsf@yoom.home.cworth.org> <87k4ru5vzp.fsf@ut.hh.sledj.net> <87eii2ck8g.fsf@yoom.home.cworth.org> <87k4ruch6t.fsf@ut.hh.sledj.net> <87zl0qccqv.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.2-200-gcc7098a (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Mon, 26 Apr 2010 19:20:04 +0100 Message-ID: <871ve2cbzf.fsf@ut.hh.sledj.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 18:20:02 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 26 Apr 2010 11:03:36 -0700, Carl Worth 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. =2D-=20 David Edmondson, http://dme.org --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvV2VQACgkQaezQq/BJZRZiWQCePl5cqenlCA6ToaG6+L30geuL NrYAnjYqITmrvZEPtVhmSm+auLBpb4iA =Kslm -----END PGP SIGNATURE----- --=-=-=--