From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 51465@debbugs.gnu.org
Subject: bug#51465: 27.2; `face-all-attributes' doc or behavior (?)
Date: Thu, 28 Oct 2021 22:33:45 +0300 [thread overview]
Message-ID: <83h7d1rlk6.fsf@gnu.org> (raw)
In-Reply-To: <SJ0PR10MB548803BF39B2DC55B34FA5D3F3869@SJ0PR10MB5488.namprd10.prod.outlook.com> (message from Drew Adams on Thu, 28 Oct 2021 19:08:53 +0000)
> From: Drew Adams <drew.adams@oracle.com>
> Date: Thu, 28 Oct 2021 19:08:53 +0000
>
> What does that mean - what are the default attributes? I was expecting
> that it meant the default settings for the face: default set of
> attributes with their default values for that face.
"Default attributes" and "default settings for the face" are one and
the same.
> (elisp) `Attribute Functions' says "the default attributes of FACE for
> newly created frames". I would expect to see :background as
> "LightGoldenrod", not as `unspecified'.
Why? because that's what you actually see in a new frame? Those
aren't the default attributes, those are the attributes specified by
defface.
> If arg FRAME is specified (as a frame) then the function returns the
> attributes of FACE on FRAME. Not sure what that means either - faces
> have different attributes on different frames?
Of course. Faces are, and always were, specific to frames. You can
change face attributes on one frame without affecting any other
frames.
> If I do `M-x customize-face region' from emacs -Q I see :background set
> as "LightGoldenrod".
Because that shows the face on the current frame.
> That command customizes the face for all frames,
> no?
Yes.
> So doesn't that mean that the face has that background for all
> frames (by default)?
No.
> Why would one want to get a list of the face's attributes with every
> attribute value as `unspecified'?
I don't know. I guess those defaults are not very interesting,
indeed.
> More importantly, how to get the actual (default) values "for all
> frames"
There's no such thing. You must supply a frame to answer that
question.
next prev parent reply other threads:[~2021-10-28 19:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-28 19:08 bug#51465: 27.2; `face-all-attributes' doc or behavior (?) Drew Adams
2021-10-28 19:33 ` Eli Zaretskii [this message]
2021-10-28 23:08 ` bug#51465: [External] : " Drew Adams
2021-10-29 7:24 ` Eli Zaretskii
2021-10-29 16:11 ` Drew Adams
2021-10-29 16:19 ` 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=83h7d1rlk6.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=51465@debbugs.gnu.org \
--cc=drew.adams@oracle.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 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).