From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15653: 24.3; call-interactively not sending keys Date: Sat, 17 Aug 2019 10:18:41 +0300 Message-ID: <83k1bcntta.fsf@gnu.org> References: <87zhkb3ywn.fsf@mouse.gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="101754"; mail-complaints-to="usenet@blaine.gmane.org" Cc: matthew.fidler@gmail.com, 15653@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 17 09:19:13 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 1hyszX-000QKL-0E for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 09:19:11 +0200 Original-Received: from localhost ([::1]:34584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyszV-0004ai-8x for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 03:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39328) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyszP-0004ab-Do for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyszO-0006sG-ED for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyszO-0006sA-Ar for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyszO-0007Px-51 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 03:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2019 07:19: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.156602633328498 (code B ref 15653); Sat, 17 Aug 2019 07:19:02 +0000 Original-Received: (at 15653) by debbugs.gnu.org; 17 Aug 2019 07:18:53 +0000 Original-Received: from localhost ([127.0.0.1]:55303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyszF-0007Pa-0g for submit@debbugs.gnu.org; Sat, 17 Aug 2019 03:18:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyszD-0007PO-9y for 15653@debbugs.gnu.org; Sat, 17 Aug 2019 03:18:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hysz8-0006nw-6W; Sat, 17 Aug 2019 03:18:46 -0400 Original-Received: from [176.228.60.248] (port=4096 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hysz7-0007rG-CN; Sat, 17 Aug 2019 03:18:45 -0400 In-reply-to: <87zhkb3ywn.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Wed, 14 Aug 2019 20:12:08 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:165249 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 14 Aug 2019 20:12:08 -0700 > Cc: 15653@debbugs.gnu.org > > > (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 I don't understand the expectation: nothing in the documentation says that the KEYS argument to call-interactively is stuffed into what this-single-command-keys will return. The documentation says that the KEYS argument will be used instead of this-single-command-keys when the called command needs to access the events that invoked it, that's all. > 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. Yes, it _is_ the interactive spec. When that spec uses 'e' or '@' or something else that needs to analyze the invoking events, then Emacs provides the information from KEYS instead. I don't really see hat needs to be clarified in the docs, but given the above, perhaps Lars or Matthew could propose a clarification?