unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Buffer-local faces
Date: Tue, 04 May 2004 08:45:21 +0300	[thread overview]
Message-ID: <87hduwyccu.fsf@mail.jurta.org> (raw)
In-Reply-To: <20040503232700.GB9451@fencepost> (Miles Bader's message of "Mon, 3 May 2004 19:27:00 -0400")

Miles Bader <miles@gnu.org> writes:
> Actually, this doesn't work currently (not sure why), but I thought a nice
> use would be something like (region region bold) -- which would _extend_ the
> region face to also boldify stuff, as opposed to (region bold) which would
> _replace_ the region face.  Allowing this source of `mixin' face would be
> very handy for users I think.

Then subtracting face attributes would be useful too.  For example,
using the `-' symbol before the face name could remove its attributes
from the composed face, e.g. using (region region - bold) to remove
all attributes of the `bold' face whose values are equal to attribute
values of the `region' face.  This may complicate things, but this
is no less useful than merging faces.

And using (setq face-remapping-alist '((default - bold))) could remove
the `bold' attributes from all faces.  I don't know if this can be
easily added to your current patch since it requires iterating over
all faces and removing attributes from faces inheriting from the face
in key position of every element of `face-remapping-alist'.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2004-05-04  5:45 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-03 13:03 Buffer-local faces Miles Bader
2004-05-03 13:33 ` Miles Bader
2004-05-03 22:20 ` Richard Stallman
2004-05-03 23:19   ` Miles Bader
2004-05-04  5:56     ` Eli Zaretskii
2004-05-04 13:27     ` Stefan Monnier
2004-05-04 20:07     ` Richard Stallman
2004-05-03 22:42 ` Stefan Monnier
2004-05-03 23:27   ` Miles Bader
2004-05-04  5:45     ` Juri Linkov [this message]
2004-05-04  8:22       ` Miles Bader
2004-05-04 13:37         ` Stefan Monnier
2004-05-04 14:02           ` Miles Bader
2004-05-04 14:10             ` Stefan Monnier
2004-05-05 20:20               ` Richard Stallman
2004-05-05 20:20             ` Richard Stallman
2004-05-06 13:55               ` Miles Bader
2004-05-05 20:20           ` Richard Stallman
2004-05-05 20:43             ` Stefan Monnier
2004-05-05  8:09         ` Richard Stallman
2004-05-04 20:08       ` Richard Stallman
2004-05-04  9:18     ` David Kastrup
2004-05-04  9:57       ` Miles Bader
2004-05-04  8:40         ` Kim F. Storm
2004-05-04  9:59       ` Juri Linkov
2004-05-05 20:20         ` 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

  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=87hduwyccu.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).