From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#27470: 26.0.50; this-command-keys and interactive input Date: Sat, 24 Jun 2017 07:58:47 +0200 Message-ID: <87y3siapuw.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498284016 17299 195.159.176.226 (24 Jun 2017 06:00:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2017 06:00:16 +0000 (UTC) To: 27470@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 24 08:00:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOe79-0003xp-Gj for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jun 2017 08:00:11 +0200 Original-Received: from localhost ([::1]:38272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOe7A-0001Ll-2u for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jun 2017 02:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOe74-0001KN-NW for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 02:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOe71-0006gn-Ki for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 02:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOe71-0006gU-HN for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 02:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dOe71-00018R-8g for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 02:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jun 2017 06:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14982839464261 (code B ref -1); Sat, 24 Jun 2017 06:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2017 05:59:06 +0000 Original-Received: from localhost ([127.0.0.1]:35066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOe66-00016e-17 for submit@debbugs.gnu.org; Sat, 24 Jun 2017 01:59:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOe63-000167-I7 for submit@debbugs.gnu.org; Sat, 24 Jun 2017 01:59:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOe5x-000697-GG for submit@debbugs.gnu.org; Sat, 24 Jun 2017 01:58:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39275) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dOe5x-00068l-Ci for submit@debbugs.gnu.org; Sat, 24 Jun 2017 01:58:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOe5w-0001HR-45 for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 01:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOe5t-00065h-2V for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 01:58:56 -0400 Original-Received: from mout.web.de ([212.227.15.4]:57745) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOe5s-000644-NX for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 01:58:52 -0400 Original-Received: from drachen.dragon ([92.74.161.87]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MLgCx-1dOuwV1RuF-000pt5 for ; Sat, 24 Jun 2017 07:58:48 +0200 X-Provags-ID: V03:K0:D7hPiGuMTZvve/r5ezJmVMDNoPVXtDCb6L8ZI2kpgh2xRIrr6F/ KgoERlQXXYe6TfYOTG0da/sHWKaaek3svqeGNYrg33/vv7yU4s5OikZMMN2OOQNatB0maXb taVdZtK36hluCurio22GDYUP/8ILNf3RXR7ggQZ2xC6VWedhQFv4ScgtO/GJi6eFEE1ASfC ogjAyP6sJYH8Z2UK5y1mw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Zervi/fEdbE=:YmBpU7LfDVwDNjugvjtMVG keXvp/hsV1fmdV/NJ52R71EQulqmpK+qbkBOWV0pD3X9YUzW1YtcmMMMI1smqt4eC01fvQtVC U3ycDxdkaLNGnLlhRgONnzm83+bFVRQGngoakIAPsHSTmZdhT8tcWBZjpBs+W6X+ked3HXTEB ZVWJZtdLyxFgTyH8618tEuf1mBBW9++QMoeVDXMisr8Tlpj/6qlHN2q01IS6hPeERMNDeKioO 604AXbtidWpH9bS6RhUiLsjbuxuPmuf/R2olq4CoUxbNCEc4JPoXmC43zvWetHc1I5SU9+9Xo oyIhvNh8mLaLgK3P+QF9ZyY6vILeQ0OH9vJhoiwTeeRvfnBef6O9rWDdXpIDbQVPQSRpujj3u QeihEPr8+ywd7OGXDDOqqUuFYD4oBhpE8D2WOXzSvIlzGLulkbVv+2LWSldQXrCI80mdrcvNe pDBGC5xYI64g/vnwmyL/V3EJDXQ47Rg2Jk5xrlFmCRo9GPRyFVN7eojvbwLp1kg2fVt1XwBhi 21QaqZ3VRMvXAU89KZ5mcLBkne8KUOinMbredGItmUACFBZclsMDQWqi4vF7UpwG8zvFD6WfH r5NPzZWuY/iDb7HPLdu3OetIMZI97MyiDkL702VKfDAsKjypZ8n0kzfBvpFG2+k6x6ufeSRuR yIlcl7ifayGS02NzlCrxqFi+utceyRsCI8JyEgsTu2PcHqhVMrPpdCTFFQ60p3iKSIl5w3P73 6jRYEmB19m8xGG/5MYXB7tWwoGOG7pwo2VbihNkD+KPYcvv2t3EsbAyF3POGuU4j5hSGKYtn X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:133840 Archived-At: Hello, Evaluate this: (defun test (arg) (interactive (list (read-from-minibuffer "Input: "))) (message "%S" (cons this-command (this-command-keys))) arg) (global-set-key [f12] #'test) where f12 stands for some random key sequence. Hit f12 and give any input. I get the following message: (test . "^M") I would expect (test . f12). Obviously, `this-command-keys' returns the key confirming the input instead of the key that has invoked the command. This contradicts the descriptions in the documentation (docstring and manual). The docs only mention an exception when a command calls `read-key-sequence', but this is not the case here. FWIW, I would prefer fixing this over changing the docs. Thanks, Michael. In GNU Emacs 26.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-06-19 built on drachen Repository revision: 1b75af59b305867c89271905be72a05d06a4eff4 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Debian GNU/Linux 9.0 (stretch)