GNU bug report logs - #43396
27.1; Customized "cursor" face has no effect in daemon mode

Previous Next

Package: emacs;

Reported by: Teemu Likonen <tlikonen <at> iki.fi>

Date: Mon, 14 Sep 2020 13:24:02 UTC

Severity: normal

Found in version 27.1

Full log


Message #55 received at 43396 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43396 <at> debbugs.gnu.org, tlikonen <at> iki.fi
Subject: Re: bug#43396: 27.1; Customized "cursor" face has no effect in
 daemon mode
Date: Wed, 30 Jun 2021 15:29:36 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Teemu Likonen <tlikonen <at> iki.fi>,  43396 <at> debbugs.gnu.org
> Date: Wed, 30 Jun 2021 14:14:58 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Yes, we have a design bug here (and in some other places):
> > customizations that need GUI features don't work well when invoked at
> > startup time in daemon sessions.  If someone knows how to fix
> > custom-set-faces so that the face is re-evaluated when the first GUI
> > frame is created, patches and/or ideas are welcome. 
> 
> Yeah, it's a tricky problem...  unless we just add some brute-forcing of
> this when the first graphical frame is created.
> 
> That is, we just go through all the faces that have been created already
> (with `custom-set-faces') when the user eventually creates a frame, and
> then re-evaluate everything.

We have custom-reevaluate-setting, but I think it only works on
variables.  And we lack a mechanism that would perform re-evaluation
of faces that were customized.

> Uhm...  perhaps we could have a `custom-reset-faces' function that
> people can put in a server/client hook to achieve this if they want to?

That could be a sufficient stop-gap solution, IMO.




This bug report was last modified 3 years and 325 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.