From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 05:33:46 2015 Received: (at submit) by debbugs.gnu.org; 17 Apr 2015 09:33:46 +0000 Received: from localhost ([127.0.0.1]:58620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj2eg-0001pb-8z for submit@debbugs.gnu.org; Fri, 17 Apr 2015 05:33:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38830) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj2ee-0001pO-3x for submit@debbugs.gnu.org; Fri, 17 Apr 2015 05:33:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yj2eX-00051k-TT for submit@debbugs.gnu.org; Fri, 17 Apr 2015 05:33:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yj2eX-00051g-QV for submit@debbugs.gnu.org; Fri, 17 Apr 2015 05:33:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yj2eW-0003xp-Vf for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 05:33:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yj2eT-00051C-PF for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 05:33:36 -0400 Received: from loki.jorgenschaefer.de ([87.230.15.51]:56038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yj2eT-000511-Im for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 05:33:33 -0400 Received: by loki.jorgenschaefer.de (Postfix, from userid 1000) id 63ABD2002E3; Fri, 17 Apr 2015 11:33:32 +0200 (CEST) From: Jorgen Schaefer To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Date: Fri, 17 Apr 2015 11:33:32 +0200 Message-ID: <87twwfnloz.fsf@loki.jorgenschaefer.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hello! Since a few days (I recompiled Emacs the first time on Wed 15th or Thu 16th, not sure when this was introduced before that) I see terminal glyph garbage on certain deletion operations in emacs -nw. A reliable way to trigger this for me is M-DEL, though many deletion operations cause spurious data to be displayed. C-l will remove said glyphs, and neither scrolling, normal editing nor indeed single-character deletion will trigger this bug. This is in a Gnome Terminal with TERM=xterm, sshing to a server, and Emacs started in a screen with TERM=screen. The Emacs built from ref 0465c9dd (last Apr 7th commit) does not exhibit this behavior. I know from at least one other person that recent builds with emacs -nw work fine for them, so this is likely going to be tricky to debug. I'm happy to do any testing needed. Thanks! Jorgen Configured using: `configure --without-x' Configured features: SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LC_ALL: value of $LC_COLLATE: de_DE.UTF-8 value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: POSIX value of $LC_MONETARY: POSIX value of $LC_NUMERIC: POSIX value of $LC_TIME: POSIX value of $LANG: POSIX locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 08:26:21 2015 Received: (at 20356) by debbugs.gnu.org; 17 Apr 2015 12:26:21 +0000 Received: from localhost ([127.0.0.1]:58678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj5Lg-0008Mk-GB for submit@debbugs.gnu.org; Fri, 17 Apr 2015 08:26:21 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:58170) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj5Ld-0008MK-DR for 20356@debbugs.gnu.org; Fri, 17 Apr 2015 08:26:18 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NMY00500A0OG300@a-mtaout20.012.net.il> for 20356@debbugs.gnu.org; Fri, 17 Apr 2015 15:26:11 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMY005J5AJM38A0@a-mtaout20.012.net.il>; Fri, 17 Apr 2015 15:26:11 +0300 (IDT) Date: Fri, 17 Apr 2015 15:26:05 +0300 From: Eli Zaretskii Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master In-reply-to: <87twwfnloz.fsf@loki.jorgenschaefer.de> X-012-Sender: halo1@inter.net.il To: Jorgen Schaefer Message-id: <83r3rj7xgi.fsf@gnu.org> References: <87twwfnloz.fsf@loki.jorgenschaefer.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Jorgen Schaefer > Date: Fri, 17 Apr 2015 11:33:32 +0200 > > Since a few days (I recompiled Emacs the first time on Wed 15th or Thu > 16th, not sure when this was introduced before that) I see terminal > glyph garbage on certain deletion operations in emacs -nw. > > A reliable way to trigger this for me is M-DEL, though many deletion > operations cause spurious data to be displayed. C-l will remove said > glyphs, and neither scrolling, normal editing nor indeed > single-character deletion will trigger this bug. > > This is in a Gnome Terminal with TERM=xterm, sshing to a server, and > Emacs started in a screen with TERM=screen. > > The Emacs built from ref 0465c9dd (last Apr 7th commit) does not exhibit > this behavior. > > I know from at least one other person that recent builds with emacs -nw > work fine for them, so this is likely going to be tricky to debug. I'm > happy to do any testing needed. Can you "git bisect" to find the offending commit, please? TIA From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 10:39:19 2015 Received: (at 20356) by debbugs.gnu.org; 17 Apr 2015 14:39:19 +0000 Received: from localhost ([127.0.0.1]:59106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj7QN-0005QQ-As for submit@debbugs.gnu.org; Fri, 17 Apr 2015 10:39:19 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47491) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj7QM-0005QH-55 for 20356@debbugs.gnu.org; Fri, 17 Apr 2015 10:39:18 -0400 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 t3HEdGvs006270; Fri, 17 Apr 2015 10:39:17 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 6364C6610A; Fri, 17 Apr 2015 10:39:20 -0400 (EDT) From: Stefan Monnier To: Jorgen Schaefer Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Message-ID: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Fri, 17 Apr 2015 10:39:20 -0400 In-Reply-To: <87twwfnloz.fsf@loki.jorgenschaefer.de> (Jorgen Schaefer's message of "Fri, 17 Apr 2015 11:33:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5279=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5279> : inlines <2743> : streams <1424007> : uri <1909133> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > A reliable way to trigger this for me is M-DEL, though many deletion > operations cause spurious data to be displayed. C-l will remove said This is likely coming from the "OSC 52" SetSelection support recently added and which your gnome-terminal apparently doesn't support yet term/xterm.el doesn't realize it. Could you add some debug `message's to check that terminal-init-xterm-activate-set-selection is indeed called (it apparently shouldn't). The problem is likely in xterm--version-handler to add also some `message's there to see what `version' number is sent by gnome-terminal (and why the code doesn't set it back to 200)? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 11:32:59 2015 Received: (at 20356) by debbugs.gnu.org; 17 Apr 2015 15:32:59 +0000 Received: from localhost ([127.0.0.1]:59164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj8GJ-0007dc-0c for submit@debbugs.gnu.org; Fri, 17 Apr 2015 11:32:59 -0400 Received: from loki.jorgenschaefer.de ([87.230.15.51]:53573) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj8GG-0007dS-RL for 20356@debbugs.gnu.org; Fri, 17 Apr 2015 11:32:57 -0400 Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id E71BC2002E4 for <20356@debbugs.gnu.org>; Fri, 17 Apr 2015 17:32:54 +0200 (CEST) Received: by wgyo15 with SMTP id o15so117195701wgy.2 for <20356@debbugs.gnu.org>; Fri, 17 Apr 2015 08:32:54 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.77.44 with SMTP id p12mr7262230wjw.1.1429284774490; Fri, 17 Apr 2015 08:32:54 -0700 (PDT) Received: by 10.27.52.194 with HTTP; Fri, 17 Apr 2015 08:32:54 -0700 (PDT) In-Reply-To: <83r3rj7xgi.fsf@gnu.org> References: <87twwfnloz.fsf@loki.jorgenschaefer.de> <83r3rj7xgi.fsf@gnu.org> Date: Fri, 17 Apr 2015 17:32:54 +0200 Message-ID: Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master From: =?UTF-8?Q?Jorgen_Sch=C3=A4fer?= To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Fri, Apr 17, 2015 at 2:26 PM, Eli Zaretskii wrote: > > Can you "git bisect" to find the offending commit, please? Took a while, but here we go: 2b2fd3965f8c096b39de7e0418d37433269a1dce is the first bad commit. I can confirm that redefining xterm--set-selection to a no-op fixes the problem. (terminal-parameter nil 'terminal-initted) => terminal-init-screen Regards, Jorgen From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 11:32:38 2015 Received: (at control) by debbugs.gnu.org; 17 Apr 2015 15:32:39 +0000 Received: from localhost ([127.0.0.1]:59161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj8Fy-0007cj-I0 for submit@debbugs.gnu.org; Fri, 17 Apr 2015 11:32:38 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:41934 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj8Fx-0007cZ-2S for control@debbugs.gnu.org; Fri, 17 Apr 2015 11:32:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Yj8Fw-0004kf-ON for control@debbugs.gnu.org; Fri, 17 Apr 2015 11:32:36 -0400 Date: Fri, 17 Apr 2015 11:32:36 -0400 Message-Id: Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 19759 by 20356 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 12:21:16 2015 Received: (at 20356) by debbugs.gnu.org; 17 Apr 2015 16:21:16 +0000 Received: from localhost ([127.0.0.1]:59241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj912-00047k-3H for submit@debbugs.gnu.org; Fri, 17 Apr 2015 12:21:16 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:58669) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yj90w-00047C-M4 for 20356@debbugs.gnu.org; Fri, 17 Apr 2015 12:21:15 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NMY00P00KJO5700@mtaout24.012.net.il> for 20356@debbugs.gnu.org; Fri, 17 Apr 2015 19:12:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMY00LQEL0M8X40@mtaout24.012.net.il>; Fri, 17 Apr 2015 19:12:23 +0300 (IDT) Date: Fri, 17 Apr 2015 19:20:54 +0300 From: Eli Zaretskii Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master In-reply-to: X-012-Sender: halo1@inter.net.il To: Jorgen =?utf-8?Q?Sch=C3=A4fer?= Message-id: <83fv7y915l.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87twwfnloz.fsf@loki.jorgenschaefer.de> <83r3rj7xgi.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Fri, 17 Apr 2015 17:32:54 +0200 > From: Jorgen Schäfer > Cc: 20356@debbugs.gnu.org > > On Fri, Apr 17, 2015 at 2:26 PM, Eli Zaretskii wrote: > > > > Can you "git bisect" to find the offending commit, please? > > Took a while, but here we go: > > 2b2fd3965f8c096b39de7e0418d37433269a1dce is the first bad commit. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 04:24:59 2015 Received: (at 20356) by debbugs.gnu.org; 19 Apr 2015 08:24:59 +0000 Received: from localhost ([127.0.0.1]:60426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjkXD-0003Gl-Cr for submit@debbugs.gnu.org; Sun, 19 Apr 2015 04:24:59 -0400 Received: from fely.am-1.org ([78.47.74.50]:40031) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjkXB-0003Gc-38 for 20356@debbugs.gnu.org; Sun, 19 Apr 2015 04:24:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=wA/CHPvf2+dm3DYg++oHzyv/YC34980L+MgMs8IXlR0=; b=U2944LMLhEssdfrbVDWHiy/HjTaeCeMeclqSRrVt+k95zTh2lkV3YwaWqNer1o/4IxyOZtpCUP9UsGf/UcpnE8rjWy0Ad+n2ra6m62ir9LJaJlvcn9sFC3HvU0+U7JWSFNua175o6tEy7PlcTVrTq9VYZ//bQ3ys36PXpmJGjK8=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YjkX8-0000i6-7m for 20356@debbugs.gnu.org; Sun, 19 Apr 2015 08:24:54 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YjkX1-0002no-32 for 20356@debbugs.gnu.org; Sun, 19 Apr 2015 15:24:47 +0700 From: Ivan Shmakov To: 20356@debbugs.gnu.org Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master References: <87twwfnloz.fsf@loki.jorgenschaefer.de> <83r3rj7xgi.fsf@gnu.org> Mail-Followup-To: 20356@debbugs.gnu.org Date: Sun, 19 Apr 2015 08:24:45 +0000 In-Reply-To: ("Jorgen \=\?utf-8\?Q\?Sch\=C3\=A4fer\=22's\?\= message of "Fri, 17 Apr 2015 17:32:54 +0200") Message-ID: <87zj64plte.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 20356 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Jorgen Sch=C3=A4fer writes: [=E2=80=A6] > I can confirm that redefining xterm--set-selection to a no-op fixes > the problem. As there=E2=80=99s no possible way =E2=80=93 in my setup =E2=80=93 to /rel= iably/ detect OSC 52 support, and as I don=E2=80=99t need the feature anyway, I=E2=80=99= ve simply disabled it with (setq select-enable-clipboard nil). My guess is that a new etc/PROBLEMS entry may turn to be useful to others. [=E2=80=A6] --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 22:08:22 2015 Received: (at 20356) by debbugs.gnu.org; 20 Apr 2015 02:08:23 +0000 Received: from localhost ([127.0.0.1]:32805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yk18I-0007Mv-Ks for submit@debbugs.gnu.org; Sun, 19 Apr 2015 22:08:22 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51883) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yk18F-0007Ml-GS for 20356@debbugs.gnu.org; Sun, 19 Apr 2015 22:08:20 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3K28HxG020375; Sun, 19 Apr 2015 22:08:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id 7A786282C; Sun, 19 Apr 2015 22:08:17 -0400 (EDT) From: Stefan Monnier To: 20356@debbugs.gnu.org Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Message-ID: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> <83r3rj7xgi.fsf@gnu.org> <87zj64plte.fsf@violet.siamics.net> Date: Sun, 19 Apr 2015 22:08:17 -0400 In-Reply-To: <87zj64plte.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sun, 19 Apr 2015 08:24:45 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5281=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5281> : inlines <2753> : streams <1425365> : uri <1910928> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20356 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) >>>>> Jorgen Sch=C3=A4fer writes: >> I can confirm that redefining xterm--set-selection to a no-op fixes >> the problem. But could you do the tests I requested so that it gets disabled automatically by testing the terminal? >>>>> "Ivan" =3D=3D Ivan Shmakov writes: > As there=E2=80=99s no possible way =E2=80=93 in my setup =E2=80=93 to /r= eliably/ detect > OSC 52 support, Why not? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 08:26:25 2015 Received: (at 20356) by debbugs.gnu.org; 24 Apr 2015 12:26:25 +0000 Received: from localhost ([127.0.0.1]:38445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ylcga-0006CA-MH for submit@debbugs.gnu.org; Fri, 24 Apr 2015 08:26:25 -0400 Received: from loki.jorgenschaefer.de ([87.230.15.51]:47449) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlcgX-0006C0-9H for 20356@debbugs.gnu.org; Fri, 24 Apr 2015 08:26:22 -0400 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id E4C29200F2D for <20356@debbugs.gnu.org>; Fri, 24 Apr 2015 14:26:19 +0200 (CEST) Received: by wgyo15 with SMTP id o15so48819982wgy.2 for <20356@debbugs.gnu.org>; Fri, 24 Apr 2015 05:26:18 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.61.133 with SMTP id p5mr15731568wjr.132.1429878378172; Fri, 24 Apr 2015 05:26:18 -0700 (PDT) Received: by 10.27.52.194 with HTTP; Fri, 24 Apr 2015 05:26:18 -0700 (PDT) In-Reply-To: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Fri, 24 Apr 2015 14:26:18 +0200 Message-ID: Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master From: =?UTF-8?Q?Jorgen_Sch=C3=A4fer?= To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Fri, Apr 17, 2015 at 4:39 PM, Stefan Monnier wrote: >> A reliable way to trigger this for me is M-DEL, though many deletion >> operations cause spurious data to be displayed. C-l will remove said > > This is likely coming from the "OSC 52" SetSelection support > recently added and which your gnome-terminal apparently doesn't support > yet term/xterm.el doesn't realize it. > > Could you add some debug `message's to check that > terminal-init-xterm-activate-set-selection is indeed called (it > apparently shouldn't). It is indeed being called. > The problem is likely in xterm--version-handler > to add also some `message's there to see what `version' number is sent > by gnome-terminal (and why the code doesn't set it back to 200)? The value of `str` after the first while loop is "83;40100;0" here. This is what screen reports, and version is set to 240 in this case. Later, it calls `terminal-init-xterm-activate-set-selection` if version is greater than 203. Commenting this out fixes things for me again. Regards, Jorgen From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 10:07:59 2015 Received: (at 20356) by debbugs.gnu.org; 24 Apr 2015 14:07:59 +0000 Received: from localhost ([127.0.0.1]:38824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YleGo-0000C4-9x for submit@debbugs.gnu.org; Fri, 24 Apr 2015 10:07:58 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:60073) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YleGh-0000Bs-LU for 20356@debbugs.gnu.org; Fri, 24 Apr 2015 10:07:52 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3OE7kCn030081; Fri, 24 Apr 2015 10:07:46 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E836BAE113; Fri, 24 Apr 2015 10:07:46 -0400 (EDT) From: Stefan Monnier To: Jorgen =?windows-1252?Q?Sch=E4fer?= Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Message-ID: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Fri, 24 Apr 2015 10:07:46 -0400 In-Reply-To: ("Jorgen =?windows-1252?Q?Sch=E4fer=22's?= message of "Fri, 24 Apr 2015 14:26:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5286=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5286> : inlines <2791> : streams <1427834> : uri <1914723> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > The value of `str` after the first while loop is "83;40100;0" > here. This is what screen reports, and version is set to 240 in this Wait, so you're not just running within gnome-terminal, but within screen within gnome-terminal? I guess that's the crux of the matter. The code actually needs support from the actual terminal (i.e gnome-terminal in this case), but the version check is only told about screen's version. Hmm... Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 10:16:42 2015 Received: (at 20356) by debbugs.gnu.org; 24 Apr 2015 14:16:42 +0000 Received: from localhost ([127.0.0.1]:38836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlePG-0000PH-86 for submit@debbugs.gnu.org; Fri, 24 Apr 2015 10:16:42 -0400 Received: from loki.jorgenschaefer.de ([87.230.15.51]:50171) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlePA-0000P4-AD for 20356@debbugs.gnu.org; Fri, 24 Apr 2015 10:16:36 -0400 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id BC3BA200F30 for <20356@debbugs.gnu.org>; Fri, 24 Apr 2015 16:16:30 +0200 (CEST) Received: by wgso17 with SMTP id o17so52354728wgs.1 for <20356@debbugs.gnu.org>; Fri, 24 Apr 2015 07:16:30 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.74.238 with SMTP id x14mr4353266wiv.81.1429884990507; Fri, 24 Apr 2015 07:16:30 -0700 (PDT) Received: by 10.27.52.194 with HTTP; Fri, 24 Apr 2015 07:16:30 -0700 (PDT) In-Reply-To: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Fri, 24 Apr 2015 16:16:30 +0200 Message-ID: Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master From: =?UTF-8?Q?Jorgen_Sch=C3=A4fer?= To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Fri, Apr 24, 2015 at 4:07 PM, Stefan Monnier wrote: >> The value of `str` after the first while loop is "83;40100;0" >> here. This is what screen reports, and version is set to 240 in this > > Wait, so you're not just running within gnome-terminal, but within > screen within gnome-terminal? Yep. This is a local Gnome terminal, running ssh to a server, where Emacs runs in screen. :-) (The same screen can also be attached to an ssh session from a Gnome terminal on a completely different GNU/Linux distribution and system, as well as to a JuiceSSH session on an Android tablet or a phone. The other gnome terminal exhibits the same problem. I have not used JuiceSSH much lately, so can't say if there are any peculiar problems there.) Regards, Jorgen From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 11:43:27 2015 Received: (at submit) by debbugs.gnu.org; 24 Apr 2015 15:43:28 +0000 Received: from localhost ([127.0.0.1]:38884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlflH-0002TT-Bo for submit@debbugs.gnu.org; Fri, 24 Apr 2015 11:43:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58787) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlflE-0002TE-JZ for submit@debbugs.gnu.org; Fri, 24 Apr 2015 11:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ylfl8-0005xT-H2 for submit@debbugs.gnu.org; Fri, 24 Apr 2015 11:43:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylfl8-0005xP-EQ for submit@debbugs.gnu.org; Fri, 24 Apr 2015 11:43:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylfl7-0006ka-Mn for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 11:43:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ylfl3-0005ww-JT for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 11:43:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:44940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylfl3-0005wi-CN for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 11:43:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ylfkz-0006jJ-Lo for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 17:43:09 +0200 Received: from 37.164.63.168 ([37.164.63.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Apr 2015 17:43:09 +0200 Received: from thierry.volpiatto by 37.164.63.168 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Apr 2015 17:43:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Date: Fri, 24 Apr 2015 17:42:55 +0200 Organization: Emacs Helm Lines: 12 Message-ID: <87wq117csg.fsf@gmail.com> References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.164.63.168 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:DzCMDm/mD+/x9nxlYFPWBmUib9A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) Don't know if it is related to this bug, but recently I had my urxvt full of stranges characters after compiling elisp files containing errors with a make file. The error in these files was a call to set-slot-value with the OBJ argument forgotten. If it help I can try to reproduce. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 14:11:28 2015 Received: (at 20356) by debbugs.gnu.org; 24 Apr 2015 18:11:28 +0000 Received: from localhost ([127.0.0.1]:38914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yli4V-0006Ou-PZ for submit@debbugs.gnu.org; Fri, 24 Apr 2015 14:11:28 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:40940) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yli4U-0006Om-1k for 20356@debbugs.gnu.org; Fri, 24 Apr 2015 14:11:26 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3OIBPce003940; Fri, 24 Apr 2015 14:11:25 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 01C78AE113; Fri, 24 Apr 2015 14:11:26 -0400 (EDT) From: Stefan Monnier To: Jorgen =?windows-1252?Q?Sch=E4fer?= Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Message-ID: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Fri, 24 Apr 2015 14:11:26 -0400 In-Reply-To: ("Jorgen =?windows-1252?Q?Sch=E4fer=22's?= message of "Fri, 24 Apr 2015 16:16:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5286=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5286> : inlines <2793> : streams <1427926> : uri <1914875> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > (The same screen can also be attached to an ssh session from a Gnome > terminal on a completely different GNU/Linux distribution and system, > as well as to a JuiceSSH session on an Android tablet or a phone. The > other gnome terminal exhibits the same problem. I have not used > JuiceSSH much lately, so can't say if there are any peculiar > problems there.) Exactly. I think the only sane solution is to disable this new feature under `screen'. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 30 18:31:11 2015 Received: (at 20356) by debbugs.gnu.org; 30 Apr 2015 22:31:12 +0000 Received: from localhost ([127.0.0.1]:57856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ynwz7-0007NS-UV for submit@debbugs.gnu.org; Thu, 30 Apr 2015 18:31:11 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:32528) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ynwz4-0007Mv-BQ for 20356@debbugs.gnu.org; Thu, 30 Apr 2015 18:31:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEFAGvvdVS4rw4V/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCw4mEhQYDSSIE6IRjCeECgMDg20Eo2OEWA X-IPAS-Result: AnEFAGvvdVS4rw4V/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCw4mEhQYDSSIE6IRjCeECgMDg20Eo2OEWA X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="117934628" Received: from 184-175-14-21.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([184.175.14.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Apr 2015 18:31:00 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 89E01AE0BD; Thu, 30 Apr 2015 18:31:00 -0400 (EDT) From: Stefan Monnier To: Jorgen Schaefer Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Message-ID: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Thu, 30 Apr 2015 18:31:00 -0400 In-Reply-To: <87twwfnloz.fsf@loki.jorgenschaefer.de> (Jorgen Schaefer's message of "Fri, 17 Apr 2015 11:33:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > This is in a Gnome Terminal with TERM=xterm, sshing to a server, and > Emacs started in a screen with TERM=screen. Can you confirm that the patch below fixes the problem you're seeing? Stefan diff --git a/lisp/term/screen.el b/lisp/term/screen.el index 3587c4f..41fd916 100644 --- a/lisp/term/screen.el +++ b/lisp/term/screen.el @@ -1,9 +1,22 @@ ;;; screen.el --- terminal initialization for screen and tmux -*- lexical-binding: t -*- ;; Copyright (C) 1995, 2001-2015 Free Software Foundation, Inc. +(require 'term/xterm) + +(defcustom xterm-screen-extra-capabilities '(modifyOtherKeys) + "Extra capabilities supported under \"screen\". +Some features of screen depend on the terminal emulator in which +it runs, which can change when the screen session is moved to another tty." + :type xterm--extra-capabilities-type + :group 'xterm) + (defun terminal-init-screen () "Terminal initialization function for screen." - ;; Treat a screen terminal similar to an xterm. - (tty-run-terminal-initialization (selected-frame) "xterm")) + ;; Treat a screen terminal similar to an xterm, but don't use + ;; xterm-extra-capabilities's `check' setting since that doesn't seem + ;; to work so well (it depends too much on the surrounding terminal + ;; emulator, which can change during the session, bug#20356). + (let ((xterm-extra-capabilities xterm-screen-extra-capabilities)) + (tty-run-terminal-initialization (selected-frame) "xterm"))) ;; screen.el ends here diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index 726ecf9..4311647 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -29,6 +29,13 @@ :version "24.1" :group 'terminals) +(defconst xterm--extra-capabilities-type + ;; NOTE: If you add entries here, make sure to update + ;; `terminal-init-xterm' as well. + '(set (const :tag "modifyOtherKeys support" modifyOtherKeys) + (const :tag "report background" reportBackground) + (const :tag "set X selection" setSelection))) + (defcustom xterm-extra-capabilities 'check "Whether Xterm supports some additional, more modern, features. If nil, just assume that it does not. @@ -40,13 +47,8 @@ The relevant features are: reportBackground -- if supported, Xterm reports its background color setSelection -- if supported, Xterm saves yanked text to the X selection" :version "24.1" - :type '(choice (const :tag "No" nil) - (const :tag "Check" check) - ;; NOTE: If you add entries here, make sure to update - ;; `terminal-init-xterm' as well. - (set (const :tag "modifyOtherKeys support" modifyOtherKeys) - (const :tag "report background" reportBackground) - (const :tag "set X selection" setSelection)))) + :type `(choice (const :tag "Check" check) + ,xterm--extra-capabilities-type)) (defcustom xterm-max-cut-length 100000 "Maximum number of bytes to cut into xterm using the OSC 52 sequence. @@ -623,8 +625,8 @@ string bytes that can be copied is 3/4 of this value." (setq version 200)) (when (equal (match-string 1 str) "83") ;; `screen' (which returns 83;40003;0) seems to also lack support for - ;; some of these (bug#17607). - (setq version 240)) + ;; some of these (bug#17607, bug#20356). + (setq version 200)) ;; If version is 242 or higher, assume the xterm supports ;; reporting the background color (TODO: maybe earlier ;; versions do too...) From debbugs-submit-bounces@debbugs.gnu.org Fri May 01 09:44:34 2015 Received: (at 20356) by debbugs.gnu.org; 1 May 2015 13:44:34 +0000 Received: from localhost ([127.0.0.1]:58201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoBF3-0003XN-IM for submit@debbugs.gnu.org; Fri, 01 May 2015 09:44:34 -0400 Received: from loki.jorgenschaefer.de ([87.230.15.51]:38804) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoBEz-0003XB-OF for 20356@debbugs.gnu.org; Fri, 01 May 2015 09:44:30 -0400 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id 65ECA200F2E for <20356@debbugs.gnu.org>; Fri, 1 May 2015 15:44:28 +0200 (CEST) Received: by wiun10 with SMTP id n10so48550825wiu.1 for <20356@debbugs.gnu.org>; Fri, 01 May 2015 06:44:28 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.61.133 with SMTP id p5mr18576401wjr.132.1430487868166; Fri, 01 May 2015 06:44:28 -0700 (PDT) Received: by 10.27.52.194 with HTTP; Fri, 1 May 2015 06:44:28 -0700 (PDT) In-Reply-To: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Fri, 1 May 2015 15:44:28 +0200 Message-ID: Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master From: =?UTF-8?Q?Jorgen_Sch=C3=A4fer?= To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20356 Cc: 20356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Fri, May 1, 2015 at 12:31 AM, Stefan Monnier wrote: >> This is in a Gnome Terminal with TERM=xterm, sshing to a server, and >> Emacs started in a screen with TERM=screen. > > Can you confirm that the patch below fixes the problem you're seeing? Hello! Using (require 'xterm "term/xterm") instead of (require 'term/xterm), this compiles and I do not see the glyphs anymore. So yes, this fixes the problem. Thank you! Jorgen From debbugs-submit-bounces@debbugs.gnu.org Sun May 03 21:22:01 2015 Received: (at 20356-done) by debbugs.gnu.org; 4 May 2015 01:22:01 +0000 Received: from localhost ([127.0.0.1]:32857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yp556-0004LB-Ga for submit@debbugs.gnu.org; Sun, 03 May 2015 21:22:00 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yp554-0004Ky-Hu for 20356-done@debbugs.gnu.org; Sun, 03 May 2015 21:21:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEFAGvvdVRFpYts/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCzQSFBgNJIgTohGMbQECAQKDPgMDg20Eo2OEWA X-IPAS-Result: AnEFAGvvdVRFpYts/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCzQSFBgNJIgTohGMbQECAQKDPgMDg20Eo2OEWA X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="118162574" Received: from 69-165-139-108.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.139.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 May 2015 21:21:53 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7D363AE12D; Sun, 3 May 2015 21:21:53 -0400 (EDT) From: Stefan Monnier To: Jorgen =?windows-1252?Q?Sch=E4fer?= Subject: Re: bug#20356: 25.0.50; Strange terminal glyphs in emacs -nw in recent master Message-ID: References: <87twwfnloz.fsf@loki.jorgenschaefer.de> Date: Sun, 03 May 2015 21:21:53 -0400 In-Reply-To: ("Jorgen =?windows-1252?Q?Sch=E4fer=22's?= message of "Fri, 1 May 2015 15:44:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20356-done Cc: 20356-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Using (require 'xterm "term/xterm") instead of (require 'term/xterm), > this compiles and I do not see the glyphs anymore. Indeed, there was a little problem there, which I think I've now fixed. > So yes, this fixes the problem. Great, installed, thank you, Stefan From unknown Sun Sep 07 16:50:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 01 Jun 2015 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator