From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: tramp compilation buffer also affected Date: Sun, 08 Dec 2019 23:33:45 +0200 Organization: LINKOV.NET Message-ID: <875ziq961a.fsf@mail.linkov.net> References: <877e3fomux.fsf@mail.linkov.net> <867e3c97zb.fsf@gmail.com> <87muc7n27o.fsf@mail.linkov.net> <86v9qv7ht4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13963"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Trevor Spiteri , emacs-devel@gnu.org To: =?iso-8859-1?Q?andr=E9s_ram=EDrez?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 08 22:56:39 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ie4Xe-0003UE-Pq for ged-emacs-devel@m.gmane.org; Sun, 08 Dec 2019 22:56:39 +0100 Original-Received: from localhost ([::1]:33678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ie4Xd-0003FY-IC for ged-emacs-devel@m.gmane.org; Sun, 08 Dec 2019 16:56:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43586) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ie4XV-0003FL-Nv for emacs-devel@gnu.org; Sun, 08 Dec 2019 16:56:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ie4XQ-0003Mm-RV for emacs-devel@gnu.org; Sun, 08 Dec 2019 16:56:29 -0500 Original-Received: from egyptian.birch.relay.mailchannels.net ([23.83.209.56]:40835) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ie4XQ-0003Fd-Hg for emacs-devel@gnu.org; Sun, 08 Dec 2019 16:56:24 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 228413C0CCE; Sun, 8 Dec 2019 21:56:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (100-96-6-199.trex.outbound.svc.cluster.local [100.96.6.199]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8C1F33C0CB9; Sun, 8 Dec 2019 21:56:22 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 08 Dec 2019 21:56:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Power-Broad: 56cf6e7410658cdb_1575842182860_581315364 X-MC-Loop-Signature: 1575842182860:3423563595 X-MC-Ingress-Time: 1575842182860 Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTP id 4D37AA123E; Sun, 8 Dec 2019 13:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=8jS3HyOcesgr7eFin+r57TJx4YU=; b= NpJsBO5DZ75lYtUmTh6+9elenRjw5ybKAaeKyQkR3RYt21f5843ULr7EcAT4u6os KB1OpJFnHocWnDFba0tYZCo93STauLG+3U5TtHo4N7uRnM+zKvch/sp2BHuFUxGq a6ecl4pD1/WVshF0LFX6wAYCfd6K410AkhHhYei3nt0= Original-Received: from mail.jurta.org (m91-129-96-42.cust.tele2.ee [91.129.96.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTPSA id 61A1681F1D; Sun, 8 Dec 2019 13:56:13 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a35 In-Reply-To: <86v9qv7ht4.fsf@gmail.com> (=?iso-8859-1?Q?=22andr=E9s_ram=ED?= =?iso-8859-1?Q?rez=22's?= message of "Thu, 05 Dec 2019 00:11:03 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.209.56 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243245 Archived-At: > BTW: I also did (tramp-cleanup-this-connection, tramp-cleanup-all-buffers) Actually, tramp-cleanup-... don't update the existing process-environment. You need restart Emacs after customizing tramp-remote-process-environment. It's easier to check whether TERM has the right value in Tramp by simply: M-x compile RET echo $TERM RET For testing compilation highlighting, I just touch xterm.c and compile it, because compilation of xterm.o always produces warnings: M-x compile RET touch xterm.c; TERM=ansi make xterm.o RET It produces unhandled escape sequences in the compilation output buffer: touch xterm.c; TERM=ansi make xterm.o GEN globals.h CC xterm.o ^[[01m^[[Kxterm.c:^[[m^[[K In function '^[[01m^[[Kx_parse_color^[[m^[[K': ^[[01m^[[Kxterm.c:2425:61:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[K'^[[01m^[[K%.*s^[[m^[[K' directive output may be truncated writing up to 2147483647 bytes into a region of size 28 [^[[01;35m^[[K-Wformat-truncation=^[[m^[[K] snprintf (rgb_color_name, sizeof rgb_color_name, "rgb:^[[01;35m^[[K%.*s^[[m^[[K/%.*s/%.*s", ^[[01;35m^[[K^~~~^[[m^[[K ^[[01m^[[Kxterm.c:2425:56:^[[m^[[K ^[[01;36m^[[Knote: ^[[m^[[Kassuming directive output of 1 byte snprintf (rgb_color_name, sizeof rgb_color_name, ^[[01;36m^[[K"rgb:%.*s/%.*s/%.*s"^[[m^[[K, ^[[01;36m^[[K^~~~~~~~~~~~~~~~~~~~^[[m^[[K ^[[01m^[[Kxterm.c:2425:56:^[[m^[[K ^[[01;36m^[[Knote: ^[[m^[[Kassuming directive output of 1 byte ^[[01m^[[Kxterm.c:2425:56:^[[m^[[K ^[[01;36m^[[Knote: ^[[m^[[Kassuming directive output of 1 byte ^[[01m^[[Kxterm.c:2425:7:^[[m^[[K ^[[01;36m^[[Knote: ^[[m^[[K'^[[01m^[[Ksnprintf^[[m^[[K' output between 7 and 6442450948 bytes into a destination of size 32 ^[[01;36m^[[Ksnprintf (rgb_color_name, sizeof rgb_color_name, "rgb:%.*s/%.*s/%.*s",^[[m^[[K ^[[01;36m^[[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^[[m^[[K ^[[01;36m^[[K digits_per_channel, color_name + 1,^[[m^[[K ^[[01;36m^[[K~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^[[m^[[K ^[[01;36m^[[K digits_per_channel, color_name + digits_per_channel + 1,^[[m^[[K ^[[01;36m^[[K~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^[[m^[[K ^[[01;36m^[[K digits_per_channel, color_name + 2 * digits_per_channel + 1)^[[m^[[K; ^[[01;36m^[[K~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^[[m^[[K But running compile with a prefix arg processes escape sequences and produces nice output even when Tramp process-environment is not customized: C-u M-x compile RET touch xterm.c; TERM=ansi make xterm.o RET