From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zachary Kanfer Newsgroups: gmane.emacs.bugs Subject: bug#21867: 25.0.50; lossage's log doesn't treat characters read by read-char as separate commands Date: Sun, 8 Nov 2015 23:58:01 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1146d85c45762305241471f0 X-Trace: ger.gmane.org 1447045161 17568 80.91.229.3 (9 Nov 2015 04:59:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2015 04:59:21 +0000 (UTC) To: 21867@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 09 05:59:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZveXs-0004qd-92 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Nov 2015 05:59:08 +0100 Original-Received: from localhost ([::1]:50162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZveXs-0002Ok-2R for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Nov 2015 23:59:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZveXn-0002Oa-VS for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:59:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZveXm-0007MA-A0 for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:59:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZveXm-0007M6-6J for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZveXl-0008Ut-Uo for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Zachary Kanfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Nov 2015 04:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144704513032637 (code B ref -1); Mon, 09 Nov 2015 04:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2015 04:58:50 +0000 Original-Received: from localhost ([127.0.0.1]:58094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZveXY-0008UK-VB for submit@debbugs.gnu.org; Sun, 08 Nov 2015 23:58:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35972) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZveXE-0008To-A0 for submit@debbugs.gnu.org; Sun, 08 Nov 2015 23:58:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZveXC-0006xo-2O for submit@debbugs.gnu.org; Sun, 08 Nov 2015 23:58:27 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZveXB-0006xi-VL for submit@debbugs.gnu.org; Sun, 08 Nov 2015 23:58:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZveXA-0002Mr-Cr for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:58:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZveX8-0006vQ-GZ for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:58:24 -0500 Original-Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]:34737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZveX8-0006ux-AJ for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 23:58:22 -0500 Original-Received: by ykfs79 with SMTP id s79so18470083ykf.1 for ; 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) Original-Received: by 10.129.35.10 with HTTP; Sun, 8 Nov 2015 20:58:01 -0800 (PST) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108599 Archived-At: --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] [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
The way that lossage now shows different commands on diffe= rent lines is
really useful, but I found a way where it's not treati= ng two different
things as different commands. To reproduce:

emac= s -Q

open the scratch buffer

insert this whole s-expression:<= br>
(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 read= s the `a` typed, then
views lossage.

The last lines of lossage ar= e:

=C2=A0C-x C-e [eval-last-sexp]
=C2=A0a 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 b= e
something like this:

=C2=A0C-x C-e [eval-last-sexp]
=C2=A0a = [char read by read-char]
=C2=A0C-h l [view-lossage]

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

=C2=A0C-x C-e [eval-la= st-sexp]
=C2=A0p [self-insert-command]
=C2=A0a [self-insert-command]<= br>=C2=A0n [self-insert-command]
=C2=A0t [self-insert-command]
=C2=A0= s [self-insert-command]
=C2=A0<return> [exit-minibuffer]
=C2=A0= 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 happen= s when calling read-char,
so it might be the same thing.


In G= NU Emacs 25.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
=C2= =A0of 2015-10-31
Repository revision: e4740877d6feeb357d7437e6025dba6418= 00c11d
Windowing system distributor 'The X.Org Foundation', vers= ion 11.0.11501000
System Description:=C2=A0=C2=A0=C2=A0 Ubuntu 14.04.3 L= TS

Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOT= IFY GNUTLS LIBXML2 FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value = of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix
Major mode: Help

Minor modes in effect:
=C2=A0 tooltip-mode: t<= br>=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 = mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composi= tion-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-m= ode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

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

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
hel= p-fns mail-prsvr mail-utils help-mode cal-iso org-agenda org
org-macro o= rg-footnote org-pcomplete pcomplete org-list org-faces
org-entities nout= line 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-h= ooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fon= tset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-m= ode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar= mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cha= m georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao kor= ean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech europea= n ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cm= pr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs butt= on faces
cus-face macroexp files text-properties overlay sha1 md5 base64= format
env code-pages mule custom widget hashtable-print-readable backq= uote
inotify dynamic-setting system-font-setting font-render-setting
= move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

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

--001a1146d85c45762305241471f0--