From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: How to test if command is assigned any key by any loaded library? Date: Mon, 04 Nov 2024 11:16:32 +0100 Message-ID: <87zfmf1eyn.fsf@gmx.net> References: <877c9j2txf.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26719"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: "W. Greenhouse" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 04 11:17:48 2024 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 1t7u9b-0006li-OC for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Nov 2024 11:17:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7u8x-0002ZN-N4; Mon, 04 Nov 2024 05:17:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7u8U-0002Gi-In for help-gnu-emacs@gnu.org; Mon, 04 Nov 2024 05:16:48 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7u8S-0006uB-PR for help-gnu-emacs@gnu.org; Mon, 04 Nov 2024 05:16:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1730715393; x=1731320193; i=stephen.berman@gmx.net; bh=IxngRO9kUjt4yKTKQOeWirvzqaswzsSF3+rSWnacZM8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=IAjvFYNFTRQYm1WayEY3HoWmoJPx2PzubQh6ithmy41vZD443NK1rq9w0qmLU08k MFToePluUUFMOuKcOB2GtXXLvkHtd7PUD46N98MmnMvBsz5ntTAitbFviYMkHPZzo fFuNGK/j7xrzLEdqQfwC/WtyRW+4BrInVwQnT/wyYLFdNcMbQw11jtdlIcGXhu52U HXrEoBnLHPdO3NkRqqCYv6lAQcIDjVJeqwk4Xk/xDPyumgo2ZWzcQYr7A3d3BRWts f77UNnvGZaqT/rRHp3EL1vhEm81fu9BEbC6b9c9CfVMYv3+pCmMXEFbhVXKeMqVeo 9+BvH1+df1s5S2dzxA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([94.134.95.201]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MIx3I-1tNuaR0Fru-00Nphh; Mon, 04 Nov 2024 11:16:33 +0100 In-Reply-To: <877c9j2txf.fsf@gmx.net> (Stephen Berman's message of "Mon, 04 Nov 2024 11:07:56 +0100") X-Provags-ID: V03:K1:tT1kt58Z9dTeIOPJ/XdUJyUWJLXyVeHu5MzyWY5psgb4DmPCNGG ChI7uQLNNZnvhFOBF7vwrstFZjM2WGlre4LSWzKwt1LAuaKfL6FGj0FX8To62tqkAJR0wKK PTKCp/C73sK89/fgR/vE9QMaWlePj28LMCSBP/yaMkOpzQHorswHocjIc8mFMZOqRLn6DU4 jkD5nqeIAr2S7ng5tlk2A== UI-OutboundReport: notjunk:1;M01:P0:tlsxZTxq+BY=;lUp4QJRrX9xaCpl5W3nRPotn05H 3dJvfI57MLJC3DnFqlXbsHpxeQNMVNn1uhz9aoDZTB4fso7JBZe52C2rx1zKGEobKSBJ54xM1 UflnYDqQ0kmVs0fk9qL9msDHQnA8S/v2lFQ4n5Dc8hj4FpEG/8H0YkybEKdhkqxtXQLIxQHr3 ONnTk1qkX6gsmLRTd03c2eWs3sEa3c9pnqUGVxga39MQvRegIAzAMW/m/UK2ZOROwbbmndgRZ Wd/JoLN1p0Bqurd0BKIVDGP4/z3vFkYW6oow1tWzgV9rgJR4tQAa/ozdIKrT/Tz2RuUGVmPXp /V35xjo5Vnxj5fjbICzl0BihasAjEtPecBYcF7JoqVmYwDuew2e430W02pxOFMxVRxhTc9N5J jzN3ElVoO6tR2egIXFMVTkTAdotCaLwNpemtEVs6pvzNOYbogn86wX2SiBF94xBxGAbW8t59i PWvJvvsDYiWYZIs6Geqz06DvA4fctkNICNSj0U+GO5SunHuLFO/FHSaQaetFT79oVp5iv8Rlp xHZ7hC78e5a3SJ3V912gXPX2hZ3jHWvQR3aVh/yhxlixDFqMloFS3qT8IhJI79Ea5GyDt6Tma ybK0rpHQEVGrLRuDlrGtERRJ52k1UPUVUQTIHrPeEq8p6IIpdCL/jSJyGoBYoT1CC8Zoyu/K0 9EtZdXHrdlQa3sAXfHog0/h3DdLwXWm3G7Ubo7li59ixUgmu5KPWNSjx72vOy/H+/Z725mS5O +qEk7hgVgOobeBamWhvxukP/UMlIvq1MCllYxKOMOK24jmNAzLbbJvcP4Rd88b0Sgm9AAKd4 Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148271 Archived-At: On Mon, 04 Nov 2024 11:07:56 +0100 Stephen Berman = wrote: > On Mon, 4 Nov 2024 10:38:57 +0300 Jean Louis wrote: > >> * W. Greenhouse" via Users list for the GNU Emacs text editor >> [2024-11-04 08:38]: >>> Jean Louis writes: >>> >>> > How to test if command is assigned any key by any loaded library? >>> >>> (where-is-internal 'some-command) >> >> Good solution, thanks. > > That answers the question but not in the most user-friendly way, e.g.: > > (where-is-internal 'set-mark-command) > =3D=3D> ([0] [67108896]) > > Compare: > > (mapcar 'key-description (where-is-internal 'set-mark-command)) > =3D=3D> ("C-@" "C-SPC") Of course, there's also just `where-is': M-x where-is RET set-mark-command =3D=3D> set-mark-command is on C-@, C-SPC Steve Berman