From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andries E. Brouwer" Newsgroups: gmane.emacs.bugs Subject: bug#14491: emacs -nw doesn't always restore the terminal screen Date: Fri, 2 Aug 2013 18:56:05 +0200 Message-ID: <20130802165603.GA13204@jp> References: <20130528182159.GA22032@jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1375462639 13003 80.91.229.3 (2 Aug 2013 16:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Aug 2013 16:57:19 +0000 (UTC) To: 14491@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 02 18:57:20 2013 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 1V5IfH-0007b5-Sq for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Aug 2013 18:57:20 +0200 Original-Received: from localhost ([::1]:37271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5IfH-0006Ry-Jw for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Aug 2013 12:57:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5If7-0006Nk-7b for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2013 12:57:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5Iez-00040Z-TW for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2013 12:57:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5Iez-00040V-Qx for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2013 12:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V5Iez-0003vK-Jx for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2013 12:57:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20130528182159.GA22032@jp> Resent-From: "Andries E. Brouwer" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Aug 2013 16:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14491 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Cc: 14491@debbugs.gnu.org Original-Received: via spool by 14491-submit@debbugs.gnu.org id=B14491.137546258215013 (code B ref 14491); Fri, 02 Aug 2013 16:57:01 +0000 Original-Received: (at 14491) by debbugs.gnu.org; 2 Aug 2013 16:56:22 +0000 Original-Received: from localhost ([127.0.0.1]:36683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V5IeL-0003u3-OI for submit@debbugs.gnu.org; Fri, 02 Aug 2013 12:56:22 -0400 Original-Received: from fester.cwi.nl ([192.16.191.27]:48978) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V5IeI-0003tb-FY for 14491@debbugs.gnu.org; Fri, 02 Aug 2013 12:56:19 -0400 Original-Received: from fester.cwi.nl (fester.cwi.nl [192.16.191.27]) by fester.cwi.nl with ESMTP id r72GuCbb011175 for ; Fri, 2 Aug 2013 18:56:12 +0200 Original-Received: from localhost (a80-101-109-117.adsl.xs4all.nl [80.101.109.117]) (authenticated bits=0) by fester.cwi.nl (8.14.4/8.12.3) with ESMTP id r72GuBEr011173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 2 Aug 2013 18:56:11 +0200 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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: 140.186.70.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:76899 Archived-At: Two months ago I wrote > Sometimes after exiting "emacs -nw" the cursor is left > in the middle of a former terminal buffer. > It feels like a timing issue. Yesterday I had a different emacs problem (utf-8 pasted into an emacs -nw buffer was corrupted when preceded by an ESC-q command, for any q), and debugging showed that the problem was not with emacs but with luit, a layer that sits between xterm and emacs -nw. Since luit parses its input and recognizes escape sequences, it is in a state where it truncates UTF-8 when it thinks it is reading an ISO 2022 escape sequence. OK - so emacs -nw under luit has some strange corruption issues. Returning to this old problem, I now conjecture that also that was caused by luit. It is somewhat difficult to reproduce, but a moment ago I did reproduce it once with emacs -nw under luit, and saw no problems without luit. Perhaps the problem has been solved and no emacs fixes are required. Andries