From unknown Sun Jun 22 11:41:20 2025 X-Loop: don@donarmstrong.com Subject: bug#1469: term.el regression when dealing with long lines under bash Reply-To: Cyril Bouthors , 1469@debbugs.gnu.org Resent-From: Cyril Bouthors Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Dec 2008 14:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1469 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122822642720697 (code B ref -1); Tue, 02 Dec 2008 14:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Dec 2008 14:00:27 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2E0N2J020413 for ; Tue, 2 Dec 2008 06:00:25 -0800 Received: from mx10.gnu.org ([199.232.76.166]:51996) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L7VP6-0002Wo-MZ for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 08:35:04 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L7VPS-00016L-ND for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 08:35:30 -0500 Received: from smtp1.hi-media-techno.com ([195.158.241.85]:39218) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7VPS-00015d-8c for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 08:35:26 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp1.hi-media-techno.com (Postfix) with ESMTP id 4AF7D93DEC; Tue, 2 Dec 2008 14:35:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp1.backbone.hi-media-techno.com Received: from smtp1.hi-media-techno.com ([127.0.0.1]) by localhost (smtp1.backbone.hi-media-techno.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nu+hkGQpbnjT; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Received: from mail1.hi-media-techno.com (unknown [192.168.27.12]) by smtp1.hi-media-techno.com (Postfix) with ESMTP id BCB1493D97; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.hi-media-techno.com (Postfix) with ESMTP id B7BA76D87ED; Tue, 2 Dec 2008 14:35:18 +0100 (CET) X-Virus-Scanned: amavisd-new at Received: from mail1.hi-media-techno.com ([127.0.0.1]) by localhost (mail1.hi-media-techno.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DuIqMz62Hwoo; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Received: from [172.16.44.113] (LRouen-152-81-16-231.w80-13.abo.wanadoo.fr [80.13.207.231]) by mail1.hi-media-techno.com (Postfix) with ESMTP id 408BB6D87E2; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Message-ID: <49353995.7070605@bouthors.org> Date: Tue, 02 Dec 2008 14:35:17 +0100 From: Cyril Bouthors Organization: Hi Media User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org, Dimitri Fontaine Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) term-mode is no longer able to handle long lines correctly with bash under emacs-snapshot as it used to work under emacs22. When a line wider than $COLUMNS+2 is displayed on the terminal, the cursor is locked on the current line and does not move anymore until /usr/bin/reset is ran. I've been able to reproduce this bug when running bash, psql or csh but not with zsh nor ksh. I haven't been able to reproduce it under emacs22 at all. Here's a short procedure to reproduce the bug: - Start Emacs: emacs-snapshot -Q - Start bash under term-mode: `M-: (term "/bin/bash") RET' - Display a long line under bash: width=$(($COLUMNS+2)) for a in $(seq $width); do echo -n X; done; echo - Try to type any command on the terminal and you'll see the strange cursor behaviour Long lines typically happen on a daily basis when your are reading logfiles, running SQL queries, etc. I hope I provided you with enough information. In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-29 on elegiac, modified by Debian (emacs-snapshot package, version 1:20081129-1) Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Term Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-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-d M-x t e r m b a s h t c s c s h / b i . / b u g / l o n g - l i n e s . s h C-d M-x C-g C-d M-x b u r e p o r t - e m a c s Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit # -- Cyril Bouthors From unknown Sun Jun 22 11:41:20 2025 X-Loop: don@donarmstrong.com Subject: bug#1469: Does anybody working on it? Reply-To: "richardeng" , 1469@debbugs.gnu.org Resent-From: "richardeng" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Dec 2008 14:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1469 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1469-submit@emacsbugs.donarmstrong.com id=B1469.122865895012740 (code B ref 1469); Sun, 07 Dec 2008 14:15:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1469) by emacsbugs.donarmstrong.com; 7 Dec 2008 14:09:10 +0000 Received: from smtpbg3.foxmail.com (smtpbg3.foxmail.com [121.14.102.33]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mB7E93uO012709 for <1469@emacsbugs.donarmstrong.com>; Sun, 7 Dec 2008 06:09:05 -0800 Received: from 172.23.147.51 (foxmail.com [172.23.147.51]) by smtpbg3 (foxmail.com) with SMTP id NqvCzeIg; Sun, 07 Dec 2008 22:08:57 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp4122865893686018255 Received: from 889D3A80E680420 (unknown [116.224.218.55]) by smtp.foxmail.com (Postfix) with ESMTP id for <1469@emacsbugs.donarmstrong.com>; Sun, 7 Dec 2008 22:08:56 +0800 (CST) Date: Sun, 7 Dec 2008 22:08:56 +0800 From: "richardeng" To: "1469" <1469@debbugs.gnu.org> Message-ID: <200812072208519998849@foxmail.com> X-mailer: Foxmail 6, 14, 103, 20 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit I have spent some time on it. Fix is not found yet. I'm sure: 1. problem only in M-x term and M-x ansi-term(both in term.el), M-x shell or M-x eshell(in shell.el or eshell/*.el) works right. 2. The default setting is term-char-mode in term.el, if you change it to term-line-mode, no such problem 3. Problem should be wrong local state(position or coloumn/width/height limitation) after wrap action in function term-emulate-terminal It's real complex, if somebody is working on it, please share what you found. Thank you And Cyril Bouthors, you can temporarily use M-x shell instead of M-x term. From unknown Sun Jun 22 11:41:20 2025 X-Loop: don@donarmstrong.com Subject: bug#1469: Does anybody working on it? Reply-To: Dan Nicolaescu , 1469@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Dec 2008 18:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1469 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1469-submit@emacsbugs.donarmstrong.com id=B1469.122867389124741 (code B ref 1469); Sun, 07 Dec 2008 18:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1469) by emacsbugs.donarmstrong.com; 7 Dec 2008 18:18:11 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB7II8X5024735 for <1469@emacsbugs.donarmstrong.com>; Sun, 7 Dec 2008 10:18:09 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB7IHv0W005764; Sun, 7 Dec 2008 10:17:58 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB7IHv7h014158; Sun, 7 Dec 2008 10:17:57 -0800 (PST) Date: Sun, 7 Dec 2008 10:17:57 -0800 (PST) Message-Id: <200812071817.mB7IHv7h014158@mothra.ics.uci.edu> From: Dan Nicolaescu To: richardeng Cc: 1469@debbugs.gnu.org References: <200812072208519998849@foxmail.com> In-Reply-To: <200812072208519998849@foxmail.com> (richardeng@foxmail.com's message of "Sun, 7 Dec 2008 22:08:56 +0800") Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB7IHv0W005764 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu "richardeng" writes: > I have spent some time on it. Fix is not found yet. > I'm sure: > 1. problem only in M-x term and M-x ansi-term(both in term.el), M-x shell or M-x eshell(in shell.el or eshell/*.el) works right. > 2. The default setting is term-char-mode in term.el, if you change it to term-line-mode, no such problem > 3. Problem should be wrong local state(position or coloumn/width/height limitation) after wrap action in function term-emulate-terminal > > It's real complex, if somebody is working on it, please share what you found. Reverting this patch seems to fix the problem: 2008-09-24 Andreas Politz (tiny change) * term.el (term-emulate-terminal): Encode input string before checking its length. Another thing, the original bug does not seem to be archived on gmane.emacs.bug, just this reply... From unknown Sun Jun 22 11:41:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1469: patch for term.el regression when dealing with long lines under bash Reply-To: Nicholas Maniscalco , 1469@debbugs.gnu.org Resent-From: Nicholas Maniscalco Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 26 Dec 2008 21:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1469 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1469-submit@emacsbugs.donarmstrong.com id=B1469.123032595015612 (code B ref 1469); Fri, 26 Dec 2008 21:20:03 +0000 Received: (at 1469) by emacsbugs.donarmstrong.com; 26 Dec 2008 21:12:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=3.5 required=4.0 tests=FH_HELO_EQ_D_D_D_D, HELO_DYNAMIC_IPADDR,MIXEDBDN,MURPHY_DRUGS_REL8,RDNS_DYNAMIC autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from ip-10-251-119-180.localdomain (ec2-75-101-156-130.compute-1.amazonaws.com [75.101.156.130]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBQLCNg8015606 for <1469@emacsbugs.donarmstrong.com>; Fri, 26 Dec 2008 13:12:24 -0800 Received: from [192.168.1.5] (unknown [63.231.57.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: njm) by ip-10-251-119-180.localdomain (Postfix) with ESMTP id 05B4BC65DB for <1469@emacsbugs.donarmstrong.com>; Fri, 26 Dec 2008 13:12:17 -0800 (PST) Message-ID: <495548B0.4060505@maniscalco.com> Date: Fri, 26 Dec 2008 13:12:16 -0800 From: Nicholas Maniscalco User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: 1469@debbugs.gnu.org Content-Type: multipart/mixed; boundary="------------070804010105080809060001" This is a multi-part message in MIME format. --------------070804010105080809060001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit (I sent this to the wrong list earlier. Resending to, hopefully, the right place this time.) Here's a patch for bug#1469 (term.el regression when dealing with long lines under bash). * term.el (term-emulate-terminal): Decode substring just prior to inserting it. (Bug#1469) bug#1469 was introduced while fixing bug#1006. I verified this patch against the repro steps in bug#1006 to make sure I haven't made a regression. Can someone please review? I'd appreciate any feedback. -- Nicholas --------------070804010105080809060001 Content-Type: text/x-patch; name="term.el.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="term.el.patch" Index: lisp/term.el =================================================================== RCS file: /sources/emacs/emacs/lisp/term.el,v retrieving revision 1.107 diff -c -p -r1.107 term.el *** lisp/term.el 3 Dec 2008 05:48:33 -0000 1.107 --- lisp/term.el 25 Dec 2008 03:45:24 -0000 *************** See `term-prompt-regexp'." *** 2834,2840 **** ;; following point if not eob nor insert-mode. (let ((old-column (current-column)) columns pos) ! (insert decoded-substring) (setq term-current-column (current-column) columns (- term-current-column old-column)) (when (not (or (eobp) term-insert-mode)) --- 2834,2840 ---- ;; following point if not eob nor insert-mode. (let ((old-column (current-column)) columns pos) ! (insert (decode-coding-string (substring str i funny) locale-coding-system)) (setq term-current-column (current-column) columns (- term-current-column old-column)) (when (not (or (eobp) term-insert-mode)) --------------070804010105080809060001-- From unknown Sun Jun 22 11:41:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Cyril Bouthors Subject: bug#1469 closed by Dan Nicolaescu (Re: bug#1469: patch for term.el regression when dealing with long lines under bash) Message-ID: References: <200812271724.mBRHOeT3019216@mothra.ics.uci.edu> <49353995.7070605@bouthors.org> X-Emacs-PR-Message: they-closed 1469 X-Emacs-PR-Package: emacs Reply-To: 1469@debbugs.gnu.org Date: Sat, 27 Dec 2008 17:30:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1230399003-8600-1" This is a multi-part message in MIME format... ------------=_1230399003-8600-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1469: term.el regression when dealing with long lines under bash It has been closed by Dan Nicolaescu . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Dan Nicolaescu by replying to this email. --=20 1469: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1469 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1230399003-8600-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1469-done) by emacsbugs.donarmstrong.com; 27 Dec 2008 17:24:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.0 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBRHOpPn007369 for <1469-done@emacsbugs.donarmstrong.com>; Sat, 27 Dec 2008 09:24:52 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBRHOeXa017705; Sat, 27 Dec 2008 09:24:40 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBRHOeT3019216; Sat, 27 Dec 2008 09:24:40 -0800 (PST) Date: Sat, 27 Dec 2008 09:24:40 -0800 (PST) Message-Id: <200812271724.mBRHOeT3019216@mothra.ics.uci.edu> From: Dan Nicolaescu To: Nicholas Maniscalco Cc: 1469-done@debbugs.gnu.org Subject: Re: bug#1469: patch for term.el regression when dealing with long lines under bash References: <495548B0.4060505@maniscalco.com> X-Debbugs-No-Ack: yes In-Reply-To: <495548B0.4060505@maniscalco.com> (Nicholas Maniscalco's message of "Fri, 26 Dec 2008 13:12:16 -0800") Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBRHOeXa017705 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Nicholas Maniscalco writes: > (I sent this to the wrong list earlier. Resending to, hopefully, the > right place this time.) > > Here's a patch for bug#1469 (term.el regression when dealing with long > lines under bash). > > * term.el (term-emulate-terminal): Decode substring just prior to > inserting it. (Bug#1469) > > bug#1469 was introduced while fixing bug#1006. I verified this patch > against the repro steps in bug#1006 to make sure I haven't made a > regression. > > Can someone please review? I'd appreciate any feedback. Thanks, I checked this in. ------------=_1230399003-8600-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyril@bouthors.org Tue Dec 2 06:00:27 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Dec 2008 14:00:27 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2E0N2J020413 for ; Tue, 2 Dec 2008 06:00:25 -0800 Received: from mx10.gnu.org ([199.232.76.166]:51996) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L7VP6-0002Wo-MZ for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 08:35:04 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L7VPS-00016L-ND for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 08:35:30 -0500 Received: from smtp1.hi-media-techno.com ([195.158.241.85]:39218) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7VPS-00015d-8c for emacs-pretest-bug@gnu.org; Tue, 02 Dec 2008 08:35:26 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp1.hi-media-techno.com (Postfix) with ESMTP id 4AF7D93DEC; Tue, 2 Dec 2008 14:35:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp1.backbone.hi-media-techno.com Received: from smtp1.hi-media-techno.com ([127.0.0.1]) by localhost (smtp1.backbone.hi-media-techno.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nu+hkGQpbnjT; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Received: from mail1.hi-media-techno.com (unknown [192.168.27.12]) by smtp1.hi-media-techno.com (Postfix) with ESMTP id BCB1493D97; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.hi-media-techno.com (Postfix) with ESMTP id B7BA76D87ED; Tue, 2 Dec 2008 14:35:18 +0100 (CET) X-Virus-Scanned: amavisd-new at Received: from mail1.hi-media-techno.com ([127.0.0.1]) by localhost (mail1.hi-media-techno.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DuIqMz62Hwoo; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Received: from [172.16.44.113] (LRouen-152-81-16-231.w80-13.abo.wanadoo.fr [80.13.207.231]) by mail1.hi-media-techno.com (Postfix) with ESMTP id 408BB6D87E2; Tue, 2 Dec 2008 14:35:18 +0100 (CET) Message-ID: <49353995.7070605@bouthors.org> Date: Tue, 02 Dec 2008 14:35:17 +0100 From: Cyril Bouthors Organization: Hi Media User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org, Dimitri Fontaine Subject: term.el regression when dealing with long lines under bash Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) term-mode is no longer able to handle long lines correctly with bash under emacs-snapshot as it used to work under emacs22. When a line wider than $COLUMNS+2 is displayed on the terminal, the cursor is locked on the current line and does not move anymore until /usr/bin/reset is ran. I've been able to reproduce this bug when running bash, psql or csh but not with zsh nor ksh. I haven't been able to reproduce it under emacs22 at all. Here's a short procedure to reproduce the bug: - Start Emacs: emacs-snapshot -Q - Start bash under term-mode: `M-: (term "/bin/bash") RET' - Display a long line under bash: width=$(($COLUMNS+2)) for a in $(seq $width); do echo -n X; done; echo - Try to type any command on the terminal and you'll see the strange cursor behaviour Long lines typically happen on a daily basis when your are reading logfiles, running SQL queries, etc. I hope I provided you with enough information. In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-29 on elegiac, modified by Debian (emacs-snapshot package, version 1:20081129-1) Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Term Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-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-d M-x t e r m b a s h t c s c s h / b i . / b u g / l o n g - l i n e s . s h C-d M-x C-g C-d M-x b u r e p o r t - e m a c s Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit # -- Cyril Bouthors ------------=_1230399003-8600-1-- From monnier@iro.umontreal.ca Tue Dec 30 18:16:47 2008 Received: (at control) by emacsbugs.donarmstrong.com; 31 Dec 2008 02:16:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBV2GebO027900 for ; Tue, 30 Dec 2008 18:16:42 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQNACxlWklLd+aG/2dsb2JhbACBbJMShU6yMYZEgWc X-IronPort-AV: E=Sophos;i="4.36,305,1228107600"; d="scan'208";a="31628470" Received: from 75-119-230-134.dsl.teksavvy.com (HELO ceviche.home) ([75.119.230.134]) by ironport2-out.teksavvy.com with ESMTP; 30 Dec 2008 21:16:34 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 2C933B41B5; Tue, 30 Dec 2008 21:16:35 -0500 (EST) From: Stefan Monnier Subject: Re: bug#1699: patch for bug#1469 (term.el regression when dealing with long lines under bash) Message-ID: References: <495309B4.9030506@maniscalco.com> Date: Tue, 30 Dec 2008 21:16:35 -0500 In-Reply-To: <495309B4.9030506@maniscalco.com> (Nicholas Maniscalco's message of "Wed, 24 Dec 2008 20:19:00 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: undisclosed-recipients:; merge 1699 1469 tags 1699 +patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 20:09:27 2010 Received: (at control) by debbugs.gnu.org; 23 Jan 2010 01:09:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYUVD-0006L6-HL for submit@debbugs.gnu.org; Fri, 22 Jan 2010 20:09:27 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYUVC-0006Kx-0L for control@debbugs.gnu.org; Fri, 22 Jan 2010 20:09:26 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NYUV2-0004vG-2Z; Fri, 22 Jan 2010 20:09:17 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19290.19514.527653.352190@fencepost.gnu.org> Date: Fri, 22 Jan 2010 20:09:14 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: blue X-Ran: _"xOmPZwx2'.BETp,VqI$L:98Vqp\A8F&H$XkeI:K!TP)C%cf#|q_nWix?[^a%kpt=O[g8 X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) unarchive 1469 unmerge 1469