From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.help Subject: Re: Need for colorful completing read Date: Tue, 06 Sep 2022 11:05:32 +0600 Message-ID: <87sfl5w0rn.fsf@disroot.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4718"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 07:11:17 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1oVQrl-00012i-Qc for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 07:11:17 +0200 Original-Received: from localhost ([::1]:34832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVQrk-00071v-8p for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 01:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVQr5-000705-Tc for help-gnu-emacs@gnu.org; Tue, 06 Sep 2022 01:10:36 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:57216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVQr2-0005tt-Nw for help-gnu-emacs@gnu.org; Tue, 06 Sep 2022 01:10:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C37894005B; Tue, 6 Sep 2022 07:10:28 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fZguB1C4xGlL; Tue, 6 Sep 2022 07:10:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662441027; bh=wFamSwc+1VCZ8r6H2OsX07+RoHjjvCAySsS5Q1nKOrA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=EXb7y7Ea6bhjT90pSjgIZfe1jAgvTXm3f8tCwnO1g9JKvTxt8PB4weq0uYQkuNqol gkVzVMiubXr0i29g2+OhgxN4IeXjcN7eFvx2ICg2xyTbmtJ+KqR28sHCVD/GpjMn33 IlWEtG/g7vHA2+7pSMeGDIZvjAjWg86XHrTIJeb68jH/ClroZUN08SXnIsYcEASS2o E4FfVWmWuEIG1mX+5iabbl/OmdHmbe8PfjTd4P63RJ+etbEaQv/IPEJemcITTCKUl7 AMMErYzp61Hl6s1K8irfNeJPX7ZIPLxDHsO/lzvqGWdX7d9PH912peu+QMwsfwWcz0 4Tvh7OMVIW/Og== In-Reply-To: (Jean Louis's message of "Mon, 05 Sep 2022 23:48:32 +0300") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139271 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Jean Louis writes: > Hello, > > I would like to make a function similar to `completing-read' for the > choice of colors as shown by {M-x list-colors-display RET} so that I > can choose or select a color and that I can see the color while > selecting it. > > Is that possible or maybe already exists somewhere? It should be possible. Marginalia shows faces (on *Completion* buffer, or Vertico, or Selectrum) when you call describe-face. So, you should also be able to show the colors by show spaces with both background set to the color you want to show. May be you can use Marginalia to do this. See Marginalia README, C-h P marginalia RET (make sure you loaded the package list with M-x package-show-package-list). > > > Jean > > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > In support of Richard M. Stallman > https://stallmansupport.org/ > =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmMW1RwACgkQVTX89U2I YWuY8w/9FNWdT/J+AKytW6zblLZiPjmSWTEYbtOqfnsCVv1iGLZQLoaei/NXDuIj xasrrW6kn36EVpmNEcQ20ZPbipw/Qrfa7mrJm+cPy5VeRKMyLtx9s6KTviKV58qg lQF2blK1hINpvQBpjilJTFQEg1RUenyDggiiCX+EtLn9XFOFxe0s1dEQy7X/gmh7 s05TafGmv6WUenbQIWfbaD28qGgGLv11JrnAUvpPobyVyJw/ZgrRSmm/ter6RDRu TmVFueYIBM/H3dAtFB2C8dwzRko7ClR/bqlzqdLdMFOu9x8dY2zNnht1HVGmNDNq Fv+HYh7F6TU7tv4D5hCrZgxZEHrBYH2MEucMYrv1BG9Xu3jD8LTEC3NcuiWUPBPt rQ+ulxOfd6n2YYECD38XPlMNt3xQH9IjcAk9KYzWTCZfuXz/lYLwCS6o4po7GjgB QNrDpudiTdmL2fC6ypO8ii/IwUEI6T2lYoGI4lHmsrlTtgOaser0GGKoiF77zmC/ yDnSrhmU+0OxP9hV+A70Gxok18XDG8LFDvc+Ukjg8jVAKiLwgjqOxyRjR6WK2X9d ivneDB6/jheTxelD/USr3zj7koh225N+DfO09h9M4wDU39WlrwiX6ReIgX0hikJf e9JN/U+5Yuj4/KeazBPMnvIphP25myueQBGdJUNknJ51USxvteE= =EvRr -----END PGP SIGNATURE----- --=-=-=--