From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Get key-binding for a command and print key binding in kbd syntax Date: Thu, 09 Feb 2023 11:50:19 +0100 Message-ID: <87h6vv2jmu.fsf@gnu.org> References: <87lel72mqs.fsf@gnu.org> <87cz6jm8tk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11113"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.19; emacs 30.0.50 Cc: help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 11:56:07 2023 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 1pQ4b1-0002ir-La for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 11:56:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ4aM-0002RZ-L9; Thu, 09 Feb 2023 05:55:26 -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 1pQ4aL-0002RD-3s for help-gnu-emacs@gnu.org; Thu, 09 Feb 2023 05:55:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQ4aK-0004fP-Re; Thu, 09 Feb 2023 05:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=n0ws2KL7cVRxTfgoo6krGhG4u5wVdcUWI5NIpPzkUds=; b=raqQoISCBT6Wo2 K9Jl0XTqtbL4bW/bl+hqWj0l+wbbS1OIp5wakycNTEpNEY4F3LXFh24ItvTB6Wb8T+hfisTSNhCpm rLAl5fvXsarKC3SFzrBd1K/bl2rLmNTGOWoHL9vi1h85EgLvgikOIbYvilJ53ot4CdcemyhF80Dcy TYTc3uQGYmbXDjnW4TnNBG44BxpzTWnBRNAVeHIRH48WUs8w3XvQddDWzHalS+y3n/ArkG2u0yrmE GR0dPk6gDCD7dRHmvSeY/bv32o866J5lOsmPTXT6BocEv3LGy8FROrEruUYy1KOX/vBkQP1V4Gj9q mDLnHrT0h+A0THMZlFMA==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQ4aK-0004RB-LA; Thu, 09 Feb 2023 05:55:24 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 6EB3327C0054; Thu, 9 Feb 2023 05:55:23 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 09 Feb 2023 05:55:23 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehfedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Feb 2023 05:55:22 -0500 (EST) In-reply-to: <87cz6jm8tk.fsf@gmail.com> 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:142667 Archived-At: Robert Pluim writes: Hi Robert, > Tassilo> So the question is: how do you get the key(s) for a > Tassilo> command? `where-is-internal' looks promising giving > Tassilo> ([106] [menu-bar mu4e Search\ maildir]) where 106 is the > Tassilo> char ?j. If that's the right way, is numeric vector > Tassilo> vs. vector of symbols the right way to distinguish key > Tassilo> bindings from menu items? > > `substitute-command-keys' Oh, yeah, I've forgotten about that one. I think that will do everything I need in one go. Thanks a lot! Bye, Tassilo