From: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: Buffer-local faces patch
Date: Mon, 3 May 2004 15:14:35 -0400 [thread overview]
Message-ID: <20040503191435.GA21891@fencepost> (raw)
In-Reply-To: <2914-Mon03May2004204357+0300-eliz@gnu.org>
On Mon, May 03, 2004 at 08:43:58PM +0200, Eli Zaretskii wrote:
> I didn't yet try to use this, only read through the patch, so the
> following question might be annoyingly stupid: I see DEFAULT_FACE_ID
> being referenced in lots of the current source files besides the ones
> you modified. Is this patch supposed to work on all types of displays
> supported by Emacs, or just on X?
I don't know. I didn't pay much attention to non-X stuff, but the changes
outside of xfaces.c are very small and I think they're all in generic code,
so it may just work.
I tried to avoid changing all the uses of DEFAULT_FACE_ID because as you say
there are lots of them.
The cases where DEFAULT_FACE_ID need _not_ be changed are:
(1) Where the face-id is passed (eventually) to init_iterator, as
init_iterator will do the work (the face passed to init_iterator is not
a `real' face-id anyway, it is required to be one of the basic
face-ids).
(2) Where the code really wants the underlying default face, not the
buffer's default face. An example of this might be where it's going to
test whether it can just draw the background color -- in this case you
want to treat a remapped default-face as just another face (i.e., not
the background).
Those two exceptions cover many, many, uses.
There are a few I'm not sure about, e.g., the fringe munging code, but the
patch tends to fail conservatively, so the only effect might be that
remapping doesn't take in some cases (like the fringe face).
-Miles
--
[|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that
will make every christian in the world foamm at the mouth?
[iddt] nurg, that's the goal
prev parent reply other threads:[~2004-05-03 19:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-03 11:28 Buffer-local faces patch Miles Bader
2004-05-03 11:58 ` Kim F. Storm
2004-05-03 18:43 ` Eli Zaretskii
2004-05-03 19:14 ` Miles Bader [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040503191435.GA21891@fencepost \
--to=miles@gnu.org \
--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 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.