GNU logs - #18484, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#18484: 24.3.93; term-suppress-hard-newline breaks command history
Resent-From: Russell Black <black.russell@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 16 Sep 2014 02:18:01 +0000
Resent-Message-ID: <handler.18484.B.141083387525952 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 18484
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 18484 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.141083387525952
          (code B ref -1); Tue, 16 Sep 2014 02:18:01 +0000
Received: (at submit) by debbugs.gnu.org; 16 Sep 2014 02:17:55 +0000
Received: from localhost ([127.0.0.1]:41906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XTiL3-0006kS-FJ
	for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 22:17:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46716)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <black.russell@HIDDEN>) id 1XThaT-0005a4-15
 for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 21:29:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <black.russell@HIDDEN>) id 1XThaK-0003FH-L5
 for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 21:29:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,
 RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42075)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <black.russell@HIDDEN>) id 1XThaK-0003Eq-I6
 for submit <at> debbugs.gnu.org; Mon, 15 Sep 2014 21:29:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47125)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <black.russell@HIDDEN>) id 1XThQR-0008Qo-8V
 for bug-gnu-emacs@HIDDEN; Mon, 15 Sep 2014 21:19:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <black.russell@HIDDEN>) id 1XThQK-00013M-HB
 for bug-gnu-emacs@HIDDEN; Mon, 15 Sep 2014 21:19:23 -0400
Received: from mail-by2on0139.outbound.protection.outlook.com
 ([207.46.100.139]:46352 helo=na01-by2-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <black.russell@HIDDEN>) id 1XThQK-0000yd-7q
 for bug-gnu-emacs@HIDDEN; Mon, 15 Sep 2014 21:19:16 -0400
Received: from BY2PR05CA031.namprd05.prod.outlook.com (10.141.250.21) by
 CO2PR0501MB887.namprd05.prod.outlook.com (10.141.247.154) with Microsoft SMTP
 Server (TLS) id 15.0.1024.12; Mon, 15 Sep 2014 23:43:47 +0000
Received: from BN1BFFO11FD010.protection.gbl (2a01:111:f400:7c10::1:110) by
 BY2PR05CA031.outlook.office365.com (2a01:111:e400:2c5f::21) with Microsoft
 SMTP Server (TLS) id 15.0.1029.13 via Frontend Transport; Mon, 15 Sep 2014
 23:43:46 +0000
Received: from PREXCHU02.myfamily.int (66.43.16.219) by
 BN1BFFO11FD010.mail.protection.outlook.com (10.58.144.73) with Microsoft SMTP
 Server id 15.0.1019.14 via Frontend Transport; Mon, 15 Sep 2014 23:43:45
 +0000
Received: from PREXMB01.myfamily.int ([fe80::8494:fbbe:6341:1874]) by
 PREXCHU02.myfamily.int ([fe80::a5f6:d062:5ba2:75c%10]) with mapi id
 14.03.0174.001; Mon, 15 Sep 2014 17:43:44 -0600
From: Russell Black <black.russell@HIDDEN>
Thread-Topic: 24.3.93; term-suppress-hard-newline breaks command history
Thread-Index: AQHP0T7ilfFSbk7zp0SmWHgwuCPz/Q==
Date: Mon, 15 Sep 2014 23:43:45 +0000
Message-ID: <A8E033B7-9280-4DAB-9394-374B7A14E9D1@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.57.0.3]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <65105239D412EA428B6F109ABB45DF18@HIDDEN>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:66.43.16.219; CTRY:US; IPV:NLI; EFV:NLI;
 SFV:NSPM;
 SFS:(10019020)(6009001)(377424004)(189002)(5423002)(199003)(83322001)(106466001)(21056001)(31966008)(92726001)(19580395003)(77982001)(53416004)(2656002)(69596002)(46406003)(90102001)(81542001)(77096002)(97736003)(99396002)(83716003)(47776003)(81156004)(74662001)(92566001)(83072002)(107886001)(85852003)(50986999)(20776003)(110136001)(80022001)(106116001)(95666004)(2351001)(79102001)(97756001)(54356999)(84676001)(230783001)(104016003)(81342001)(229853001)(82746002)(46102001)(87936001)(68736004)(105596002)(44976005)(36756003)(33656002)(107046002)(74502001)(4396001)(86362001)(76482001)(85306004)(104396001);
 DIR:OUT; SFP:1102; SCL:1; SRVR:CO2PR0501MB887; H:PREXCHU02.myfamily.int; FPR:;
 MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-Forefront-PRVS: 03355EE97E
Received-SPF: SoftFail (protection.outlook.com: domain of transitioning
 newspapers.com discourages use of 66.43.16.219 as permitted sender)
Authentication-Results: spf=softfail (sender IP is 66.43.16.219)
 smtp.mailfrom=black.russell@HIDDEN; 
X-OriginatorOrg: newspapers.com
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8
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-Mailman-Approved-At: Mon, 15 Sep 2014 22:17:51 -0400
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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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 (----)

In ansi-term, when term-suppress-hard-newline is t, attempting to navigate =
a command history containing commands long enough to wrap places the termin=
al in a funny state.  Here is a command that reproduces the bug:

emacs -Q --eval '(progn (setq term-suppress-hard-newline t) (ansi-term "/bi=
n/sh") (kmacro-call-macro nil nil nil (kbd "echo SPC ESC 500 a RET Now SPC =
press SPC up SPC and SPC down SPC to SPC navigate SPC history")))'

In GNU Emacs 24.3.93.1 (x86_64-apple-darwin13.3.0, NS apple-appkit-1265.21)
of 2014-09-15 on *.rbnews.com
Windowing system distributor `Apple', version 10.3.1265
Configured using:
`configure --with-ns'

Important settings:
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-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
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x b <return> M-x r e p o r t - e m a c s - b u g=20
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils edmacro cl-loaddefs cl-lib kmacro term
disp-table easymenu ehelp ring time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer 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 make-network-process
dbusbind cocoa ns multi-tty emacs)

Memory information:
((conses 16 77539 5468)
(symbols 48 18367 0)
(miscs 40 45 145)
(strings 32 12201 4787)
(string-bytes 1 348380)
(vectors 16 10153)
(vector-slots 8 385572 7771)
(floats 8 56 77)
(intervals 56 185 4)
(buffers 960 12))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Russell Black <black.russell@HIDDEN>
Subject: bug#18484: Acknowledgement (24.3.93; term-suppress-hard-newline
 breaks command history)
Message-ID: <handler.18484.B.141083387525952.ack <at> debbugs.gnu.org>
References: <A8E033B7-9280-4DAB-9394-374B7A14E9D1@HIDDEN>
X-Gnu-PR-Message: ack 18484
X-Gnu-PR-Package: emacs
Reply-To: 18484 <at> debbugs.gnu.org
Date: Tue, 16 Sep 2014 02:18:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 18484 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
18484: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18484
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#18484: also affected
References: <A8E033B7-9280-4DAB-9394-374B7A14E9D1@HIDDEN>
In-Reply-To: <A8E033B7-9280-4DAB-9394-374B7A14E9D1@HIDDEN>
Resent-From: Tamas Papp <tkpapp@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 14 Jan 2018 14:29:01 +0000
Resent-Message-ID: <handler.18484.B18484.15159401159620 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 18484
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 18484 <at> debbugs.gnu.org
Received: via spool by 18484-submit <at> debbugs.gnu.org id=B18484.15159401159620
          (code B ref 18484); Sun, 14 Jan 2018 14:29:01 +0000
Received: (at 18484) by debbugs.gnu.org; 14 Jan 2018 14:28:35 +0000
Received: from localhost ([127.0.0.1]:55459 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eajH0-0002V5-Ai
	for submit <at> debbugs.gnu.org; Sun, 14 Jan 2018 09:28:35 -0500
Received: from mail-wr0-f177.google.com ([209.85.128.177]:36580)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tkpapp@HIDDEN>) id 1eajGy-0002Us-4g
 for 18484 <at> debbugs.gnu.org; Sun, 14 Jan 2018 09:28:32 -0500
Received: by mail-wr0-f177.google.com with SMTP id d9so9258587wre.3
 for <18484 <at> debbugs.gnu.org>; Sun, 14 Jan 2018 06:28:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=user-agent:from:to:subject:date:message-id:mime-version;
 bh=j3BB11GcOAhX0Wl0gJB2RJ3Bb9JOfAMQ/ots5rmwaRI=;
 b=T1AnxW0lHvAVtY7qyaIuQvg8/PgOCgqQM9HkCSpf7yrnzzcYRqKO0WY9Ydkfm/buyN
 NcT/S2yX4Ei8OSdzW+cybZ9WRda1aaCbYGfNXz9Xva/a1t9vDlAMGeg5E9qR3b4uHx8C
 OsNMk11GVcOz+hX6YIPABeSIvS4sw/O6FWYhmlz1AdKMVvSIjUUfDedvU5Q+vm1SQUUz
 nDWiEAOOlQtNlFqcWfjalvhMo5YICX5rC2171/UX8YaLxgdQtSztogUm6BLQBRTwFIYv
 DDOgboKPUZJweADL3R3LyGGBz95PRjKJW2htJLWz2ZWIBq5UBZ4/wy9IxETEvHO5uim6
 17fQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:user-agent:from:to:subject:date:message-id
 :mime-version;
 bh=j3BB11GcOAhX0Wl0gJB2RJ3Bb9JOfAMQ/ots5rmwaRI=;
 b=ZzSlsUEwd0EIydaDCdHqFyBFkROuJeB/ai5mvGoqcG6xt9Wy8r4Rufn/tD6juJNOXT
 cGYSRQLYi0WoIWH1tS8Y4RdDqFvDrPKAHZIDKSrNSCXaYi+GnIt0frW6sAOn4tIlSFbt
 wWu6D1hosLc63zQSR409eaYORj1+VDrHuiWDJlcmjgK7ZJWlO6FGbnUCXuK/pAriebIQ
 prGk53nKMOsIlIrqxZ1/oI36m+USCYZz58dJx09lca6oDPFAvh3lPNu+VRdWnUe/uCAm
 wz4YyVZT/0DNXdJflRuQ1aOaPOhGbJDuNhQnV+NL9VDsIqW3+XFI27DeVwu3xqbwhTBH
 7GxA==
X-Gm-Message-State: AKwxytdLpwKbQ3pDpFFv6XOH1YolHt9qRKxrG9oeHjd7RvEnkp/oMCWW
 mDIZIG65KeUg9m7Vxfr1mbnGHDxY
X-Google-Smtp-Source: ACJfBov5PtIpnSP3Omi8q307itIuJAXtwyyMkjBjki7kaT+EAXIu5ouOpvwqSQr+hoeyfUy278lDhw==
X-Received: by 10.223.164.86 with SMTP id e22mr5509298wra.19.1515940106012;
 Sun, 14 Jan 2018 06:28:26 -0800 (PST)
Received: from tamas (213-147-162-62.nat.highway.bob.at. [213.147.162.62])
 by smtp.gmail.com with ESMTPSA id o22sm19876542wra.51.2018.01.14.06.28.24
 for <18484 <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 14 Jan 2018 06:28:25 -0800 (PST)
User-agent: mu4e 1.0-alpha3; emacs 25.2.2
From: Tamas Papp <tkpapp@HIDDEN>
Date: Sun, 14 Jan 2018 15:28:23 +0100
Message-ID: <878td0wm48.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
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.0 (/)

This bug appears to be still alive in 25.2.2, and I am also affected.

It is easy to reproduce with various command-line tools that allow line
editing that wrap lines and work perfectly fine in a terminal emulator,
eg sh, bc and I ran into this with Julia v0.6.2, here is an asciinema
terminal capture:

https://asciinema.org/a/7QeLiQh9xQkrF8zwTkzAD9Zrr

I know next to nothing about terminals, but with

(defun ansi-term-debug-message (proc char)
  (message "ANSI escape in process %s char %c, param %d, remaining params %d"
           proc char term-terminal-parameter term-terminal-more-parameters))

(advice-add 'term-handle-ansi-escape :before 'ansi-term-debug-message)

managed to narrow it down to the handling of the EL ( \e[0K ), or
possibly CUF and CUU, ( \e[1A , \e[1C ) when TERM-SUPPRESS-HARD-NEWLINE
is T.





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.