From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12354: 24.2; garbage inserted at the beginning of the buffer even when xterm-extra-capabilities is t Date: Tue, 30 Jun 2015 10:04:39 -0400 Message-ID: References: <87txvcen36.fsf@xvii.vinc17.org> <20120905184424.GQ4846@xvii.vinc17.org> <20150527112723.GA23516@ypig.lip.ens-lyon.fr> <20150629023519.GA7712@xvii.vinc17.org> <20150629134704.GD32461@ypig.lip.ens-lyon.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435673134 18559 80.91.229.3 (30 Jun 2015 14:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 14:05:34 +0000 (UTC) Cc: 12354@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 16:05:16 2015 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 1Z9wA0-0002HZ-Gy for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 16:05:16 +0200 Original-Received: from localhost ([::1]:47178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9w9z-0008Mc-MV for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 10:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9w9r-0008Jy-E3 for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9w9n-00044W-7H for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:05:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9w9n-00043Y-4i for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9w9m-0004Ns-Ml for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jun 2015 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12354 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12354-submit@debbugs.gnu.org id=B12354.143567308516825 (code B ref 12354); Tue, 30 Jun 2015 14:05:02 +0000 Original-Received: (at 12354) by debbugs.gnu.org; 30 Jun 2015 14:04:45 +0000 Original-Received: from localhost ([127.0.0.1]:34565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9w9U-0004NH-JP for submit@debbugs.gnu.org; Tue, 30 Jun 2015 10:04:44 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:41905) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9w9S-0004N9-NV for 12354@debbugs.gnu.org; Tue, 30 Jun 2015 10:04:43 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t5UE4eRZ000327; Tue, 30 Jun 2015 10:04:40 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E76A56625D; Tue, 30 Jun 2015 10:04:39 -0400 (EDT) In-Reply-To: <20150629134704.GD32461@ypig.lip.ens-lyon.fr> (Vincent Lefevre's message of "Mon, 29 Jun 2015 15:47:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5353=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5353> : inlines <3303> : streams <1463976> : uri <1973003> 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:104531 Archived-At: >> The timeout is present because we prefer having garbage in those >> (presumably rare) cases where the terminal answers too late, over having >> Emacs hang forever (tho it's not a hard-hang) when the terminal doesn't >> understand the request. > Won't C-g have any effect? As I said, it's not a hard hang. Even just hitting any key should get you out of it (but the key is eaten along the way). > Perhaps, in case of timeout and some data have been written to the > buffer before a cursor move, Emacs should warn about this when the > user saves the buffer (or perhaps earlier). When this happens, there > are two possibilities: If you look at the code, you'll hopefully see that there are 2 code paths (one synchronous with a timeout, and one asynchronous), and a comment saying that the two should be merged. I.e. when using the synchronous path, after hitting the timeout, we should switch to the async path. Or simply just "always" use the async path. Stefan