From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bruno CHARRON Newsgroups: gmane.emacs.bugs Subject: bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline Date: Fri, 2 Nov 2018 03:11:09 +0900 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1541097477 31462 195.159.176.226 (1 Nov 2018 18:37:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2018 18:37:57 +0000 (UTC) To: 33230@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 19:37:53 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIHqq-00085a-IN for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 19:37:52 +0100 Original-Received: from localhost ([::1]:43548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIHsx-0007Kv-1V for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 14:40:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIHkH-000687-W8 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIHkE-0001ZN-PQ for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54524) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIHkE-0001ZE-LL for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIHkE-000054-Eg for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bruno CHARRON Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Nov 2018 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33230 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.154109704032739 (code B ref -1); Thu, 01 Nov 2018 18:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2018 18:30:40 +0000 Original-Received: from localhost ([127.0.0.1]:58780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIHjs-0008Vz-0I for submit@debbugs.gnu.org; Thu, 01 Nov 2018 14:30:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIHRy-00080A-HC for submit@debbugs.gnu.org; Thu, 01 Nov 2018 14:12:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIHRl-0005Q9-QH for submit@debbugs.gnu.org; Thu, 01 Nov 2018 14:12:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIHRi-0005O3-KV for submit@debbugs.gnu.org; Thu, 01 Nov 2018 14:11:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIHRh-0000Rk-Lg for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:11:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIHRc-0005It-PO for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:11:53 -0400 Original-Received: from mx1.polytechnique.org ([129.104.30.34]:43127) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIHRc-0005Eu-HM for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 14:11:48 -0400 Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 648D95605F8 for ; Thu, 1 Nov 2018 19:11:37 +0100 (CET) Original-Received: by mail-wr1-f48.google.com with SMTP id 74-v6so12759265wrb.13 for ; Thu, 01 Nov 2018 11:11:37 -0700 (PDT) X-Gm-Message-State: AGRZ1gIEgw+8yaTbh3jyQoZ1fZy3uLEJHUfNtw4f1NmcnobaC+8aj51a /1lBCp3P+hxVxUkpsRTybUXKzdwrpmjpVcGwkb4= X-Google-Smtp-Source: AJdET5fdSnpyQ4+x+FYykxPLrG6nsW1wP6j8myjOPi56LPTspfRIa6SuSaVCWM4/51RsY00P8PAIq7PwePfm/lVzDCc= X-Received: by 2002:adf:b612:: with SMTP id f18-v6mr6946703wre.120.1541095896759; Thu, 01 Nov 2018 11:11:36 -0700 (PDT) X-Gmail-Original-Message-ID: X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Nov 1 19:11:38 2018 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 01 Nov 2018 14:30:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151908 Archived-At: Running 'emacs -Q', I load the latest 'term.el' in master (commit bd36ab5), then set term-suppress-hard-newline to 't' and launch 'term' with zsh as shell. When typing a command which overflows the screen width, the shell sends a "soft-wrap" after typing a character on the last column, say 'x ^M^[[K' after typing 'x' but 'term' does not wrap, it continues the same row. Then when hitting backspace, the shell asks to go up a row '^[[A' and the 'term' state becomes inconsistent as it did not go down before. The reason seems to be that at line 2912 (term.el, commit bd36ab5), 'x ' is inserted which makes the cursor go one column past the edge of the screen and the wrapping at line 2936 only checks that the cursor is exactly at the edge of the screen. When term-suppress-hard-newline is nil, the wrapping is properly done thanks to the '>' condition at line 2903. In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-05-29 built on lgw01-amd64-038 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.5 LTS