GNU bug report logs - #21867
25.0.50; lossage's log doesn't treat characters read by read-char as separate commands

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Zachary Kanfer <zkanfer@HIDDEN>; Keywords: confirmed; dated Mon, 9 Nov 2015 04:59:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 23 Aug 2019 01:41:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 22 21:41:28 2019
Received: from localhost ([127.0.0.1]:38655 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0yZz-0004Di-Qf
	for submit <at> debbugs.gnu.org; Thu, 22 Aug 2019 21:41:28 -0400
Received: from quimby.gnus.org ([80.91.231.51]:37234)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1i0yZx-0004Da-PW
 for 21867 <at> debbugs.gnu.org; Thu, 22 Aug 2019 21:41:26 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1i0yZq-0002QI-O2; Fri, 23 Aug 2019 03:41:21 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
 <jwvo915jdm1.fsf-monnier+emacs@HIDDEN>
 <87imrcsokh.fsf@HIDDEN>
 <jwvpnljihu6.fsf-monnier+emacs@HIDDEN>
 <878ss496a1.fsf@HIDDEN>
Date: Fri, 23 Aug 2019 03:41:18 +0200
In-Reply-To: <878ss496a1.fsf@HIDDEN> (Lars Ingebrigtsen's message of
 "Wed, 07 Aug 2019 20:31:18 +0200")
Message-ID: <87r25cd5fl.fsf@HIDDEN>
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:  I've now fixed the kmacro problems, but there's still some
 irregularities in the recorded keystrokes and commands. Presently, if you
 type (foo)RET 
 Content analysis details:   (-2.0 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 NO_DNS_FOR_FROM        DNS: Envelope sender has no MX or A DNS records
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.9 DKIM_ADSP_NXDOMAIN     No valid author signature and domain not in
 DNS
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

I've now fixed the kmacro problems, but there's still some
irregularities in the recorded keystrokes and commands.

Presently, if you type

(foo)RET

view-lossage will say:

 (			;; self-insert-command
 f			;; self-insert-command
 o			;; self-insert-command
 o			;; self-insert-command
 )			;; self-insert-command
 <return> <return>	;; newline-and-indent

Which is...  kinda wrong?  Because there's only one RET, but at least
we're told that `newline-and-indent' is the result, so it's not that
bad.

But with the patch set, we get:

(			;; self-insert-command
f			;; self-insert-command
o			;; self-insert-command
o			;; self-insert-command
)			;; self-insert-command
<return>		;; <during command execution>
<return>		;; newline-and-indent

which is even more wrong.

Where is that first <return> coming from?  The raw output from
`(recent-keys t)' is:

 40
 (nil . self-insert-command)
 102
 (nil . self-insert-command)
 111
 (nil . self-insert-command)
 111
 (nil . self-insert-command)
 41
 (nil . self-insert-command)
 return return
 (nil . newline-and-indent)


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.
Removed tag(s) fixed and patch. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug No longer marked as fixed in versions 27.1 and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 7 Aug 2019 18:31:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 07 14:31:26 2019
Received: from localhost ([127.0.0.1]:39338 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvQic-0005jX-69
	for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 14:31:26 -0400
Received: from quimby.gnus.org ([80.91.231.51]:45310)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hvQia-0005jO-QT
 for 21867 <at> debbugs.gnu.org; Wed, 07 Aug 2019 14:31:25 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hvQiV-0000fs-1n; Wed, 07 Aug 2019 20:31:21 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
 <jwvo915jdm1.fsf-monnier+emacs@HIDDEN>
 <87imrcsokh.fsf@HIDDEN>
 <jwvpnljihu6.fsf-monnier+emacs@HIDDEN>
Date: Wed, 07 Aug 2019 20:31:18 +0200
In-Reply-To: <jwvpnljihu6.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Mon, 05 Aug 2019 14:36:30 -0400")
Message-ID: <878ss496a1.fsf@HIDDEN>
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:  Stefan Monnier <monnier@HIDDEN> writes: > Maybe
 rather than "during eval-last-sexp" we should say "during command > execution"
 to try and be more vague (e.g. if it's done in > post-command-hook, it's
 not done "during eval-last-sexp" but it' [...] 
 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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> Maybe rather than "during eval-last-sexp" we should say "during command
> execution" to try and be more vague (e.g. if it's done in
> post-command-hook, it's not done "during eval-last-sexp" but it's
> arguably still during "during command execution").

That makes sense.  When I reintroduce the patch (after figuring out how
it broke macros) I'll change the text to that.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 5 Aug 2019 18:36:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 05 14:36:43 2019
Received: from localhost ([127.0.0.1]:35858 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1huhqc-0005AI-Rw
	for submit <at> debbugs.gnu.org; Mon, 05 Aug 2019 14:36:43 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38871)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1huhqb-0005A0-IX
 for 21867 <at> debbugs.gnu.org; Mon, 05 Aug 2019 14:36:41 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 27302100B39;
 Mon,  5 Aug 2019 14:36:35 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 55C1010044B;
 Mon,  5 Aug 2019 14:36:33 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1565030193;
 bh=Usb54HlXxNPuteJGvcEFVKxGb49Ur+N5XSIyb9syU94=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=kn5rxXdb0InzaMd2G7f3PHMA9/nPPzstDe/jzyYQjhthMOBXhaVpE9e8lItRYyHei
 Czck15otsXZL0OMRDnnUKg/vt9e3gQRVCc2gCl49/2nXZ1bYYmoHCGs11ccT6y3lQ2
 WUB68qiWSxjCMDRUCA+Oz+vC7j2MmCnPikaMfMyLAusjOm6ItITV8Fd5HmOKNVJE5R
 8TWAV97oJuY+hCU0YcC0Clz5PPMdHN3E/M2xVCvS7bI7GTSK92IiCO/H0NiKkhz1SF
 mNu+DoSqEoV5O4iLjgxjR2jnmqGumy2BskC6UkBe1nrWvLA+2W4EWjNoT+MwE+TcHN
 utZVUPiVKuuWQ==
Received: from alfajor (unknown [78.192.50.77])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2FA281207EB;
 Mon,  5 Aug 2019 14:36:32 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#21867: 25.0.50;
 lossage's log doesn't treat characters read by read-char as separate
 commands
Message-ID: <jwvpnljihu6.fsf-monnier+emacs@HIDDEN>
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
 <jwvo915jdm1.fsf-monnier+emacs@HIDDEN>
 <87imrcsokh.fsf@HIDDEN>
Date: Mon, 05 Aug 2019 14:36:30 -0400
In-Reply-To: <87imrcsokh.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 04 Aug 2019 22:44:30 +0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 21867 <at> debbugs.gnu.org,
 zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Is it safe to assume that any characters not belonging to
> a keysequence bound to a command, are read by the previous
> command?

I think it's safe to say that an event read after the start of a command
and before the end of the execution of that command was received "during
<thecommand>".

The reality can be pretty complex (e.g. event can be read during
pre-command-hook, post-command-hook, recursive-edits, unrelated
process-filters, etc...), and I don't think we should strive to explain
precisely all possible cases.  The point is just to avoid misleading
output like the one under discussion.

Maybe rather than "during eval-last-sexp" we should say "during command
execution" to try and be more vague (e.g. if it's done in
post-command-hook, it's not done "during eval-last-sexp" but it's
arguably still during "during command execution").


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.
bug marked as fixed in version 27.1, send any further explanations to 21867 <at> debbugs.gnu.org and Zachary Kanfer <zkanfer@HIDDEN> Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 5 Aug 2019 09:15:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 05 05:15:19 2019
Received: from localhost ([127.0.0.1]:34594 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1huZ5L-0005ib-Ga
	for submit <at> debbugs.gnu.org; Mon, 05 Aug 2019 05:15:19 -0400
Received: from quimby.gnus.org ([80.91.231.51]:52518)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1huZ5J-0005iT-MW
 for 21867 <at> debbugs.gnu.org; Mon, 05 Aug 2019 05:15:18 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1huZ5D-0000uu-QS; Mon, 05 Aug 2019 11:15:14 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
 <jwvo915jdm1.fsf-monnier+emacs@HIDDEN>
Date: Mon, 05 Aug 2019 11:15:11 +0200
In-Reply-To: <jwvo915jdm1.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sun, 04 Aug 2019 08:54:58 -0400")
Message-ID: <87o914dlcw.fsf@HIDDEN>
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: Stefan Monnier <monnier@HIDDEN> writes: > This
 specific
 output would be wrong, but I guess we could output > something like: > >
 C-x C-e ;; eval-last-sexp > a ;; <during eval-last-sexp> OK; looks good to
 me. I'll do that... 
 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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> This specific output would be wrong, but I guess we could output
> something like:
>
>     C-x C-e                 ;; eval-last-sexp
>     a                       ;; <during eval-last-sexp>

OK; looks good to me.  I'll do that...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 4 Aug 2019 21:29:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 04 17:29:52 2019
Received: from localhost ([127.0.0.1]:34325 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1huO4d-0000Cj-NO
	for submit <at> debbugs.gnu.org; Sun, 04 Aug 2019 17:29:52 -0400
Received: from egyptian.birch.relay.mailchannels.net ([23.83.209.56]:59332)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1huO4c-0000Cb-DF
 for 21867 <at> debbugs.gnu.org; Sun, 04 Aug 2019 17:29:51 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 171565E200E;
 Sun,  4 Aug 2019 21:29:49 +0000 (UTC)
Received: from pdx1-sub0-mail-a13.g.dreamhost.com
 (100-96-90-160.trex.outbound.svc.cluster.local [100.96.90.160])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 909215E1EE2;
 Sun,  4 Aug 2019 21:29:48 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.17.5); Sun, 04 Aug 2019 21:29:49 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Eyes-Minister: 08de10cd1b9baa21_1564954188897_835882068
X-MC-Loop-Signature: 1564954188897:746822972
X-MC-Ingress-Time: 1564954188897
Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 99AB37FE7A;
 Sun,  4 Aug 2019 14:29:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=linkov.net; bh=vd4TB2RaQBn6ar+/QupKGH8RUS8=; b=
 oWAxoxKvrVwhYi6s2cCxiXATNgbeBvHA/5z+zhXaqb8MnGwVmWCUDnjENZfl7gMe
 PWGcHGrJ2lJ/4JzPnKFb6YVB9q+0lV4EBizhxN6XZejGzZUjPuQy00xwXSIp8SGg
 wGBhOOmajSdp2RqLU+JiaA1q2lxWm2ktDosfcMHQrUc=
Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id 5591A7FE75;
 Sun,  4 Aug 2019 14:29:41 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a13
From: Juri Linkov <juri@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
Organization: LINKOV.NET
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
 <87lfw9b1ds.fsf@HIDDEN>
Date: Mon, 05 Aug 2019 00:04:25 +0300
In-Reply-To: <87lfw9b1ds.fsf@HIDDEN> (Lars Ingebrigtsen's message of
 "Sun, 04 Aug 2019 13:45:03 +0200")
Message-ID: <87a7cor563.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddthedgudeifecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheplhgrrhhsihesghhnuhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>,
 zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>   Command: last-kbd-macro
>>   Key: none
>>
>>   Macro:
>>
>>   C-x C-e                 ;; eval-last-sexp
>>   a                       ;; self-insert-command
>
> Hm...  well, that's a spanner in the works.
>
> Is `edit-last-kbd-macro' just wrong here?  Because that "a" isn't really
> a `self-insert-command', surely.

A similar problem is complained about in the comments of lisp/repeat.el:

;; This works correctly inside a keyboard macro as far as recording and
;; playback go, but `edit-kbd-macro' gets it wrong.  That shouldn't really
;; matter; if you need to edit something like
;;   C-x ]              ;; forward-page
;;   C-x z              ;; repeat
;;   zz                 ;; self-insert-command * 2
;;   C-x                ;; Control-X-prefix
;; you can just kill the bogus final 2 lines, then duplicate the repeat line
;; as many times as it's really needed.  Also, `edit-kbd-macro' works
;; correctly if `repeat' is invoked through a rebinding to a single keystroke
;; and the global variable repeat-on-final-keystroke is set to a value
;; that doesn't include that keystroke.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 4 Aug 2019 19:51:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 04 15:51:10 2019
Received: from localhost ([127.0.0.1]:34273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1huMX8-0006E1-DB
	for submit <at> debbugs.gnu.org; Sun, 04 Aug 2019 15:51:10 -0400
Received: from black.elm.relay.mailchannels.net ([23.83.212.19]:34156)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1huMX6-0006Dq-7h
 for 21867 <at> debbugs.gnu.org; Sun, 04 Aug 2019 15:51:08 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 35F5D1A10E2;
 Sun,  4 Aug 2019 19:51:07 +0000 (UTC)
Received: from pdx1-sub0-mail-a13.g.dreamhost.com
 (100-96-15-31.trex.outbound.svc.cluster.local [100.96.15.31])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id B167F1A0C10;
 Sun,  4 Aug 2019 19:51:06 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.17.5); Sun, 04 Aug 2019 19:51:07 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Imminent-Occur: 5718052449b32500_1564948267002_4234074640
X-MC-Loop-Signature: 1564948267002:853250689
X-MC-Ingress-Time: 1564948267001
Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 9AE2A7FE4A;
 Sun,  4 Aug 2019 12:51:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=linkov.net; bh=Oddv6cBR/OxzQeWPuvDxB7fkePU=; b=
 X7S35ediLdW5cNIaJFUopbogfVaxK9ZmqVbjG29MWAxTB6YtadOh3bc5YYgWL1BG
 CSm7u9xrv1akVLEPfPf2/I3BNWEC0E2sF4NBH3mloeHhjwSN/R1WFMrrF70yktc9
 jTbpGnQ1jYZGqnoKbrTxgnOvnM4WhKIWx+S46MP+qAA=
Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id BB32F7FE67;
 Sun,  4 Aug 2019 12:50:57 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a13
From: Juri Linkov <juri@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
Organization: LINKOV.NET
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
 <jwvo915jdm1.fsf-monnier+emacs@HIDDEN>
Date: Sun, 04 Aug 2019 22:44:30 +0300
In-Reply-To: <jwvo915jdm1.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sun, 04 Aug 2019 08:54:58 -0400")
Message-ID: <87imrcsokh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddthedgudeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepmhhonhhnihgvrhesihhrohdruhhmohhnthhrvggrlhdrtggrnecuvehluhhsthgvrhfuihiivgepge
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 21867 <at> debbugs.gnu.org,
 zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>   C-x C-e                 ;; eval-last-sexp
>>   a                       ;; self-insert-command
>
> This specific output would be wrong, but I guess we could output
> something like:
>
>     C-x C-e                 ;; eval-last-sexp
>     a                       ;; <during eval-last-sexp>

Is it safe to assume that any characters not belonging to
a keysequence bound to a command, are read by the previous
command?  If yes, then I guess one of the patches that Lars
sent (with 'non-command-character') could be adapted
for this output.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 4 Aug 2019 13:01:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 04 09:01:57 2019
Received: from localhost ([127.0.0.1]:60756 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1huG96-00084t-Ud
	for submit <at> debbugs.gnu.org; Sun, 04 Aug 2019 09:01:57 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11725)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1huG94-00083y-II
 for 21867 <at> debbugs.gnu.org; Sun, 04 Aug 2019 09:01:55 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4E047445D38;
 Sun,  4 Aug 2019 08:55:02 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 510B2445D35;
 Sun,  4 Aug 2019 08:55:01 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1564923301;
 bh=anDJzx6DZlTka6tuFDX3AmyHzAJatniYa6g3p7Ty20I=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=oVf6hLWWDYnnRASRohU1QOR+zdjipbTqYH2DAUl3qPa2sTjJ+/yzv41wow1TpcpEc
 Frrq7heFITnGb4IdYjpeDAgvjqSLcb+oQdMuGmFuGFc+wv2X7l2OYj5E34fbCXVIrl
 z1Xzk1Vxtm0azakpOByGq9NC5f5Hg4Wx+M0SBalt7/RUOXZLIqwlyOHmeL4rK7cS4e
 bJuIn3zprYgvhTtf5ABSZHSyPENl6BGNFr8rNDKgJIG3f9QadPe5eb2an748cqVy9v
 9PSmDARVx91mqtpWHLC3LydzodI7iFGHfE+EOLb3xVSKghARq2ykOWKcXPae0VjU8i
 t1DFJCoVC+bkQ==
Received: from alfajor (unknown [78.192.50.77])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9B0CA120B93;
 Sun,  4 Aug 2019 08:55:00 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#21867: 25.0.50;
 lossage's log doesn't treat characters read by read-char as separate
 commands
Message-ID: <jwvo915jdm1.fsf-monnier+emacs@HIDDEN>
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
Date: Sun, 04 Aug 2019 08:54:58 -0400
In-Reply-To: <874l2xvs0t.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 04 Aug 2019 00:49:22 +0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.108 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 21867 <at> debbugs.gnu.org,
 zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>   C-x C-e                 ;; eval-last-sexp
>   a                       ;; self-insert-command

This specific output would be wrong, but I guess we could output
something like:

    C-x C-e                 ;; eval-last-sexp
    a                       ;; <during eval-last-sexp>


-- Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 4 Aug 2019 11:45:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 04 07:45:15 2019
Received: from localhost ([127.0.0.1]:60690 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1huEws-00026C-VG
	for submit <at> debbugs.gnu.org; Sun, 04 Aug 2019 07:45:15 -0400
Received: from quimby.gnus.org ([80.91.231.51]:36170)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1huEwq-000261-BY
 for 21867 <at> debbugs.gnu.org; Sun, 04 Aug 2019 07:45:13 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1huEwi-00070F-Jm; Sun, 04 Aug 2019 13:45:07 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN> <874l2xvs0t.fsf@HIDDEN>
Date: Sun, 04 Aug 2019 13:45:03 +0200
In-Reply-To: <874l2xvs0t.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 04 Aug 2019 00:49:22 +0300")
Message-ID: <87lfw9b1ds.fsf@HIDDEN>
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: Juri Linkov <juri@HIDDEN> writes: > The intention of the
 columnar format was to maintain compatibility > with the Keyboard Macro Editor
 (edit-last-kbd-macro). After typing > the same keys while recording the
 keyboard macro produces th [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>,
 zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

> The intention of the columnar format was to maintain compatibility
> with the Keyboard Macro Editor (edit-last-kbd-macro).  After typing
> the same keys while recording the keyboard macro produces the
> buffer where `a' is presented as `self-insert-command':
>
>   ;; Keyboard Macro Editor.  Press C-c C-c to finish; press C-x k RET to cancel.
>   ;; Original keys: C-x C-e a
>
>   Command: last-kbd-macro
>   Key: none
>
>   Macro:
>
>   C-x C-e                 ;; eval-last-sexp
>   a                       ;; self-insert-command

Hm...  well, that's a spanner in the works.

Is `edit-last-kbd-macro' just wrong here?  Because that "a" isn't really
a `self-insert-command', surely.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 3 Aug 2019 21:50:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 03 17:50:21 2019
Received: from localhost ([127.0.0.1]:60159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hu1uv-0002Z3-0e
	for submit <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:50:21 -0400
Received: from bongo.elm.relay.mailchannels.net ([23.83.212.21]:10021)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1hu1us-0002Yr-T3
 for 21867 <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:50:19 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id AF3B28C17FA;
 Sat,  3 Aug 2019 21:50:17 +0000 (UTC)
Received: from pdx1-sub0-mail-a75.g.dreamhost.com
 (100-96-90-160.trex.outbound.svc.cluster.local [100.96.90.160])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 3CFDC8C14C8;
 Sat,  3 Aug 2019 21:50:17 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a75.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.17.5); Sat, 03 Aug 2019 21:50:17 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Bubble-Well-Made: 38e3b70740fef8ac_1564869017529_1213459579
X-MC-Loop-Signature: 1564869017529:2711390181
X-MC-Ingress-Time: 1564869017529
Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 0550B7FECF;
 Sat,  3 Aug 2019 14:50:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=linkov.net; bh=wjbLuCTUVUogxYt2hPle/ErPO6U=; b=
 fkvVKXe0gaaQDb/Hmj9aRynjhDpezEefOriOhYkbm55fy7WaEDE9AmPkYKTLCF49
 gHcfj/ZxXM8PUmtDn5j5DrMAbU60kLgTGUpnQf+PFealdmrZH4S4PbWHE9gACVbA
 vbG/Zu6v1wH1AEeZ6MV4Hg10g6yDPEP8uYMbGqCq1cQ=
Received: from mail.jurta.org (m91-129-103-76.cust.tele2.ee [91.129.103.76])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 2588C7F0F9;
 Sat,  3 Aug 2019 14:50:07 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a75
From: Juri Linkov <juri@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
Organization: LINKOV.NET
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
 <87sgqiar3x.fsf@HIDDEN>
Date: Sun, 04 Aug 2019 00:49:22 +0300
In-Reply-To: <87sgqiar3x.fsf@HIDDEN> (Lars Ingebrigtsen's message of
 "Sat, 03 Aug 2019 23:14:42 +0200")
Message-ID: <874l2xvs0t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddtvddgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdejieenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdejiedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehlrghrshhisehgnhhushdrohhrghenucevlhhushhtvghrufhiiigvpedt
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>,
 zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>> in recent_keys.  `view-lossage' could use this to output this as
>>>
>>> C-x C-e a    ;; eval-last-sexp
>>
>> I think that would be no better than what we have now.  To be better,
>> we'd want something like:
>>
>>     C-x C-e [eval-last-sexp] a
>>
>> which clearly separates between the events received before the command
>> from those received during the command.
>
> Yes, that's better and should be even easier to achieve.  Although we
> may have to give up the columnar buffer to do that.

The intention of the columnar format was to maintain compatibility
with the Keyboard Macro Editor (edit-last-kbd-macro).  After typing
the same keys while recording the keyboard macro produces the
buffer where `a' is presented as `self-insert-command':

  ;; Keyboard Macro Editor.  Press C-c C-c to finish; press C-x k RET to cancel.
  ;; Original keys: C-x C-e a

  Command: last-kbd-macro
  Key: none

  Macro:

  C-x C-e                 ;; eval-last-sexp
  a                       ;; self-insert-command




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 3 Aug 2019 21:14:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 03 17:14:51 2019
Received: from localhost ([127.0.0.1]:60135 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hu1MY-0007yy-Ni
	for submit <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:14:50 -0400
Received: from quimby.gnus.org ([80.91.231.51]:54020)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hu1MW-0007yn-TW
 for 21867 <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:14:49 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hu1MQ-00088a-VF; Sat, 03 Aug 2019 23:14:45 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
 <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
Date: Sat, 03 Aug 2019 23:14:42 +0200
In-Reply-To: <jwvblx6kli7.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sat, 03 Aug 2019 17:07:03 -0400")
Message-ID: <87sgqiar3x.fsf@HIDDEN>
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: Stefan Monnier <monnier@HIDDEN> writes: >> in
 recent_keys.
 `view-lossage' could use this to output this as >> >> C-x C-e a ; ;
 eval-last-sexp
 > > I think that would be no better than what we have now. To be better,
 > we'd want something like [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Eli Zaretskii <eliz@HIDDEN>, 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> in recent_keys.  `view-lossage' could use this to output this as
>>
>> C-x C-e a    ;; eval-last-sexp
>
> I think that would be no better than what we have now.  To be better,
> we'd want something like:
>
>     C-x C-e [eval-last-sexp] a
>
> which clearly separates between the events received before the command
> from those received during the command.

Yes, that's better and should be even easier to achieve.  Although we
may have to give up the columnar buffer to do that.

Did the patch otherwise make sense?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 3 Aug 2019 21:07:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 03 17:07:14 2019
Received: from localhost ([127.0.0.1]:60115 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hu1FB-0007mv-Tq
	for submit <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:07:14 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15622)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hu1FA-0007mh-Ec
 for 21867 <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:07:12 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2629C445CCA;
 Sat,  3 Aug 2019 17:07:07 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2B7C844518B;
 Sat,  3 Aug 2019 17:07:06 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1564866426;
 bh=rCP0K9QIVjCpKN15dpIJFIRlyNw5B+9u4Q1Mrq4pID8=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=eexoNK9t7isROvKUMCvEiQELEeS0VnjTlCvnnfjLsIcBHkvDjpOmqyhDoD0jIC0cG
 Jsme8KzJkRuaXlo/5I+4Vn+RoDmGo4ojAhfmAvoAHMVqw0SRoWn0HbSUkQbBtpez2k
 XvSwpIfzJC5oez+IbZQWWlyKvmcNpN3FmvFApODSWDyn3oJ52rlsZEpuAYluW+enPj
 VvYR/STrTMn4GmCVUQqKFkkhjU64wZW/7SrcOfjq6DS6iCk82/g+AQCSx0CZtKw6xE
 SybXlpjrOt7iWWIgvkr06hWFqQvK1WuBShvywz4w6wyr6VRRUC4rAPH/BTdiAdwavy
 Acihj/YXuM3gQ==
Received: from alfajor (unknown [78.192.50.77])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6F40D120C2C;
 Sat,  3 Aug 2019 17:07:05 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#21867: 25.0.50;
 lossage's log doesn't treat characters read by read-char as separate
 commands
Message-ID: <jwvblx6kli7.fsf-monnier+emacs@HIDDEN>
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
 <87wofujvk2.fsf@HIDDEN>
Date: Sat, 03 Aug 2019 17:07:03 -0400
In-Reply-To: <87wofujvk2.fsf@HIDDEN> (Lars Ingebrigtsen's message of
 "Sat, 03 Aug 2019 14:13:49 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.163 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Eli Zaretskii <eliz@HIDDEN>, 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> in recent_keys.  `view-lossage' could use this to output this as
>
> C-x C-e a    ;; eval-last-sexp

I think that would be no better than what we have now.  To be better,
we'd want something like:

    C-x C-e [eval-last-sexp] a

which clearly separates between the events received before the command
from those received during the command.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 3 Aug 2019 12:13:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 03 08:13:58 2019
Received: from localhost ([127.0.0.1]:58419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htsv8-0002Ov-38
	for submit <at> debbugs.gnu.org; Sat, 03 Aug 2019 08:13:58 -0400
Received: from quimby.gnus.org ([80.91.231.51]:46308)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htsv6-0002On-Rs
 for 21867 <at> debbugs.gnu.org; Sat, 03 Aug 2019 08:13:57 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htsv0-0004CO-Og; Sat, 03 Aug 2019 14:13:53 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
 <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
Date: Sat, 03 Aug 2019 14:13:49 +0200
In-Reply-To: <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Fri, 02 Aug 2019 16:16:37 -0400")
Message-ID: <87wofujvk2.fsf@HIDDEN>
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: Stefan Monnier <monnier@HIDDEN> writes: > So I
 think
 maybe a better way to look at it is to add marker > pseudo-events like
 `end-of-command`
 (e.g. after running > post-command-hook), so we can discover that `a` was
 processed as part of > th [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Eli Zaretskii <eliz@HIDDEN>, 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> So I think maybe a better way to look at it is to add marker
> pseudo-events like `end-of-command` (e.g. after running
> post-command-hook), so we can discover that `a` was processed as part of
> the execution of the command bound to `C-x C-e` rather than as part of
> the sequence of events that triggered view-lossage.

Makes sense.  With the following patch I get:

24 5 (nil . eval-last-sexp) 97 end-of-command

in recent_keys.  `view-lossage' could use this to output this as

C-x C-e a    ;; eval-last-sexp

It does make the recent_keys list even more...  uhm...  eccentric, I
guess.  And during typical text entry, there'll be slightly more memory
usage:

72 (nil . self-insert-command) end-of-command
101 (nil . self-insert-command) end-of-command 

If this approach makes sense, I can fix up view-lossage to interpret the
new structure.

diff --git a/src/keyboard.c b/src/keyboard.c
index db5ca4e547..1a4a7d2711 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -307,6 +307,7 @@ #define GROW_RAW_KEYBUF							\
 
 static void echo_now (void);
 static ptrdiff_t echo_length (void);
+static void record_char (Lisp_Object c);
 
 /* Incremented whenever a timer is run.  */
 unsigned timers_run;
@@ -1424,6 +1425,8 @@ command_loop_1 (void)
 	      Fcons (Qnil, cmd));
 	if (++recent_keys_index >= NUM_RECENT_KEYS)
 	  recent_keys_index = 0;
+	/* Mark this as a complete command in recent_keys. */
+	record_char (Qend_of_command);
       }
       Vthis_command = cmd;
       Vreal_this_command = cmd;
@@ -1474,6 +1477,9 @@ command_loop_1 (void)
 
       safe_run_hooks (Qpost_command_hook);
 
+      /* Mark this as a complete command in recent_keys. */
+      record_char (Qend_of_command);
+
       /* If displaying a message, resize the echo area window to fit
 	 that message's size exactly.  Do this only if the echo area
 	 window is the minibuffer window of the selected frame.  See
@@ -2091,7 +2097,6 @@ show_help_echo (Lisp_Object help, Lisp_Object window, Lisp_Object object,
 
 static Lisp_Object kbd_buffer_get_event (KBOARD **kbp, bool *used_mouse_menu,
 					 struct timespec *end_time);
-static void record_char (Lisp_Object c);
 
 static Lisp_Object help_form_saved_window_configs;
 static void
@@ -11069,6 +11074,8 @@ syms_of_keyboard (void)
 
   DEFSYM (Qundefined, "undefined");
 
+  DEFSYM (Qend_of_command, "end-of-command");
+
   /* Hooks to run before and after each command.  */
   DEFSYM (Qpre_command_hook, "pre-command-hook");
   DEFSYM (Qpost_command_hook, "post-command-hook");


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 2 Aug 2019 20:16:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 02 16:16:47 2019
Received: from localhost ([127.0.0.1]:57828 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htdyp-0006Kt-58
	for submit <at> debbugs.gnu.org; Fri, 02 Aug 2019 16:16:47 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40738)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1htdyn-0006F0-4g
 for 21867 <at> debbugs.gnu.org; Fri, 02 Aug 2019 16:16:45 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C5499445C32;
 Fri,  2 Aug 2019 16:16:39 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7EEAB445C30;
 Fri,  2 Aug 2019 16:16:38 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1564776998;
 bh=1CIuPnsrW54vO/joHyjFG3XwiUNX02b87z9wDtMVWnA=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=plvE/czn2Vf1lG8X2LuHNPJcdgyA4JDTW8WnBXpCnGgam/OiUe8GUY4l080ElGyPg
 Pmgnc9JrIimOxv2oK27PxmM/g2n7ekFic1C7pxe5q59pTdNZwbzPGylGpxWWpyxl+R
 q3EZUFqPPndP5oXEN1nx920DEGPWK986P2NiEDU8U4QF3yF1mHBfF+8jqu9tKa97k9
 07gE64nckIaCxeCaOiWsz0i8/p2LOK45Dji8NJTRHiaei27bPWWhBiJmIBlA+CMxHA
 M96Q3589WvavSVd9mAPB5ktLEbAQ9jx99EvQfvbJj+Zh5JKORd5Kz2+houEVWa3rpy
 GkHyDFOMdoFdg==
Received: from pastel (unknown [45.72.135.224])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 282341202D5;
 Fri,  2 Aug 2019 16:16:38 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
Message-ID: <jwvblx7tjo7.fsf-monnier+emacs@HIDDEN>
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
Date: Fri, 02 Aug 2019 16:16:37 -0400
In-Reply-To: <8736ijak7u.fsf@HIDDEN> (Lars Ingebrigtsen's message of
 "Fri, 02 Aug 2019 13:19:01 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.034 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: Eli Zaretskii <eliz@HIDDEN>, 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>   retry:
>    do
> -    val = read_char (0, Qnil, (input_method ? Qnil : Qt), 0,
> -		     NUMBERP (seconds) ? &end_time : NULL);
> +    {
> +      val = read_char (0, Qnil, (input_method ? Qnil : Qt), 0,
> +		       NUMBERP (seconds) ? &end_time : NULL);
> +      record_char (Qnon_command_character);
> +    }

Currently, the view-lossage doesn't actually say

    `a C-h l` resulted in running view-lossage

contrarily to what Lars seems to assume (and I guess, contrarily to
what the display suggests).  Instead it just says

    we saw `a` then `C-h` then `l` then view-lossage was run

I think considering this problem as specific to `read-char` is kinda wrong
(after all, `read-char` can be called as part of input-decode-map in
which case the event still very much belongs to "the events that resulted
in running a particular command"; this happens for example for
mouse-clicks in xterm-mouse-mode).

So I think maybe a better way to look at it is to add marker
pseudo-events like `end-of-command` (e.g. after running
post-command-hook), so we can discover that `a` was processed as part of
the execution of the command bound to `C-x C-e` rather than as part of
the sequence of events that triggered view-lossage.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 2 Aug 2019 12:02:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 02 08:02:24 2019
Received: from localhost ([127.0.0.1]:55939 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htWGN-0001qq-Ak
	for submit <at> debbugs.gnu.org; Fri, 02 Aug 2019 08:02:24 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48225)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1htWGL-0001qd-Bt
 for 21867 <at> debbugs.gnu.org; Fri, 02 Aug 2019 08:02:21 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37020)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1htWGF-0004YE-TB; Fri, 02 Aug 2019 08:02:15 -0400
Received: from [176.228.60.248] (port=2111 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1htWGF-0003He-1h; Fri, 02 Aug 2019 08:02:15 -0400
Date: Fri, 02 Aug 2019 15:02:10 +0300
Message-Id: <83lfwbg4hp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-reply-to: <8736ijak7u.fsf@HIDDEN> (message from Lars Ingebrigtsen
 on Fri, 02 Aug 2019 13:19:01 +0200)
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
 <8736ijak7u.fsf@HIDDEN>
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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: 21867 <at> debbugs.gnu.org,  zkanfer@HIDDEN
> Date: Fri, 02 Aug 2019 13:19:01 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Or maybe a special symbol?
> 
> The following patch does this.  Does this look like the thing to do?
> 
> The test case, with this patch, now looks like this:
> 
>  C-e			;; move-end-of-line
>  C-x C-e		;; eval-last-sexp
>  a 			;; 
>  C-h l			;; view-lossage
> 
> I've looked at other in-tree usages of `recent-keys', and it doesn't
> look like this should affect anything else.

SGTM.  Stefan, any comments/objections/suggestions?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.
Added tag(s) patch. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 2 Aug 2019 11:19:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 02 07:19:07 2019
Received: from localhost ([127.0.0.1]:55867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htVaV-0004xN-IW
	for submit <at> debbugs.gnu.org; Fri, 02 Aug 2019 07:19:07 -0400
Received: from quimby.gnus.org ([80.91.231.51]:57084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htVaU-0004xD-Dv
 for 21867 <at> debbugs.gnu.org; Fri, 02 Aug 2019 07:19:07 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htVaP-0001SV-U3; Fri, 02 Aug 2019 13:19:04 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN> <83ef24gjby.fsf@HIDDEN>
Date: Fri, 02 Aug 2019 13:19:01 +0200
In-Reply-To: <83ef24gjby.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 02 Aug
 2019 09:41:37 +0300")
Message-ID: <8736ijak7u.fsf@HIDDEN>
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 <eliz@HIDDEN> writes: > Or maybe a special
 symbol? The following patch does this. Does this look like the thing to do?
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Or maybe a special symbol?

The following patch does this.  Does this look like the thing to do?

The test case, with this patch, now looks like this:

 C-e			;; move-end-of-line
 C-x C-e		;; eval-last-sexp
 a 			;; 
 C-h l			;; view-lossage

I've looked at other in-tree usages of `recent-keys', and it doesn't
look like this should affect anything else.

diff --git a/lisp/help.el b/lisp/help.el
index 039d0c44e4..0cd2aecba5 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -471,6 +471,9 @@ view-lossage
 			 ((and (consp key) (null (car key)))
 			  (format ";; %s\n" (if (symbolp (cdr key)) (cdr key)
 					      "anonymous-command")))
+                         ((eq key 'non-command-character)
+                          ;; This comes from `read-char'.
+                          "\n")
 			 ((or (integerp key) (symbolp key) (listp key))
 			  (single-key-description key))
 			 (t
diff --git a/src/keyboard.c b/src/keyboard.c
index db5ca4e547..4e13bec5dd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2091,7 +2091,6 @@ show_help_echo (Lisp_Object help, Lisp_Object window, Lisp_Object object,
 
 static Lisp_Object kbd_buffer_get_event (KBOARD **kbp, bool *used_mouse_menu,
 					 struct timespec *end_time);
-static void record_char (Lisp_Object c);
 
 static Lisp_Object help_form_saved_window_configs;
 static void
@@ -3192,7 +3191,7 @@ help_char_p (Lisp_Object c)
 
 /* Record the input event C in various ways.  */
 
-static void
+void
 record_char (Lisp_Object c)
 {
   /* quail.el binds this to avoid recording keys twice.  */
@@ -11069,6 +11068,8 @@ syms_of_keyboard (void)
 
   DEFSYM (Qundefined, "undefined");
 
+  DEFSYM (Qnon_command_character, "non-command-character");
+
   /* Hooks to run before and after each command.  */
   DEFSYM (Qpre_command_hook, "pre-command-hook");
   DEFSYM (Qpost_command_hook, "post-command-hook");
diff --git a/src/lisp.h b/src/lisp.h
index f437609fe1..ef03935b7a 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4375,6 +4375,7 @@ fast_string_match_ignore_case (Lisp_Object regexp, Lisp_Object string)
 extern void init_keyboard (void);
 extern void syms_of_keyboard (void);
 extern void keys_of_keyboard (void);
+extern void record_char (Lisp_Object);
 
 /* Defined in indent.c.  */
 extern ptrdiff_t current_column (void);
diff --git a/src/lread.c b/src/lread.c
index eec88760d4..88a27531eb 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -679,8 +679,11 @@ read_filtered_event (bool no_switch_frame, bool ascii_required,
   /* Read until we get an acceptable event.  */
  retry:
   do
-    val = read_char (0, Qnil, (input_method ? Qnil : Qt), 0,
-		     NUMBERP (seconds) ? &end_time : NULL);
+    {
+      val = read_char (0, Qnil, (input_method ? Qnil : Qt), 0,
+		       NUMBERP (seconds) ? &end_time : NULL);
+      record_char (Qnon_command_character);
+    }
   while (FIXNUMP (val) && XFIXNUM (val) == -2); /* wrong_kboard_jmpbuf */
 
   if (BUFFERP (val))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 2 Aug 2019 06:41:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 02 02:41:51 2019
Received: from localhost ([127.0.0.1]:55720 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htRGA-0004Nq-OB
	for submit <at> debbugs.gnu.org; Fri, 02 Aug 2019 02:41:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:37476)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1htRG9-0004Nb-1K
 for 21867 <at> debbugs.gnu.org; Fri, 02 Aug 2019 02:41:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50849)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1htRG3-0000hm-DY; Fri, 02 Aug 2019 02:41:43 -0400
Received: from [176.228.60.248] (port=2078 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1htRG2-0000XR-MZ; Fri, 02 Aug 2019 02:41:43 -0400
Date: Fri, 02 Aug 2019 09:41:37 +0300
Message-Id: <83ef24gjby.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <87k1bwg01u.fsf@HIDDEN> (message from Lars Ingebrigtsen
 on Thu, 01 Aug 2019 21:25:49 +0200)
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
 <87k1bwg01u.fsf@HIDDEN>
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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: 21867 <at> debbugs.gnu.org,  zkanfer@HIDDEN
> Date: Thu, 01 Aug 2019 21:25:49 +0200
> 
> >>  C-x C-e ;; eval-last-sexp
> >>  a C-h l ;; view-lossage
> >> 
> >> which is a very curious way of displaying this.  It makes it look like
> >> "a C-h l" is a key stroke.
> >
> > A newline should be enough to fix that, I think.
> 
> Yes, that'd be OK, I think, but it means that we have to
> put...  something...  into the recent_keys variable to mark the "a" as
> having been read by `read-string'.  I suggested (nil . "some-string"),
> but perhaps just (nil) would be OK?

Or maybe a special symbol?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 19:25:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 15:25:56 2019
Received: from localhost ([127.0.0.1]:55291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htGi3-0000CW-SA
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 15:25:56 -0400
Received: from quimby.gnus.org ([80.91.231.51]:44804)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htGi2-0000CO-T7
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 15:25:55 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htGhy-0003Bv-CP; Thu, 01 Aug 2019 21:25:54 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN> <83lfwcheyy.fsf@HIDDEN>
Date: Thu, 01 Aug 2019 21:25:49 +0200
In-Reply-To: <83lfwcheyy.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 01 Aug
 2019 22:18:13 +0300")
Message-ID: <87k1bwg01u.fsf@HIDDEN>
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 <eliz@HIDDEN> writes: >> From: Lars
 Ingebrigtsen
 <larsi@HIDDEN> >> Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN >> Date:
 Thu, 01 Aug 2019 20:58:50 +0200 >> >> >> What `read-char' comes under "input
 keystrokes", I guess? [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Lars Ingebrigtsen <larsi@HIDDEN>
>> Cc: 21867 <at> debbugs.gnu.org,  zkanfer@HIDDEN
>> Date: Thu, 01 Aug 2019 20:58:50 +0200
>> 
>> >> What `read-char' comes under "input keystrokes", I guess?
>> >
>> > Yes.
>> 
>> Right, but view-lossage currently says
>> 
>>  C-x C-e ;; eval-last-sexp
>>  a C-h l ;; view-lossage
>> 
>> which is a very curious way of displaying this.  It makes it look like
>> "a C-h l" is a key stroke.
>
> A newline should be enough to fix that, I think.

Yes, that'd be OK, I think, but it means that we have to
put...  something...  into the recent_keys variable to mark the "a" as
having been read by `read-string'.  I suggested (nil . "some-string"),
but perhaps just (nil) would be OK?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 19:18:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 15:18:28 2019
Received: from localhost ([127.0.0.1]:55268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htGap-0008QA-Ot
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 15:18:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:58696)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1htGan-0008Pv-Q6
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 15:18:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42875)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1htGai-0006TP-KL; Thu, 01 Aug 2019 15:18:20 -0400
Received: from [176.228.60.248] (port=4325 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1htGai-0002vZ-5A; Thu, 01 Aug 2019 15:18:20 -0400
Date: Thu, 01 Aug 2019 22:18:13 +0300
Message-Id: <83lfwcheyy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <877e7whfv9.fsf@HIDDEN> (message from Lars Ingebrigtsen
 on Thu, 01 Aug 2019 20:58:50 +0200)
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
 <877e7whfv9.fsf@HIDDEN>
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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: 21867 <at> debbugs.gnu.org,  zkanfer@HIDDEN
> Date: Thu, 01 Aug 2019 20:58:50 +0200
> 
> >> What `read-char' comes under "input keystrokes", I guess?
> >
> > Yes.
> 
> Right, but view-lossage currently says
> 
>  C-x C-e ;; eval-last-sexp
>  a C-h l ;; view-lossage
> 
> which is a very curious way of displaying this.  It makes it look like
> "a C-h l" is a key stroke.

A newline should be enough to fix that, I think.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 18:58:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 14:58:57 2019
Received: from localhost ([127.0.0.1]:55243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htGHx-0003dI-75
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:58:57 -0400
Received: from quimby.gnus.org ([80.91.231.51]:44364)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htGHv-0003d9-Bo
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:58:56 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htGHs-0002zU-15; Thu, 01 Aug 2019 20:58:54 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN> <83mugshg86.fsf@HIDDEN>
Date: Thu, 01 Aug 2019 20:58:50 +0200
In-Reply-To: <83mugshg86.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 01 Aug
 2019 21:51:05 +0300")
Message-ID: <877e7whfv9.fsf@HIDDEN>
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 <eliz@HIDDEN> writes: >> No,
 but `view-lossage'
 says "Display last few input keystrokes and the >> commands run." > > Which
 is what we do: we display 'a', but we don't show any command for > it. >
 >> What `read-char' comes [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> No, but `view-lossage' says "Display last few input keystrokes and the
>> commands run."
>
> Which is what we do: we display 'a', but we don't show any command for
> it.
>
>> What `read-char' comes under "input keystrokes", I guess?
>
> Yes.

Right, but view-lossage currently says

 C-x C-e ;; eval-last-sexp
 a C-h l ;; view-lossage

which is a very curious way of displaying this.  It makes it look like
"a C-h l" is a key stroke.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 18:51:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 14:51:20 2019
Received: from localhost ([127.0.0.1]:55218 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htGAZ-0003Px-A3
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:51:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1htGAX-0003Pj-SJ
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:51:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42461)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1htGAS-00046b-Ld; Thu, 01 Aug 2019 14:51:12 -0400
Received: from [176.228.60.248] (port=2678 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1htGAS-0007h5-1t; Thu, 01 Aug 2019 14:51:12 -0400
Date: Thu, 01 Aug 2019 21:51:05 +0300
Message-Id: <83mugshg86.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <87tvb0hgov.fsf@HIDDEN> (message from Lars Ingebrigtsen
 on Thu, 01 Aug 2019 20:41:04 +0200)
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
 <87tvb0hgov.fsf@HIDDEN>
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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: zkanfer@HIDDEN,  21867 <at> debbugs.gnu.org
> Date: Thu, 01 Aug 2019 20:41:04 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> >  C-x C-e [eval-last-sexp]
> >> >  a [char read by read-char]
> >> >  C-h l [view-lossage]
> >
> > FWIW, I don't see why 'a' should be treated as a command here.  It
> > isn't.
> 
> No, but `view-lossage' says "Display last few input keystrokes and the
> commands run."

Which is what we do: we display 'a', but we don't show any command for
it.

> What `read-char' comes under "input keystrokes", I guess?

Yes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 18:41:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 14:41:10 2019
Received: from localhost ([127.0.0.1]:55205 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htG0j-00011w-NF
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:41:09 -0400
Received: from quimby.gnus.org ([80.91.231.51]:44112)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htG0i-00011p-Bd
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:41:08 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htG0f-0002s5-0G; Thu, 01 Aug 2019 20:41:07 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN> <83o918hhli.fsf@HIDDEN>
Date: Thu, 01 Aug 2019 20:41:04 +0200
In-Reply-To: <83o918hhli.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 01 Aug
 2019 21:21:29 +0300")
Message-ID: <87tvb0hgov.fsf@HIDDEN>
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 <eliz@HIDDEN> writes: >> > C-x C-e
 [eval-last-sexp]
 >> > a [char read by read-char] >> > C-h l [view-lossage] > > FWIW, I don't
 see why 'a' should be treated as a command here. It > isn'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
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> >  C-x C-e [eval-last-sexp]
>> >  a [char read by read-char]
>> >  C-h l [view-lossage]
>
> FWIW, I don't see why 'a' should be treated as a command here.  It
> isn't.

No, but `view-lossage' says "Display last few input keystrokes and the
commands run."  What `read-char' comes under "input keystrokes", I
guess?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 18:21:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 14:21:46 2019
Received: from localhost ([127.0.0.1]:55176 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htFhx-0006q4-Nf
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:21:45 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45198)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1htFht-0006pq-W3
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:21:42 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42167)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1htFho-00077w-PI; Thu, 01 Aug 2019 14:21:36 -0400
Received: from [176.228.60.248] (port=4855 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1htFho-00043P-5F; Thu, 01 Aug 2019 14:21:36 -0400
Date: Thu, 01 Aug 2019 21:21:29 +0300
Message-Id: <83o918hhli.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <87blx8iwwm.fsf@HIDDEN> (message from Lars Ingebrigtsen
 on Thu, 01 Aug 2019 20:05:29 +0200)
Subject: Re: bug#21867: 25.0.50;
 lossage's log doesn't treat characters read by read-char as separate
 commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 <87blx8iwwm.fsf@HIDDEN>
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: 21867
Cc: 21867 <at> debbugs.gnu.org, zkanfer@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Date: Thu, 01 Aug 2019 20:05:29 +0200
> Cc: 21867 <at> debbugs.gnu.org
> 
> > (read-char)
> >
> > Then, with point at the end of that line, type:
> >
> > C-x C-e a C-h l
> >
> > This evaluates the (read-char) sexp which reads the `a` typed, then
> > views lossage.
> >
> > The last lines of lossage are:
> >
> >  C-x C-e [eval-last-sexp]
> >  a C-h l [view-lossage]
> >
> > Note that the log line calling view-lossage also includes "a", the
> > command read by read-char. I would expect the lossage buffer to be
> > something like this:
> >
> >  C-x C-e [eval-last-sexp]
> >  a [char read by read-char]
> >  C-h l [view-lossage]

FWIW, I don't see why 'a' should be treated as a command here.  It
isn't.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 21867 <at> debbugs.gnu.org:


Received: (at 21867) by debbugs.gnu.org; 1 Aug 2019 18:05:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 14:05:36 2019
Received: from localhost ([127.0.0.1]:55156 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htFSK-0004Io-35
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:05:36 -0400
Received: from quimby.gnus.org ([80.91.231.51]:43634)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htFSH-0004If-W9
 for 21867 <at> debbugs.gnu.org; Thu, 01 Aug 2019 14:05:34 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htFSD-0002dB-Qz; Thu, 01 Aug 2019 20:05:32 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Zachary Kanfer <zkanfer@HIDDEN>
Subject: Re: bug#21867: 25.0.50; lossage's log doesn't treat characters read
 by read-char as separate commands
References: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
Date: Thu, 01 Aug 2019 20:05:29 +0200
In-Reply-To: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
 (Zachary Kanfer's message of "Sun, 8 Nov 2015 23:58:01 -0500")
Message-ID: <87blx8iwwm.fsf@HIDDEN>
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:  Zachary Kanfer <zkanfer@HIDDEN> writes: > The way that
 lossage now shows different commands on different lines is > really useful,
 but I found a way where it's not treating two different > things as different
 commands. To reproduce: > > ema [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21867
Cc: 21867 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Zachary Kanfer <zkanfer@HIDDEN> writes:

> The way that lossage now shows different commands on different lines is
> really useful, but I found a way where it's not treating two different
> things as different commands. To reproduce:
>
> emacs -Q
>
> open the scratch buffer
>
> insert this whole s-expression:
>
> (read-char)
>
> Then, with point at the end of that line, type:
>
> C-x C-e a C-h l
>
> This evaluates the (read-char) sexp which reads the `a` typed, then
> views lossage.
>
> The last lines of lossage are:
>
>  C-x C-e [eval-last-sexp]
>  a C-h l [view-lossage]
>
> Note that the log line calling view-lossage also includes "a", the
> command read by read-char. I would expect the lossage buffer to be
> something like this:
>
>  C-x C-e [eval-last-sexp]
>  a [char read by read-char]
>  C-h l [view-lossage]
>
> This does not happen with read-string; one gets logs like:
>
>  C-x C-e [eval-last-sexp]
>  p [self-insert-command]
>  a [self-insert-command]
>  n [self-insert-command]
>  t [self-insert-command]
>  s [self-insert-command]
>  <return> [exit-minibuffer]
>  C-h l [view-lossage]

(I'm going through old bug reports that have unfortunately not gotten
any responses.)

I'm seeing the same thing in Emacs 27 -- C-x C-e on the `(read-char)'
and then a couple of <down>s:

 C-x C-e		;; eval-last-sexp
 a <down>		;; next-line
 <down>			;; next-line

This is what's returned by `recent-keys':

 24 5
 (nil . eval-last-sexp)
 97 down
 (nil . next-line)
 down
 (nil . next-line)

97 is the ?a.

The reason is that `read-char' does this:

  /* Store these characters into recent_keys, the dribble file if any,
     and the keyboard macro being defined, if any.  */
  record_char (c);
  recorded = true;
  if (! NILP (also_record))
    record_char (also_record);

But...  it's not clear what `read-char' should put into recent_keys
here, which is a not-very-clear structure.  Perhaps (nil . "char read by
read-char") after the char and then adjust `view-lossage'?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Nov 2015 04:58:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 08 23:58:49 2015
Received: from localhost ([127.0.0.1]:58094 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZveXY-0008UK-VB
	for submit <at> debbugs.gnu.org; Sun, 08 Nov 2015 23:58:49 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35972)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <zkanfer@HIDDEN>) id 1ZveXE-0008To-A0
 for submit <at> debbugs.gnu.org; Sun, 08 Nov 2015 23:58:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <zkanfer@HIDDEN>) id 1ZveXC-0006xo-2O
 for submit <at> debbugs.gnu.org; Sun, 08 Nov 2015 23:58:27 -0500
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]:39916)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <zkanfer@HIDDEN>) id 1ZveXB-0006xi-VL
 for submit <at> debbugs.gnu.org; Sun, 08 Nov 2015 23:58:25 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45957)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <zkanfer@HIDDEN>) id 1ZveXA-0002Mr-Cr
 for bug-gnu-emacs@HIDDEN; Sun, 08 Nov 2015 23:58:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <zkanfer@HIDDEN>) id 1ZveX8-0006vQ-GZ
 for bug-gnu-emacs@HIDDEN; Sun, 08 Nov 2015 23:58:24 -0500
Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]:34737)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <zkanfer@HIDDEN>) id 1ZveX8-0006ux-AJ
 for bug-gnu-emacs@HIDDEN; Sun, 08 Nov 2015 23:58:22 -0500
Received: by ykfs79 with SMTP id s79so18470083ykf.1
 for <bug-gnu-emacs@HIDDEN>; Sun, 08 Nov 2015 20:58:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to:content-type;
 bh=30Po6HewUDfKIvUJrynMADBCNaC+YWxLsf2UfVVRFjY=;
 b=gof8GOLKa6ZHCl0d+S2fMjV87KrmBc/ahdflbdHv02IHpExQrTJ+iIHcZDMNfCJGOf
 LyJb/e/pHK6e/ZdZ4fKd4a54Agmk9g0tvQ9jgU9rx4DPLS1tLX1cydtfr7Ls7s7cTxRw
 50B0U/gcx98Qy1F4XsiKcNTaQtEIu3AMhbIaNges2g/G3Qw6xI043978pj/CiKDEMCqW
 MnPfzqEumxUPTPDIRfRJ5bOvIDThZGttnPr9tWv1zBBUnpnbt/W6ID70ZYPKPPw8VU38
 c3cn71hth/IuoDVcpLA8WhhsWNBlfzt0/+B4F0rq5sY48phnZ23B5/3NwQCMdyV3c8fL
 LHvg==
X-Received: by 10.129.95.137 with SMTP id t131mr5364102ywb.65.1447045101875;
 Sun, 08 Nov 2015 20:58:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.35.10 with HTTP; Sun, 8 Nov 2015 20:58:01 -0800 (PST)
From: Zachary Kanfer <zkanfer@HIDDEN>
Date: Sun, 8 Nov 2015 23:58:01 -0500
Message-ID: <CAFXT+RMGJ_DwsKBM0D7WnAtcxJ=TFKx6spUa4B5-iDVmxeh8Sw@HIDDEN>
Subject: 25.0.50; lossage's log doesn't treat characters read by read-char as
 separate commands
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=001a1146d85c45762305241471f0
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--001a1146d85c45762305241471f0
Content-Type: text/plain; charset=UTF-8

The way that lossage now shows different commands on different lines is
really useful, but I found a way where it's not treating two different
things as different commands. To reproduce:

emacs -Q

open the scratch buffer

insert this whole s-expression:

(read-char)

Then, with point at the end of that line, type:

C-x C-e a C-h l

This evaluates the (read-char) sexp which reads the `a` typed, then
views lossage.

The last lines of lossage are:

 C-x C-e [eval-last-sexp]
 a C-h l [view-lossage]

Note that the log line calling view-lossage also includes "a", the
command read by read-char. I would expect the lossage buffer to be
something like this:

 C-x C-e [eval-last-sexp]
 a [char read by read-char]
 C-h l [view-lossage]

This does not happen with read-string; one gets logs like:

 C-x C-e [eval-last-sexp]
 p [self-insert-command]
 a [self-insert-command]
 n [self-insert-command]
 t [self-insert-command]
 s [self-insert-command]
 <return> [exit-minibuffer]
 C-h l [view-lossage]

I noted this when viewing lossage after calling org-agenda, which I
think uses read-char to get a character to dispatch on. However, I'm not
sure; the package is too complicated for me to track down how it's
reading the character. The same behavior happens when calling read-char,
so it might be the same thing.


In GNU Emacs 25.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-10-31
Repository revision: e4740877d6feeb357d7437e6025dba641800c11d
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description:    Ubuntu 14.04.3 LTS

Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Help

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-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
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
C-h j is undefined
Rebuilding agenda buffer...done
Log mode is on
Type "q" in help window to restore its previous buffer.
C-, is undefined
Press key for agenda command:
C-c l is undefined
Press key for agenda command:

C-, is undefined

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils help-mode cal-iso org-agenda org
org-macro org-footnote org-pcomplete pcomplete org-list org-faces
org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint
ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs
format-spec find-func cal-menu easymenu calendar cal-loaddefs edmacro
kmacro cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
inotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 133879 6850)
 (symbols 48 25562 0)
 (miscs 40 489 115)
 (strings 32 32608 5367)
 (string-bytes 1 1089148)
 (vectors 16 16809)
 (vector-slots 8 483236 6626)
 (floats 8 171 440)
 (intervals 56 364 3)
 (buffers 976 14)
 (heap 1024 35202 1287))

--001a1146d85c45762305241471f0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">The way that lossage now shows different commands on diffe=
rent lines is<br>really useful, but I found a way where it&#39;s not treati=
ng two different<br>things as different commands. To reproduce:<br><br>emac=
s -Q<br><br>open the scratch buffer<br><br>insert this whole s-expression:<=
br><br>(read-char)<br><br>Then, with point at the end of that line, type:<b=
r><br>C-x C-e a C-h l<br><br>This evaluates the (read-char) sexp which read=
s the `a` typed, then<br>views lossage.<br><br>The last lines of lossage ar=
e:<br><br>=C2=A0C-x C-e [eval-last-sexp]<br>=C2=A0a C-h l [view-lossage]<br=
><br>Note that the log line calling view-lossage also includes &quot;a&quot=
;, the<br>command read by read-char. I would expect the lossage buffer to b=
e<br>something like this:<br><br>=C2=A0C-x C-e [eval-last-sexp]<br>=C2=A0a =
[char read by read-char]<br>=C2=A0C-h l [view-lossage]<br><br>This does not=
 happen with read-string; one gets logs like:<br><br>=C2=A0C-x C-e [eval-la=
st-sexp]<br>=C2=A0p [self-insert-command]<br>=C2=A0a [self-insert-command]<=
br>=C2=A0n [self-insert-command]<br>=C2=A0t [self-insert-command]<br>=C2=A0=
s [self-insert-command]<br>=C2=A0&lt;return&gt; [exit-minibuffer]<br>=C2=A0=
C-h l [view-lossage]<br><br>I noted this when viewing lossage after calling=
 org-agenda, which I<br>think uses read-char to get a character to dispatch=
 on. However, I&#39;m not<br>sure; the package is too complicated for me to=
 track down how it&#39;s<br>reading the character. The same behavior happen=
s when calling read-char,<br>so it might be the same thing.<br><br><br>In G=
NU Emacs 25.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)<br>=C2=
=A0of 2015-10-31<br>Repository revision: e4740877d6feeb357d7437e6025dba6418=
00c11d<br>Windowing system distributor &#39;The X.Org Foundation&#39;, vers=
ion 11.0.11501000<br>System Description:=C2=A0=C2=A0=C2=A0 Ubuntu 14.04.3 L=
TS<br><br>Configured features:<br>XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOT=
IFY GNUTLS LIBXML2 FREETYPE XFT<br>ZLIB TOOLKIT_SCROLL_BARS GTK3 X11<br><br=
>Important settings:<br>=C2=A0 value of $LANG: en_US.UTF-8<br>=C2=A0 value =
of $XMODIFIERS: @im=3Dibus<br>=C2=A0 locale-coding-system: utf-8-unix<br><b=
r>Major mode: Help<br><br>Minor modes in effect:<br>=C2=A0 tooltip-mode: t<=
br>=C2=A0 global-eldoc-mode: t<br>=C2=A0 electric-indent-mode: t<br>=C2=A0 =
mouse-wheel-mode: t<br>=C2=A0 tool-bar-mode: t<br>=C2=A0 menu-bar-mode: t<b=
r>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-font-lock-mode: t<br>=C2=
=A0 font-lock-mode: t<br>=C2=A0 blink-cursor-mode: t<br>=C2=A0 auto-composi=
tion-mode: t<br>=C2=A0 auto-encryption-mode: t<br>=C2=A0 auto-compression-m=
ode: t<br>=C2=A0 buffer-read-only: t<br>=C2=A0 line-number-mode: t<br>=C2=
=A0 transient-mark-mode: t<br><br>Recent messages:<br>C-h j is undefined<br=
>Rebuilding agenda buffer...done<br>Log mode is on<br>Type &quot;q&quot; in=
 help window to restore its previous buffer.<br>C-, is undefined<br>Press k=
ey for agenda command:<br>C-c l is undefined<br>Press key for agenda comman=
d:<br><br>C-, is undefined<br><br>Load-path shadows:<br>None found.<br><br>=
Features:<br>(shadow sort gnus-util mail-extr emacsbug message dired rfc822=
 mml<br>mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev=
<br>gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util<br>hel=
p-fns mail-prsvr mail-utils help-mode cal-iso org-agenda org<br>org-macro o=
rg-footnote org-pcomplete pcomplete org-list org-faces<br>org-entities nout=
line outline easy-mmode org-version ob-emacs-lisp ob<br>ob-tangle ob-ref ob=
-lob ob-table ob-exp org-src ob-keys ob-comint comint<br>ansi-color ring ob=
-core ob-eval org-compat org-macs org-loaddefs<br>format-spec find-func cal=
-menu easymenu calendar cal-loaddefs edmacro<br>kmacro cl-loaddefs pcase cl=
-lib time-date mule-util tooltip eldoc<br>electric uniquify ediff-hook vc-h=
ooks lisp-float-type mwheel x-win<br>term/common-win x-dnd tool-bar dnd fon=
tset image regexp-opt fringe<br>tabulated-list newcomment elisp-mode lisp-m=
ode prog-mode register page<br>menu-bar rfn-eshadow timer select scroll-bar=
 mouse jit-lock font-lock<br>syntax facemenu font-core frame cl-generic cha=
m georgian utf-8-lang<br>misc-lang vietnamese tibetan thai tai-viet lao kor=
ean japanese eucjp-ms<br>cp51932 hebrew greek romanian slovak czech europea=
n ethiopic indian<br>cyrillic chinese charscript case-table epa-hook jka-cm=
pr-hook help<br>simple abbrev minibuffer cl-preloaded nadvice loaddefs butt=
on faces<br>cus-face macroexp files text-properties overlay sha1 md5 base64=
 format<br>env code-pages mule custom widget hashtable-print-readable backq=
uote<br>inotify dynamic-setting system-font-setting font-render-setting<br>=
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)<br><br>M=
emory information:<br>((conses 16 133879 6850)<br>=C2=A0(symbols 48 25562 0=
)<br>=C2=A0(miscs 40 489 115)<br>=C2=A0(strings 32 32608 5367)<br>=C2=A0(st=
ring-bytes 1 1089148)<br>=C2=A0(vectors 16 16809)<br>=C2=A0(vector-slots 8 =
483236 6626)<br>=C2=A0(floats 8 171 440)<br>=C2=A0(intervals 56 364 3)<br>=
=C2=A0(buffers 976 14)<br>=C2=A0(heap 1024 35202 1287))<br><br></div>

--001a1146d85c45762305241471f0--




Acknowledgement sent to Zachary Kanfer <zkanfer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21867; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.