From: Miles Bader <miles@lsi.nec.co.jp>
Cc: emacs-devel@gnu.org
Subject: Re: +face-remapping-20040505-0.patch
Date: 12 May 2004 10:30:39 +0900 [thread overview]
Message-ID: <buoisf2ctz4.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <40A0FF9C.7030807@yahoo.com>
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> >>Face-remapping only affects redisplay; `face-attribute' will not see it.
>
> No, it seems wrong to me as well. Doesn't face-attribute exist to allow
> the programmer to find out how a face will actually look?
No.
It exists to let you find out the attributes of a face, the inverse of
`set-face-attribute' -- it's a fairly low-level operation. Note that by
default, it will return `unspecified' for attributes that aren't
_directly_ specified in a face, and this is intentional.
The appearance of text, on the other hand, is not typically due to one
face, but rather the merging of several faces.
The `face-attribute' function _does_ have an optional argument to do
face-merging on the result, so perhaps an additional argument might be
added to do remapping too, analoguous to the current INHERIT argument.
E.g.:
(face-attribute FACE ATTRIBUTE &optional FRAME INHERIT REMAP)
...
If REMAP is nil, the default frame-global face definitions will be used.
If REMAP is t, faces will be remapped according to the current
definition of `face-remapping-alist'.
If REMAP is an alist, faces will be remapped as if
`face-remapping-alist' had that value.
-Miles
--
Somebody has to do something, and it's just incredibly pathetic that it
has to be us. -- Jerry Garcia
next prev parent reply other threads:[~2004-05-12 1:30 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 15:44 +face-remapping-20040505-0.patch Miles Bader
2004-05-05 20:20 ` +face-remapping-20040505-0.patch Richard Stallman
2004-05-05 22:12 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-06 14:05 ` +face-remapping-20040505-0.patch Stefan Monnier
2004-05-08 1:20 ` +face-remapping-20040505-0.patch Richard Stallman
2004-05-08 1:39 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-09 10:38 ` +face-remapping-20040505-0.patch Richard Stallman
2004-05-09 16:42 ` +face-remapping-20040505-0.patch Stefan Monnier
2004-05-10 0:00 ` +face-remapping-20040505-0.patch Richard Stallman
2004-05-10 0:17 ` +face-remapping-20040505-0.patch Stefan Monnier
2004-05-10 17:54 ` +face-remapping-20040505-0.patch Richard Stallman
2004-05-10 18:25 ` +face-remapping-20040505-0.patch Stefan Monnier
2004-05-10 22:33 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-10 23:08 ` +face-remapping-20040505-0.patch Stefan Monnier
2004-05-11 4:47 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-11 16:30 ` +face-remapping-20040505-0.patch Kevin Rodgers
2004-05-12 1:30 ` Miles Bader [this message]
2004-05-10 0:42 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-10 17:54 ` +face-remapping-20040505-0.patch Richard Stallman
2004-05-13 21:28 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-24 8:04 ` +face-remapping-20040505-0.patch Kim F. Storm
2004-05-24 8:15 ` +face-remapping-20040505-0.patch Kim F. Storm
2004-05-24 8:48 ` +face-remapping-20040505-0.patch Miles Bader
2004-05-24 10:03 ` +face-remapping-20040505-0.patch Kim F. Storm
2004-05-24 10:24 ` +face-remapping-20040505-0.patch David Kastrup
2004-05-24 17:35 ` +face-remapping-20040505-0.patch Richard Stallman
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=buoisf2ctz4.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=emacs-devel@gnu.org \
--cc=miles@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.