From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.help Subject: Re: colours lost Date: Wed, 15 May 2019 16:58:30 +0530 Message-ID: References: <83pnruo2ub.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="50334"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 15 15:15:17 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQtkb-000Cvq-21 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 May 2019 15:15:17 +0200 Original-Received: from localhost ([127.0.0.1]:37085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQtkZ-0000Dw-Sh for geh-help-gnu-emacs@m.gmane.org; Wed, 15 May 2019 09:15:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQsJT-00014G-GW for help-gnu-emacs@gnu.org; Wed, 15 May 2019 07:43:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQsJS-0007bk-GZ for help-gnu-emacs@gnu.org; Wed, 15 May 2019 07:43:11 -0400 Original-Received: from [117.193.24.27] (port=58218 helo=localhost.localdomain) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQsJR-0006mX-Sc for help-gnu-emacs@gnu.org; Wed, 15 May 2019 07:43:10 -0400 Original-Received: (qmail 22633 invoked by uid 500); 15 May 2019 11:28:30 -0000 In-Reply-To: <83pnruo2ub.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Feb 2019 16:35:08 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 117.193.24.27 X-Mailman-Approved-At: Wed, 15 May 2019 09:15:05 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120379 Archived-At: * Eli Zaretskii <83pnruo2ub.fsf@gnu.org> : Wrote on Thu, 14 Feb 2019 16:35:08 +0200: >> From: Madhu >> Date: Thu, 14 Feb 2019 12:40:58 +0530 >> >> I'm running an X toolkit build (master from around november) and very >> recently I am losing all colours both under X and tty. Typically I start >> emacs via --daemon and attach to it via both X and tty. >> >> What I mean is eg. M-x list-colors-display shows a buffer in which all >> the the lines are displayed with foreground colour set to the default >> foreground, background colour to the default background, and font set to >> the default-font. Same with happens M-x list-faces-display. colours >> set via font-lock still work. Emacs starts off ok but somewhere this >> gets triggered and I can't think of what I've been doing recently that >> causes this. Where do I start looking for the code which handles this? > > Does "M-x list-faces-display" also show all the faces the same, both > colors and fonts? Yes > If so, it sounds like something is redefining all the faces, and you > should look at your customizations related to faces. > > Thinking a bit more about this: if all the colors are suddenly lost, > you should see it happening immediately, and so the last thing you did > is a good starting point for looking for the culprit. I haven't figured out what triggers the problem yet, but the clue is it is related to global-font-lock-mode. When the problem described occurs, global-font-lock-mode is t. C-u C-x = on a piece of text which shows the bold face in the *Faces* buffer shows: ,---- | There are text properties here: | button (t) | category help-face-button | fontified t | help-args (bold) | read-face-name bold `---- After setting (global-font-lock-mode -1) and reverting *Faces* restores the list-faces-display as expected. Now C-u C-x = shows ,---- | There are text properties here: | button (t) | category help-face-button | face bold | help-args (bold) | read-face-name bold `---- So When the problem occurs all text is "fontified" and faces seem to be ignored. Still looking for another clue.. ---Madhu