From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Paul W. Rankin" Newsgroups: gmane.emacs.help Subject: Re: Use of where-is-internal Date: Sun, 2 Feb 2020 00:58:23 +1000 Message-ID: <08DF61A1-C994-4B19-9ACF-6DA9A0245610@paulwrankin.com> References: Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="46482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 01 15:58:57 2020 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 1ixuEb-000BxC-7o for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Feb 2020 15:58:57 +0100 Original-Received: from localhost ([::1]:46952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixuEa-0002fL-9b for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Feb 2020 09:58:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38443) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixuED-0002fE-CI for help-gnu-emacs@gnu.org; Sat, 01 Feb 2020 09:58:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixuEC-00019w-9v for help-gnu-emacs@gnu.org; Sat, 01 Feb 2020 09:58:33 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:43753) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixuEB-00019A-Uq for help-gnu-emacs@gnu.org; Sat, 01 Feb 2020 09:58:32 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7BDB0214CE; Sat, 1 Feb 2020 09:58:31 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 01 Feb 2020 09:58:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paulwrankin.com; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=b lZ7Dgkc5iFCSVSlLPesZmjvx9sGID7Ws5T2WGkfYtk=; b=MJzyjBmM10dAZmKeN leUuCqBPfXtuKbftfur++6UGX8FrM5Id3a+Fo1oam2Q8MV035/+55o3QplC3IQeq U3m1YFBhVk7SWB09zYZGWJxIFGWF9xDCAZaORcTzI0/GPbvPZpCyF2hk0TSJ58Ts If3fH5cCzP2rGp3/vZdpLnD7reCcQPeC4MGV4+S+Wjh0ygtAiTPff92jRmyj53tn LmawhhKGJv5DZBJTrex2ZOFNwg8KvBYSlLTekAEmhDC3cXVa2suQePs60uA+P1ok XR08/9VFOBwBm8cuD6qRSU9/XdTCYc1vKbz8ks6obOAx1oGNLF1unKvvaUXQLAZD CH2ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=blZ7Dgkc5iFCSVSlLPesZmjvx9sGID7Ws5T2WGkfY tk=; b=q5Fxz8o/ZFLfgP4lvFvaDBY1HSHDFwurb724NqNT7g4dJju/2Z1630C2x Pe0ZyDRXDMpjx6GuWHU+I/RT7iZSR5wYxUmjVOPMrb8qVjDwiuqWzjVSt1dVtmnY zHgatRzN7p8hFJnd7Qkq+8DOuZXbVAXQxmh9wGPyVBknLQEQFBcZv+bqIppONCFb NePypGtJj4Xb2nw+rsMymeLsxo/XRhZdWgdFxJH+QTmTs7XDQ6MsrSIDCkrvNPyJ 37GgHTk2PKEGEWaCJEAianDeT4z13OIZIXSrnTP0b5w2LCvfOhEwfnn+yXKy74yX X3HZOg3Q6MDu04hdjLY2a/rOjfqRA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgedvgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpedfrfgruhhl ucghrdcutfgrnhhkihhnfdcuoehhvghllhhosehprghulhifrhgrnhhkihhnrdgtohhmqe enucfkphepuddvtddrvddvrdduieehrdduleegnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhephhgvlhhlohesphgruhhlfihrrghnkhhinhdrtg homh X-ME-Proxy: Original-Received: from [172.20.10.3] (unknown [120.22.165.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 4B2E730607B0; Sat, 1 Feb 2020 09:58:28 -0500 (EST) In-Reply-To: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:122328 Archived-At: > On 26 Jan 2020, at 2:02 am, Stefan Monnier = wrote: >=20 >> (defun other-window-and-beyond (count &optional all-frames) >> "Select another window in cyclic ordering of windows. >> Successive pressing `o' calls `other-window'." >> (interactive "p") >> (let ((key-vector (where-is-internal this-command >> overriding-local-map t))) >=20 > I think you're looking for `this-single-command-keys`. > The difference is not just the avoidance of "-internal" but also the > behavior in case the command is bound to several keys, since you > probably want to support repeating the same last key that was used to > run the command rather than repeating "the last key of its first > keybinding". Thanks for both replies! I didn't receive this one as I'm not = subscribed, but should have checked the archives first.=