all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Question about customising faces
Date: Tue, 30 Aug 2022 05:30:51 +0300	[thread overview]
Message-ID: <83y1v6v4x0.fsf@gnu.org> (raw)
In-Reply-To: <878rn6u7gs.fsf@fastmail.fm> (message from Joost Kremers on Mon,  29 Aug 2022 22:07:41 +0200)

> From: Joost Kremers <joostkremers@fastmail.fm>
> Cc: help-gnu-emacs@gnu.org
> Date: Mon, 29 Aug 2022 22:07:41 +0200
> 
> On Mon, Aug 29 2022, Eli Zaretskii wrote:
> > The call with FRAME nil should have been enough.  And in my testing,
> > it is: it sets the attributes for both the first and the subsequent
> > frames.
> 
> I just tried with emacs -Q, executing only those `set-face-attribute` calls and
> the problem persists. I need to execute both sets in order to get it to work. 

Please show a recipe, starting from "emacs -Q", to reproduce the issue.

> Note that the distinction isn't really initial frame vs. subsequent frames.
> Rather, it's frames created before executing the calls to `set-face-attributes`
> and after executing those calls.

I don't think I understand what you are saying, but FRAME nil is
documented as affecting both all the existing frames and the future
frames.

> I'm assuming that this is the case mentioned in the doc string of
> set-face-attribute:
> 
> "[...] to reset the value
> of some attribute to ‘unspecified’ in a way that overrides the
> non-‘unspecified’ value defined by the face’s spec in ‘defface’,
> for new frames, you must explicitly call this function with FRAME
> set to t and the attribute’s value set to ‘unspecified’; just
> using FRAME of nil will not affect new frames in this case.to reset the value
> of some attribute to ‘unspecified’ in a way that overrides the
> non-‘unspecified’ value defined by the face’s spec in ‘defface’,
> for new frames, you must explicitly call this function with FRAME
> set to t and the attribute’s value set to ‘unspecified’; just
> using FRAME of nil will not affect new frames in this case."

I don't think this is related: you only used 'unspecified' in the call
with FRAME t, not in the calls with FRAME nil (which should have taken
care of everything).



  parent reply	other threads:[~2022-08-30  2:30 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-29 11:30 Question about customising faces Joost Kremers
2022-08-29 13:08 ` Eli Zaretskii
2022-08-29 20:07   ` Joost Kremers
2022-08-29 20:47     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-08-30  6:58       ` Joost Kremers
2022-08-30 13:00         ` Stefan Monnier
2022-08-30 20:57           ` Joost Kremers
2022-08-30 21:23             ` Stefan Monnier
2022-09-03 15:18           ` Joost Kremers
2022-08-30  2:30     ` Eli Zaretskii [this message]
2022-08-30  6:44       ` Joost Kremers
2022-08-30 11:49         ` Eli Zaretskii
2022-08-30 20:48           ` Joost Kremers
2022-08-30 15:52         ` Gregory Heytings
2022-08-30 16:54           ` Eli Zaretskii
2022-08-30 17:50             ` Gregory Heytings
2022-08-30 18:19               ` Eli Zaretskii
2022-08-30 18:31                 ` Gregory Heytings
2022-08-30 18:34                   ` Eli Zaretskii
2022-08-30 18:48                     ` Gregory Heytings
2022-08-30 18:56                       ` Eli Zaretskii
2022-08-30 19:15                         ` Gregory Heytings
2022-08-30 20:36                           ` Joost Kremers
2022-08-31  2:25                           ` Eli Zaretskii
2022-08-31  8:18                             ` Gregory Heytings
2022-08-30 21:46                         ` [External] : " Drew Adams

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=83y1v6v4x0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.