all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Madhu <enometh@meer.net>
To: help-gnu-emacs@gnu.org
Subject: Re: colours lost
Date: Wed, 15 May 2019 16:58:30 +0530	[thread overview]
Message-ID: <m37eas2bz5.fsf@leonis4.robolove.meer.net> (raw)
In-Reply-To: <83pnruo2ub.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Feb 2019 16:35:08 +0200")


* Eli Zaretskii <83pnruo2ub.fsf@gnu.org> :
Wrote on Thu, 14 Feb 2019 16:35:08 +0200:

>> From: Madhu <enometh@net.meer>
>> 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




  reply	other threads:[~2019-05-15 11:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14  7:10 colours lost Madhu
2019-02-14 14:35 ` Eli Zaretskii
2019-05-15 11:28   ` Madhu [this message]
2019-05-15 13:31     ` Noam Postavsky
2019-07-06 15:33       ` Madhu
     [not found]         ` <mailman.339.1562429193.2688.help-gnu-emacs@gnu.org>
2019-07-14 12:27           ` Madhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37eas2bz5.fsf@leonis4.robolove.meer.net \
    --to=enometh@meer.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.