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: Sun, 28 Jun 2015 21:01:02 -0400 Message-ID: References: <87txvcen36.fsf@xvii.vinc17.org> <20120905184424.GQ4846@xvii.vinc17.org> <20150527112723.GA23516@ypig.lip.ens-lyon.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435539780 24607 80.91.229.3 (29 Jun 2015 01:03:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 01:03:00 +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 Mon Jun 29 03:02:51 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 1Z9NTG-0008CR-Gt for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 03:02:50 +0200 Original-Received: from localhost ([::1]:40256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9NTF-00073a-Jd for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 21:02:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9NSY-000607-Cg for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 21:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9NSV-0003Dv-0g for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 21:02:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9NSU-0003Dp-TQ for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 21:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9NSU-0001er-FT for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 21:02: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: Mon, 29 Jun 2015 01:02: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.14355396746282 (code B ref 12354); Mon, 29 Jun 2015 01:02:02 +0000 Original-Received: (at 12354) by debbugs.gnu.org; 29 Jun 2015 01:01:14 +0000 Original-Received: from localhost ([127.0.0.1]:60664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9NRg-0001dD-TK for submit@debbugs.gnu.org; Sun, 28 Jun 2015 21:01:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9NRc-0001ce-Ii for 12354@debbugs.gnu.org; Sun, 28 Jun 2015 21:01:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CtCwA731xV/2cGNJ1cgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMFCws0BwsUGA0kiDcIzyMBAQEBBgEBAQEeizqFBQeELQWfF5IUg1kjgjuBWSKCeAEBAQ X-IPAS-Result: A0CtCwA731xV/2cGNJ1cgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMFCws0BwsUGA0kiDcIzyMBAQEBBgEBAQEeizqFBQeELQWfF5IUg1kjgjuBWSKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="128741194" Original-Received: from 157-52-6-103.cpe.teksavvy.com (HELO pastel.home) ([157.52.6.103]) by ironport2-out.teksavvy.com with ESMTP; 28 Jun 2015 21:01:02 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 512DA614BA; Sun, 28 Jun 2015 21:01:02 -0400 (EDT) In-Reply-To: <20150527112723.GA23516@ypig.lip.ens-lyon.fr> (Vincent Lefevre's message of "Wed, 27 May 2015 13:27:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:104454 Archived-At: >> > By experiment, -eval is processed too late to affect the relevant >> > portion of start-up. Try putting the setting in .emacs >> I had >> '(xterm-extra-capabilities (quote (modifyOtherKeys reportBackground))) >> in the custom variables, but got the same problem. > The .emacs is executed too late as well: That's not my experience: I added (message "xterm-extra-capabilities = %S" xterm-extra-capabilities) right before the `if' and it does give me the value I set in my ~/.emacs. > if I introduce an error in the > code below (e.g. zzz before the first when), I can see it reported. That seems right as well: the code after (xterm--query "\e[>0c" ...) is run only if (eq xterm-extra-capabilities 'check) is false, i.e. only if your ~/.emacs code was run. > So, the above (eq xterm-extra-capabilities 'check) test seems to be > useless, and there should be a way to disable it. It works for my test (which is "emacs -nw"). > IMHO, this query is ugly and should be removed entirely in favor of > checking the environment, in addition to user side settings. If the > issue is that not all xterm's behave in the same way because of new > features, you can test the XTERM_VERSION environment variable. echo "$XTERM_VERSION" returns the empty string for me (running in an xterm, under Debian testing). It's just one datapoint, maybe there are cases where it works, but at least not for my own usecase. Stefan