From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#27470: 26.0.50; this-command-keys and interactive input Date: Sat, 24 Jun 2017 09:15:04 -0400 Message-ID: References: <87y3siapuw.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498310171 3571 195.159.176.226 (24 Jun 2017 13:16:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2017 13:16:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27470@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 24 15:16:07 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 1dOkv0-0000hN-DK for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jun 2017 15:16:06 +0200 Original-Received: from localhost ([::1]:39401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOkv5-00044X-Da for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jun 2017 09:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOkuz-00044H-US for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 09:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOkuv-0004TH-VY for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 09:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOkuv-0004T9-SI for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 09:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dOkuv-0004aI-KZ for bug-gnu-emacs@gnu.org; Sat, 24 Jun 2017 09:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jun 2017 13:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27470-submit@debbugs.gnu.org id=B27470.149831011417567 (code B ref 27470); Sat, 24 Jun 2017 13:16:01 +0000 Original-Received: (at 27470) by debbugs.gnu.org; 24 Jun 2017 13:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:35308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOkuA-0004ZH-Jr for submit@debbugs.gnu.org; Sat, 24 Jun 2017 09:15:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOku8-0004Z3-2e for 27470@debbugs.gnu.org; Sat, 24 Jun 2017 09:15:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DYCQCYZE5Z/48Dr7heHAEBBAEBCgEBg1iKZ4YAkRkBl18chgIEAgKDB0QUAQIBAQEBAQEBayiFGQZWIxALNBIUGA0kij+xSotTAQEBAQEFAiaDJ4hRil4BBJ5plVgYiQMzhlOTXYFENiGBCjAhCDBJhyskiiYBAQE X-IPAS-Result: A0DYCQCYZE5Z/48Dr7heHAEBBAEBCgEBg1iKZ4YAkRkBl18chgIEAgKDB0QUAQIBAQEBAQEBayiFGQZWIxALNBIUGA0kij+xSotTAQEBAQEFAiaDJ4hRil4BBJ5plVgYiQMzhlOTXYFENiGBCjAhCDBJhyskiiYBAQE X-IronPort-AV: E=Sophos;i="5.39,384,1493697600"; d="scan'208";a="318307043" Original-Received: from 184-175-3-143.dsl.teksavvy.com (HELO pastel.home) ([184.175.3.143]) by smtp.teksavvy.com with ESMTP; 24 Jun 2017 09:15:04 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8EAED6A6AA; Sat, 24 Jun 2017 09:15:04 -0400 (EDT) In-Reply-To: <87y3siapuw.fsf@drachen> (Michael Heerdegen's message of "Sat, 24 Jun 2017 07:58:47 +0200") 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:133846 Archived-At: > (defun test (arg) > (interactive (list (read-from-minibuffer "Input: "))) > (message "%S" (cons this-command (this-command-keys))) > arg) Whether it's a bug or not is hard to say (the quirk is described in the doctring). But you can get the behavior you want with: (defun sm-test (arg &optional keys) (interactive (let ((keys (this-command-keys-vector))) (list (read-from-minibuffer "Input: ") keys))) (message "%S" (cons this-command keys)) arg) -- Stefan