unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Are face specifications "frame local"?
Date: Tue, 13 Sep 2022 17:49:05 +0000	[thread overview]
Message-ID: <YyDCkQo/rRoF5ety@ACM> (raw)

Hello, Emacs.

I've been getting confused a bit the last couple of days by newly
created faces appearing to be "frame local".

The faces are created in old software by make-face and copy-face (yes, I
know!) and appear to apply only to existing frames, not frames created
later.  For example, if I have a buffer on a frame displaying as magenta
text with face font-lock-label-face (which doesn't exist in Emacs), and
I do C-x 5 2, creating a new frame, what is magenta on the initial frame
becomes neutral on the new frame, even though it still has the "same"
face.

I haven't find any helpful description of "frame local" faces in the
Elisp manual, and their relationship to "global" faces.  Just that some
functions on, for example, page "Attribute Functions" describe optional
FRAME parameters and say these indicate the use of the "frame local"
values.

I get the impression that "frame local" faces are a dubious feature, and
that the new(?) macro defface is trying to phase these out.  I can't see
any use case for "frame local" faces.

What do people say?

-- 
Alan Mackenzie (Nuremberg, Germany).



             reply	other threads:[~2022-09-13 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13 17:49 Alan Mackenzie [this message]
2022-09-13 17:57 ` Are face specifications "frame local"? Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=YyDCkQo/rRoF5ety@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).