From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DE1CB6DE13C2 for ; Sun, 9 Apr 2017 15:19:11 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.03 X-Spam-Level: X-Spam-Status: No, score=0.03 tagged_above=-999 required=5 tests=[T_FROM_12LTRDOM=0.01, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WccEYsavlhne for ; Sun, 9 Apr 2017 15:19:10 -0700 (PDT) X-Greylist: delayed 372 seconds by postgrey-1.35 at arlo; Sun, 09 Apr 2017 15:19:10 PDT Received: from joergvolbers.de (servant.hier-ja.de [176.9.104.74]) by arlo.cworth.org (Postfix) with ESMTPS id 95A5F6DE13BE for ; Sun, 9 Apr 2017 15:19:10 -0700 (PDT) Received: from localhost (ipservice-092-219-056-054.092.219.pools.vodafone-ip.de [92.219.56.54]) by servant.hier-ja.de (Postfix) with ESMTPSA id 878A93800172 for ; Mon, 10 Apr 2017 00:12:54 +0200 (CEST) From: joerg@joergvolbers.de (=?utf-8?Q?J=C3=B6rg?= Volbers) To: notmuch@notmuchmail.org Subject: Address Completion Date: Mon, 10 Apr 2017 00:12:53 +0200 Message-ID: <87pogl8c2i.fsf@joergvolbers.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sun, 09 Apr 2017 22:19:12 -0000 --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello, If I press looking for an address while writing mail,=20 vanilla notmuch offers me one preselected candidate. Since I use=20 ivy-mode, this canididate narrows down the list of all candidates,=20 forcing me to delete the initial input (C-a C-k) before I can=20 select among this list. I currently override this behavior by setting=20 notmuch-address-selection-function to my own function: (defun jv-notmuch--address-selection (prompt collection=20 initial-input)=20 (completing-read=20 prompt collection nil nil orig 'notmuch-address-history))=20 (setq notmuch-address-selection-function=20 #'jv-notmuch--address-selection)=20 This works as intended. Now my question: Is this something specific to ivy-mode, and would=20 it be possible to add an option which simulates the above behavior=20 (basically, using the pre-set variable 'orig' instead of=20 (car-options) in notmuch-address-expand-name), so that I do not=20 need to insert my own function which adds no functionality? Thanks (also for CC me via PM) And by the way, notmuch really is great, thank you for this=20 software! J=C3=B6rg =2D-=20 http://www.joergvolbers.de https://fu-berlin.academia.edu/jvolbers --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl+pESABvZMX7vTCiGIMO9HG46IYFAljqseUACgkQGIMO9HG4 6IYEYAgAvm6o0iYdzbpV+qNl+RFSOSZGOvRAoL3Omh4XVhcnkktADeoV3AtbH5VU IsWSOZ44ZT9zbubARGleQBEx+L3VhxVNBk9zsoROkNXhubIumMrIavZT4Sm2FTIb iaG5gawBCBkaHNgkPmWLxC3IpTp1gcbLeAd4HFfPI+y0OtLKN5jac/qbwm9yW2/T gS8SizPD7flDxnXViElCJCcdDVhjeIQZpDSto8hJ0ExuEjktlSB7Xf2D30Q3/4uv iUsNC+u2cx+VG2kIuRVkXjzpiai0er7QOoAJZTqVWjp2q26IsKOHSJFl1RuANYl7 ir8XGI90fcsPiqNVHdjJbUeqkhUQRA== =0Xw1 -----END PGP SIGNATURE----- --=-=-=--