From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs 29.1 ignoring terminal color palette Date: Tue, 05 Dec 2023 14:53:15 +0200 Message-ID: <835y1c6cas.fsf@gnu.org> References: <6b22d379597f88e0e3523190889ba933aabb7ea4.camel@slac.stanford.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30089"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 05 13:53:49 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rAUvr-0007bQ-S8 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Dec 2023 13:53:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAUvG-0008EC-Aq; Tue, 05 Dec 2023 07:53:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAUvE-0008Dp-Sl for help-gnu-emacs@gnu.org; Tue, 05 Dec 2023 07:53:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAUvE-00069q-KG for help-gnu-emacs@gnu.org; Tue, 05 Dec 2023 07:53:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Nl8LY3PQkVrHusT4fX40j5KLthjT5Jp4PDzDGoVFh6I=; b=PZK5vkySZwSH ORIQeqIuw1/JPIyo/ZkXZC3IBIKxRXZ63Zu38JuSO4McU40xuoHS9kBpydfj8xZWu9vGxSbJxvqpr PhKqbcjm2htmL1jd5ScPOUC3jXmEQYBm9EN7fXEmVWJ5halXzwk7idWzUz35vTXE3vQN/IfK3lFPX NKJvrpAoL1fw3pY7KoiTWPWPTH/WhYgJpq1ahdIW2l8O4I0KFpl6hdPLg27XGtoPzeAWTwCwDFnrf aYM2wKOGeKynk+PUQPxxmxoqLYXgjVz/RsPiT7W+rsjS7J3Wl3gTPzvC+V4E6euCY5eNx4JvoKNQv f4DE+Qm7eXJ1DKR7KrdliA==; In-Reply-To: <6b22d379597f88e0e3523190889ba933aabb7ea4.camel@slac.stanford.edu> (seshu@slac.stanford.edu) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145621 Archived-At: > From: "Yamajala, Seshu" > Date: Mon, 4 Dec 2023 16:21:20 +0000 > > I recently upgraded to emacs 29.1 and my theme does not seem to be rendering > correctly anymore. I use xfce4-terminal and emacs without x11, my term is set to > screen256-color, but there is a noticable difference between the ways color are > rendered with emacs 29.1 and emacs 27.2. > > There is an example here: https://i.imgur.com/Ti0uLvt.png > > On the left is emacs 29.1 and on the right is emacs 27.2. The right is what I > expect to see with emacs 29.1. I'm not sure how to debug this. It looks like Emacs 27.2 was using only 88 colors, that's where the color-NN color names come from. Emacs 29, by contrast, uses 256 colors or maybe even more. So one way to have what you want is to "downgrade" your TERM definition to screen88-color (assuming such a profile exists). OTOH, I don't really understand why would you want to have fewer colors in your Emacs, but that's me. Another possibility is that you are somehow affected by the COLORTERM=truecolor bug in 'screen'; see etc/PROBLEMS for the details. (Btw, if your terminal is xfce4, why is your TERM set to screen256-color? doesn't xfce4 come with its own terminfo definition that you could use instead?)