all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: info@protesilaos.com
Cc: 74104-done@debbugs.gnu.org
Subject: bug#74104: 31.0.50; 'custom-set-faces' overrides face when no theme is loaded
Date: Sat, 23 Nov 2024 14:13:39 +0200	[thread overview]
Message-ID: <86cyimm9l8.fsf@gnu.org> (raw)
In-Reply-To: <86pln4n2nx.fsf@gnu.org> (message from Eli Zaretskii on Sat, 09 Nov 2024 12:04:50 +0200)

> Cc: 74104@debbugs.gnu.org
> Date: Sat, 09 Nov 2024 12:04:50 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: Protesilaos Stavrou <info@protesilaos.com>
> > Cc: 74104@debbugs.gnu.org
> > Date: Thu, 31 Oct 2024 07:35:34 +0200
> > 
> > > From: Eli Zaretskii <eliz@gnu.org>
> > > Date: Wed, 30 Oct 2024 17:39:30 +0200
> > >
> > >> From: Protesilaos Stavrou <info@protesilaos.com>
> > >> Date: Wed, 30 Oct 2024 12:14:40 +0200
> > >> 
> > >> Dear maintainers,
> > >> 
> > >> When a theme is already enabled, 'custom-set-faces' has the effect of
> > >> adding face attributes on top of the existing ones. Those that were
> > >> present are not removed: they are blended with the new ones.
> > >> 
> > >> This, however, is not happening when no theme is loaded. In that
> > >> scenario, 'custom-set-faces' removes all the underlying face attributes
> > >> and keeps only those specified in the function call. I think this is a
> > >> mistake.
> > >
> > > custom-set-faces is used to set up customized faces in the user's init
> > > files: they are the forms written by Custom when the user decides to
> > > save the face customizations for future sessions.  So I don't think
> > > this is a mistake, and I don't see how we can change this without
> > > catastrophic effects on everyone's init files.
> > 
> > Indeed, I do not want to break anybody's setup or even make far-reaching
> > changes just for this. Do you think the difference in behaviour when a
> > theme is loaded versus when it is not is the intended design?
> 
> Yes, I think so.

No further comments, so I'm now closing this bug.





      reply	other threads:[~2024-11-23 12:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-30 10:14 bug#74104: 31.0.50; 'custom-set-faces' overrides face when no theme is loaded Protesilaos Stavrou
2024-10-30 15:39 ` Eli Zaretskii
2024-10-31  5:35   ` Protesilaos Stavrou
2024-11-09 10:04     ` Eli Zaretskii
2024-11-23 12:13       ` Eli Zaretskii [this message]

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=86cyimm9l8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74104-done@debbugs.gnu.org \
    --cc=info@protesilaos.com \
    /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.