From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#31193: 26.1; error in `term-down' after window configuration change Date: Wed, 18 Apr 2018 16:23:37 +1200 Message-ID: <77839205bfe30db7b7a50428065d3714@webmail.orcon.net.nz> References: <5480f11459b73e4cf0aabe12da5ce675@webmail.orcon.net.nz> <87sh7ut199.fsf@gmail.com> <7063321d07dcc711cc24699e095dfb9d@webmail.orcon.net.nz> <87muy1tm0i.fsf@gmail.com> <032fbfe050521617bf7b8c9a76479a16@webmail.orcon.net.nz> <87h8o9tglt.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1524025330 18154 195.159.176.226 (18 Apr 2018 04:22:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 04:22:10 +0000 (UTC) User-Agent: Orcon Webmail Cc: 31193@debbugs.gnu.org, bug-gnu-emacs To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 18 06:22:05 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 1f8ebd-0004bx-K2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 06:22:05 +0200 Original-Received: from localhost ([::1]:56283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8edi-0006jd-OU for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 00:24:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8eda-0006hl-CI for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 00:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8edW-0002ED-B5 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 00:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8edW-0002E1-8K for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 00:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8edW-00042o-1u for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 00:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2018 04:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 31193-submit@debbugs.gnu.org id=B31193.152402542215518 (code B ref 31193); Wed, 18 Apr 2018 04:24:02 +0000 Original-Received: (at 31193) by debbugs.gnu.org; 18 Apr 2018 04:23:42 +0000 Original-Received: from localhost ([127.0.0.1]:58350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8edC-00042E-5T for submit@debbugs.gnu.org; Wed, 18 Apr 2018 00:23:42 -0400 Original-Received: from smtp-2.orcon.net.nz ([60.234.4.43]:34731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8edA-000426-Af for 31193@debbugs.gnu.org; Wed, 18 Apr 2018 00:23:41 -0400 Original-Received: from [10.253.37.70] (port=57615 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1f8ed7-000424-R8; Wed, 18 Apr 2018 16:23:38 +1200 Original-Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 18 Apr 2018 16:23:37 +1200 In-Reply-To: <87h8o9tglt.fsf@gmail.com> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:145549 Archived-At: On 2018-04-18 14:04, Noam Postavsky wrote: >> term-emulate-terminal(# "\015\033[K$ >> \015\n\032//home/phil/emacs/26/26.1rc1/usr/local/share/emacs/26.1/lisp\015\n") > > Hmm, yeah, it looks like your bash adds a "\r\n" (\015 is \r) after the > prompt, while mine doesn't. Although, wouldn't that extra \n leave > your > cursor one row below the prompt? In practice the carriage return shunts the cursor back to the start of the prompt that I was already at, and then gets 'stuck' there -- no new line is created. Typing RET again triggers the same error (with no change to the buffer), but as soon as I start typing other keys, functionality is restored. > I also don't get the \032/\r\n unless I do a 'cd'. I observe that whenever I execute a shell command (or just enter a blank line) and then trigger the error, I get this the first time: term-emulate-terminal(# "\015\033[K$\015\n") but repeatedly re-triggering the error gives me this every time: term-emulate-terminal(# "\015\033[K$\015\n\032/\015\n$") (until I next enter a command or blank line.) The matches the directory tracking -- I can affect it with cd. (but setting default-directory does not affect it).