From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#15653: 24.3; call-interactively not sending keys Date: Wed, 14 Aug 2019 20:12:08 -0700 Message-ID: <87zhkb3ywn.fsf@mouse.gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6882"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 15653@debbugs.gnu.org To: Matthew Fidler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 05:13:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy6CS-0001hB-QV for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 05:13:16 +0200 Original-Received: from localhost ([::1]:38046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy6CR-0005PN-2L for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2019 23:13:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55403) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy6CF-0005GX-Jo for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 23:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy6CE-00037q-J0 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 23:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41379) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hy6CE-00037i-FQ for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 23:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hy6CE-00057o-8x for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 23:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2019 03:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15653 X-GNU-PR-Package: emacs Original-Received: via spool by 15653-submit@debbugs.gnu.org id=B15653.156583873919638 (code B ref 15653); Thu, 15 Aug 2019 03:13:02 +0000 Original-Received: (at 15653) by debbugs.gnu.org; 15 Aug 2019 03:12:19 +0000 Original-Received: from localhost ([127.0.0.1]:50200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy6BW-00056g-PQ for submit@debbugs.gnu.org; Wed, 14 Aug 2019 23:12:18 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:33698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy6BU-00056V-N4 for 15653@debbugs.gnu.org; Wed, 14 Aug 2019 23:12:17 -0400 Original-Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy6BP-0007Dg-DY; Thu, 15 Aug 2019 05:12:14 +0200 In-Reply-To: (Matthew Fidler's message of "Sun, 20 Oct 2013 02:50:16 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165026 Archived-At: Matthew Fidler writes: > After starting emacs -Q evaluate the following: > > (defun test-me () > (interactive) > (message "Test Me: %s" (key-description (this-single-command-keys)))) > > (defun test-me-2 () > (interactive) > (message "Test Me 2: %s" (key-description (this-single-command-keys))) > (call-interactively 'test-me nil (read-kbd-macro "C-1" t))) > > (global-set-key (read-kbd-macro "C-c a" t) 'test-me-2) > > Then, Type C-c a. The message shows: > > Test Me 2: C-c a > Test Me: C-c a > > It should show > > Test Me 2: C-1 > Test Me: C-c a The documentation here is rather unclear: --- Optional third arg KEYS, if given, specifies the sequence of events to supply, as a vector, if the command inquires which events were used to invoke it. --- But apparently `this-single-command-keys' is not the way to inquire about what events were used to invoke it, and I'm not quite sure what this is in reference to. I thought that perhaps it was an interactive spec or something, but no. Reading the source code wasn't enlightening, either. Anybody know what "inquires which events" is in reference to? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no