From unknown Mon Aug 18 14:25:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15653 <15653@debbugs.gnu.org> To: bug#15653 <15653@debbugs.gnu.org> Subject: Status: 24.3; call-interactively not sending keys Reply-To: bug#15653 <15653@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:25:53 +0000 retitle 15653 24.3; call-interactively not sending keys reassign 15653 emacs submitter 15653 Matthew Fidler severity 15653 normal tag 15653 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 19 14:50:35 2013 Received: (at submit) by debbugs.gnu.org; 19 Oct 2013 18:50:35 +0000 Received: from localhost ([127.0.0.1]:58184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VXbbd-0003N1-Kb for submit@debbugs.gnu.org; Sat, 19 Oct 2013 14:50:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60726) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VXbba-0003Mm-14 for submit@debbugs.gnu.org; Sat, 19 Oct 2013 14:50:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXbbS-0002T6-92 for submit@debbugs.gnu.org; Sat, 19 Oct 2013 14:50:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXbbS-0002T0-60 for submit@debbugs.gnu.org; Sat, 19 Oct 2013 14:50:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXbbP-00007r-Sm for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 14:50:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXbbN-0002Rw-Mu for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 14:50:19 -0400 Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:53669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXbbN-0002RT-FY for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 14:50:17 -0400 Received: by mail-ie0-f179.google.com with SMTP id aq17so9125880iec.10 for ; Sat, 19 Oct 2013 11:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=JYA+TGOWiANgHPeKKLXt5OnKVx4Q1BSq6n5ecRnmxCg=; b=BAoR7QZqjIyn9P73MS8IqFsGTAvD6A7sGOB+efx0nS8Jg28SOzGNRWw+/Y6kELv7HD 86YiKRX/iLmtkusBxJyp4YnVGojz7cCZcl2resGEzMCHiYgiY6HMbCFBT9URh3q6ABeY uCbePuO45CAAZ3wFkPxU119WhsN1o+TmcCvOWhyRdASqvx4DM/SXYNFe4PNm2dCtGr4m /zIioYBy4J2Km2wXlDF1K15TTZ/8kJNuX9kYxUSk7FbnNUzNGMTgVvRB+5CBT94H9CZq 3v0JLA/oUuyRg2he+vIRZvYazGEpXBpqsnuA+jE2HALFUECPk5e1LpkyINZAoKUGtcq+ 60yA== MIME-Version: 1.0 X-Received: by 10.50.111.48 with SMTP id if16mr3971042igb.23.1382208616329; Sat, 19 Oct 2013 11:50:16 -0700 (PDT) Received: by 10.64.195.44 with HTTP; Sat, 19 Oct 2013 11:50:16 -0700 (PDT) Date: Sun, 20 Oct 2013 02:50:16 +0800 Message-ID: Subject: 24.3; call-interactively not sending keys From: Matthew Fidler To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e013a2d8094f85f04e91c8509 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e013a2d8094f85f04e91c8509 Content-Type: text/plain; charset=ISO-8859-1 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 At least thats how I understand the call-interactevly documentation: This function calls the interactively callable function command, providing arguments according to its interactive calling specifications. It returns whatever command returns. If, for instance, you have a function with the following signature: (defun foo (begin end) (interactive "r") ...) then saying (call-interactively 'foo) will call foo with the region (point and mark) as the arguments. An error is signaled if command is not a function or if it cannot be called interactively (i.e., is not a command). Note that keyboard macros (strings and vectors) are not accepted, even though they are considered commands, because they are not functions. If command is a symbol, then call-interactively uses its function definition. If record-flag is non-nil, then this command and its arguments are unconditionally added to the list command-history. Otherwise, the command is added only if it uses the minibuffer to read an argument. See Command History. The argument keys, if given, should be a vector which specifies the sequence of events to supply if the command inquires which events were used to invoke it. If keys is omitted or nil, the default is the return value of this-command-keys-vector. See Definition of this-command-keys-vector. In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2013-08-29 on puppypc11169 Windowing system distributor `The X.Org Foundation', version 11.0.11103000 Configured using: `configure '--bindir=/tmp/emacs-24.3-bin/App/emacs-24.3/linux-i686-2.15/bin' '--libexecdir=/tmp/emacs-24.3-bin/App/emacs-24.3/linux-i686-2.15/libexec' '--datadir=/tmp/emacs-24.3-bin/App/emacs-24.3/etc' '--info=/tmp/emacs-24.3-bin/App/emacs-24.3/info' '--prefix=/tmp/emacs-24.3-bin'' Important settings: value of $EMACSDATA: /initrd/mnt/dev_save/EmacsPortable.App/App/emacs-24.3/etc value of $EMACSDOC: /initrd/mnt/dev_save/EmacsPortable.App/App/emacs-24.3/etc value of $EMACSLOADPATH: /initrd/mnt/dev_save/EmacsPortable.App/App/emacs-24.3/lisp/:/initrd/mnt/dev_save/EmacsPortable.App/App/site-lisp/ value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: g l o b a l - s e t - k e y SPC h f C-h f M-x e v a l - u b u ) _ M-x e v a l - b u ) ) M-x e v a l - b u x 1 ) M-x e v a l - b u M-x e v a l - b u M-x e v a l - b u - 1 2 M-x e v a l - b u c C-c a Recent messages: Show-Paren mode enabled Mark set call-interactively: End of file during parsing [3 times] Mark set [2 times] byte-code: Beginning of buffer call-interactively: Invalid read syntax: ")" byte-code: Beginning of buffer byte-code: End of buffer [14 times] Test Me 2: C-c a Test Me: C-c a Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils edmacro kmacro cus-start cus-load paren help-mode easymenu help-fns time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --089e013a2d8094f85f04e91c8509 Content-Type: text/html; charset=ISO-8859-1
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

At least thats how I understand the call-interactevly documentation:

This function calls the interactively callable function command, providing arguments according to its interactive calling specifications. It returns whatever command returns.

If, for instance, you have a function with the following signature:

(defun foo (begin end)
(interactive "r")
...)
then saying

(call-interactively 'foo)
will call foo with the region (point and mark) as the arguments.

An error is signaled if command is not a function or if it cannot be called interactively (i.e., is not a command). Note that keyboard macros (strings and vectors) are not accepted, even though they are considered commands, because they are not functions. If command is a symbol, then call-interactively uses its function definition.

If record-flag is non-nil, then this command and its arguments are unconditionally added to the list command-history. Otherwise, the command is added only if it uses the minibuffer to read an argument. See Command History.

The argument keys, if given, should be a vector which specifies the sequence of events to supply if the command inquires which events were used to invoke it. If keys is omitted or nil, the default is the return value of this-command-keys-vector. See Definition of this-command-keys-vector.



In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2013-08-29 on puppypc11169
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
`configure
'--bindir=/tmp/emacs-24.3-bin/App/emacs-24.3/linux-i686-2.15/bin'
'--libexecdir=/tmp/emacs-24.3-bin/App/emacs-24.3/linux-i686-2.15/libexec'
'--datadir=/tmp/emacs-24.3-bin/App/emacs-24.3/etc'
'--info=/tmp/emacs-24.3-bin/App/emacs-24.3/info'
'--prefix=/tmp/emacs-24.3-bin''

Important settings:
value of $EMACSDATA: /initrd/mnt/dev_save/EmacsPortable.App/App/emacs-24.3/etc
value of $EMACSDOC: /initrd/mnt/dev_save/EmacsPortable.App/App/emacs-24.3/etc
value of $EMACSLOADPATH: /initrd/mnt/dev_save/EmacsPortable.App/App/emacs-24.3/lisp/:/initrd/mnt/dev_save/EmacsPortable.App/App/site-lisp/
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> g l o b a l - s e t - k e y SPC <backspace>
h f <backspace> <backspace> C-h f <return> <down-mouse-1>
<mouse-1> M-x e v a l - u <backspace> b u <tab> <return>
<down> <down> <down> <down> <down> <down> <left> <down-mouse-4>
<mouse-4> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <options> <highlight-paren-mode> <backspace>
<backspace> <down-mouse-2> <mouse-2> <down> <down>
<down> <down> <down> <left> <down> <down> <left> )
_ <backspace> M-x e v a l - b u <tab> <return> <down>
<down> <down> <down> <down> ) ) <down> <down> <down>
<up> M-x e v a l - b u <tab> <return> <up> <up> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <up> <up> <up> <up> <up> <up> <up> <up> <up>
x 1 <down> <down> <down> <down> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> ) M-x e v a l - b u <tab> <return>
<right> <left> <up> <up> <up> <up> <up> <S-up> <S-left>
<S-home> <backspace> <backspace> <down> <down> <S-up>
<S-up> <S-up> <S-up> <S-home> <backspace> M-x e v a
l - b u <tab> <return> <down> <down> <down> <left>
<down> <down> <left> <backspace> M-x e v a l - b u
<tab> <return> <down> <down> <down> <down> <down> <down>
<down> <left> - 1 <backspace> 2 M-x e v a l - b u <tab>
<down-mouse-3> <mouse-3> <return> <down-mouse-5> <mouse-5>
<down-mouse-4> <mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<down-mouse-4> <mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <help-echo>
<down-mouse-1> <mouse-movement> <mouse-1> <help-echo>
<help-echo> <return> c <backspace> C-c a <help-echo>
<down-mouse-1> <mouse-1> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Show-Paren mode enabled
Mark set
call-interactively: End of file during parsing [3 times]
Mark set [2 times]
byte-code: Beginning of buffer
call-interactively: Invalid read syntax: ")"
byte-code: Beginning of buffer
byte-code: End of buffer [14 times]
Test Me 2: C-c a
Test Me: C-c a

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils edmacro kmacro cus-start cus-load paren help-mode
easymenu help-fns time-date tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

--089e013a2d8094f85f04e91c8509-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 14 23:12:19 2019 Received: (at 15653) by debbugs.gnu.org; 15 Aug 2019 03:12:19 +0000 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 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 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 From: Lars Ingebrigtsen To: Matthew Fidler Subject: Re: bug#15653: 24.3; call-interactively not sending keys References: Date: Wed, 14 Aug 2019 20:12:08 -0700 In-Reply-To: (Matthew Fidler's message of "Sun, 20 Oct 2013 02:50:16 +0800") Message-ID: <87zhkb3ywn.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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) [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15653 Cc: 15653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 17 03:18:53 2019 Received: (at 15653) by debbugs.gnu.org; 17 Aug 2019 07:18:53 +0000 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 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 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 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 Date: Sat, 17 Aug 2019 10:18:41 +0300 Message-Id: <83k1bcntta.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87zhkb3ywn.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Wed, 14 Aug 2019 20:12:08 -0700) Subject: Re: bug#15653: 24.3; call-interactively not sending keys References: <87zhkb3ywn.fsf@mouse.gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 15653 Cc: matthew.fidler@gmail.com, 15653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 17 17:21:09 2019 Received: (at 15653) by debbugs.gnu.org; 17 Aug 2019 21:21:09 +0000 Received: from localhost ([127.0.0.1]:56911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz68L-0008Kp-J4 for submit@debbugs.gnu.org; Sat, 17 Aug 2019 17:21:09 -0400 Received: from quimby.gnus.org ([80.91.231.51]:55494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz68J-0008Kg-KI for 15653@debbugs.gnu.org; Sat, 17 Aug 2019 17:21:08 -0400 Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hz68F-0003vJ-D2; Sat, 17 Aug 2019 23:21:06 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#15653: 24.3; call-interactively not sending keys References: <87zhkb3ywn.fsf@mouse.gnus.org> <83k1bcntta.fsf@gnu.org> Date: Sat, 17 Aug 2019 14:21:00 -0700 In-Reply-To: <83k1bcntta.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Aug 2019 10:18:41 +0300") Message-ID: <87a7c7mqtf.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15653 Cc: matthew.fidler@gmail.com, 15653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > 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? The confusion that both Matthew and me had here was that the doc string talked about "inquiring what events that invoked it", and `this-command-keys' talks about "return the key sequence that invoked this command". So it's not an unnatural inference to make that these things are somehow tied together. I've now clarified the call-interactively doc string to say explicitly that the argument affects the return value of the interactive spec of FUNCTION. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 17 17:21:24 2019 Received: (at control) by debbugs.gnu.org; 17 Aug 2019 21:21:24 +0000 Received: from localhost ([127.0.0.1]:56914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz68Z-0008LN-RH for submit@debbugs.gnu.org; Sat, 17 Aug 2019 17:21:23 -0400 Received: from quimby.gnus.org ([80.91.231.51]:55510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz68X-0008LD-LQ for control@debbugs.gnu.org; Sat, 17 Aug 2019 17:21:22 -0400 Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hz68U-0003vf-Om for control@debbugs.gnu.org; Sat, 17 Aug 2019 23:21:21 +0200 Date: Sat, 17 Aug 2019 14:21:16 -0700 Message-Id: <878srrmqsz.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15653 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 15653 fixed close 15653 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 15653 fixed close 15653 27.1 quit From unknown Mon Aug 18 14:25:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 15 Sep 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator