From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package: vertico Date: Fri, 09 Apr 2021 08:40:14 +0200 Message-ID: <87eefkuez6.fsf@posteo.net> References: <9c9af088-580f-9fb1-4d79-237a74ce605c@inventati.org> <874kgkxxs0.fsf@posteo.net> <3ec7e2e58a100426a22e@heytings.org> <87a6qakrpy.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23298"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.11; emacs 27.2 Cc: Gregory Heytings , emacs-devel@gnu.org, Manuel Uberti , Philip Kaludercic , "T.V Raman" To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 09 08:53:30 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUl1D-0005sM-L9 for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 08:53:27 +0200 Original-Received: from localhost ([::1]:41584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUl1C-0006ES-NC for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 02:53:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUl0T-0005oz-HQ for emacs-devel@gnu.org; Fri, 09 Apr 2021 02:52:41 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUl0R-0001V6-3z for emacs-devel@gnu.org; Fri, 09 Apr 2021 02:52:41 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5E8D5240101 for ; Fri, 9 Apr 2021 08:52:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1617951155; bh=mgMHLE72s4HsZI8LXn0dvmnTwcNLE7Q1ybJaToRoh5U=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=oAqexRFo8hZnxHsKkItlMCjkw9W0ChAh/+y8Iz5alP/yl3F6qKpLBneMseR2+Xp+d BUAbKRde2Ufzj4mA0kv+UdW31zfdofAbITpNyzAzxXE3/txq8AcTEyTCXib9Wdhn7U xzfSiZJfoJQrQQ2tUlqdRA3YTB6TKvJAF1TjB6gIrkBqm+o3reXsCWvASsoYuN6z/u YlZ18QjrUKPAfdWqXcssgWbx8Hy3mJncq/5Fz14PD1JWyaA5qyEBIrpfRGbyRTMEno xqCV/tfCXN3HXauwW4okVMP1BZOgqR/kBdrBkKujSm9R6J8zz46NM4QzzfJWeGLsfg Eo3BUZBY3I/gA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FGpjD5mr5z6tmB; Fri, 9 Apr 2021 08:52:32 +0200 (CEST) In-reply-to: <87a6qakrpy.fsf@ericabrahamsen.net> Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K Received-SPF: pass client-ip=185.67.36.66; envelope-from=thievol@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267692 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Abrahamsen writes: > We've all written this a million times: > > (let* ((choices (mapcar (lambda (elt) > (cons (make-string-from-thing elt) > elt)) > my-list-of-things)) > (choice (completing-read "Choose: " > choices))) > (cdr (assoc-string choice choices))) Sorry, I didn't follow the whole thread (too long), here some Helm features you may not be aware of: (helm-comp-read "test: " '(("un" . 1) ("deux" . 2) ("trois" . 3))) =3D> 1 (helm-comp-read "test: " '(("un" . 1) ("deux" . 2) ("trois" . 3)) :alistp n= il) =3D> "un" (helm-comp-read "test: " '(("un" . 1) ("deux" . 2) ("trois" . 3)) :marked-c= andidates t) =3D> (1) (helm-comp-read "test: " '(("un" . 1) ("deux" . 2) ("trois" . 3)) :marked-c= andidates t :alistp nil) =3D> ("un") Hope that helps. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmBv+a0THHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk43HC/9yJ20RICFX/gM68qdB6Wk/IcrNacnC 78EfSFV6pJ2L+oiwSmJHCTs+g0F8O65/vqDKAT9bJlfMp+R8LOyYGkh0U3yCfvxM P3bR8lVTGQ7x5heaoOfJZsqDmJSOqPsPEjJQImu3jcBsf/45gMa/Db+rzIhdV/Uu WnNNDLWcpc2t88gAGsi4Axz4pvrEwazk+7D9GZJ0lKEhO+TlrizC7qa1fBifkA6R azr5taUhXfp1GEnHj5SCGzUsnltxbe5bE7mz5TMviAEX8ZR63UhzVGx44SVcHUEv 1UqppbGTAVNhpuMVtcslShFR32cAdZaHByv1nQeMZ2LG2rbwseEos++8yuvC8nf+ dw/2ixaiyZjBtmKIAq2PjY5QJQk5ikwf/zQyMJXXKUtUuj+/gg7CG3URzn78QdaI C/yusfV5VG3719KYvCF2zTO1Ghq5YY3qJeJ/ob52M1ucwmk+T08UbCV7IjMi8v9c ENxEyyZtr1Ru8ZxikH/y/remDQu5S0PIFZY= =eu3r -----END PGP SIGNATURE----- --=-=-=--