From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: A question about face-all-attributes
Date: Thu, 24 Oct 2013 18:25:05 +0300 [thread overview]
Message-ID: <8361smitda.fsf@gnu.org> (raw)
In-Reply-To: <CAAF+z6FqoCapPR+uFP-muwWVL2qftL=VO6Fn9etc7QZEFxEV-w@mail.gmail.com>
> Date: Thu, 24 Oct 2013 18:47:59 +0800
> From: Xue Fuqiao <xfq.free@gmail.com>
> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
>
> On Wed, Oct 23, 2013 at 11:42 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> >> (face-all-attributes 'default)
> >> =>
> >> ((:family . unspecified) (:foundry . unspecified) (:width .
> >> unspecified) (:height . unspecified) (:weight . unspecified) (:slant .
> >> unspecified) (:underline . unspecified) (:overline . unspecified)
> >> (:strike-through . unspecified) (:box . unspecified) (:inverse-video .
> >> unspecified) (:foreground . unspecified) ...)
> >>
> >> But:
> >>
> >> (describe-face 'default)
> >> =>
> >> Family: Ubuntu Mono
> >> Foundry: unknown
> >> Width: normal
> >> Height: 128
> >> ...
> >>
> >> Why are the two results different? I expected similar results from
> >> them.
> >
> > If the results were similar, the existence of describe-face would not
> > have been justified. It exists to show you what the default
> > attributes really will be.
>
> Thanks, Eli. But in (info "(elisp) Face Attributes"):
>
> An ‘unspecified’ attribute tells Emacs to refer instead to a parent
> face; or, failing that, to an underlying face. The ‘default’ face
> must specify all attributes.
>
> But all the attributes returned by face-all-attributes are
> ‘unspecified’, why?
Evidently, the manual is blatantly wrong. Unless this is an
unfortunate combination of using `unspecified' in the first sentence
and `specify' in the second, which does not necessarily mean "cannot
use `unspecified' in the 'default' face."
prev parent reply other threads:[~2013-10-24 15:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 13:49 A question about face-all-attributes Xue Fuqiao
2013-10-23 15:42 ` Eli Zaretskii
2013-10-24 10:47 ` Xue Fuqiao
2013-10-24 15:25 ` 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
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=8361smitda.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.
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).