unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Buffer-local faces patch
Date: 03 May 2004 13:58:38 +0200	[thread overview]
Message-ID: <m3n04pu3gx.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <87y8o9oilp.fsf@tc-1-100.kawasaki.gol.ne.jp>

Miles Bader <miles@gnu.org> writes:

> I tried hacking up my idea for implementing buffer-local faces, here's
> a patch.
> 
> The user interface is the variable `face-remappings':
> 
>    Alist of face mappings.
>    Each element is of the form:
>       (FACE . NEW-FACE)
>    or
>       (FACE NEW-FACE MERGE-FACE...),
>    which causes NEW-FACE to be used where FACE normally would.
>    If present, MERGE-FACE... are merged during display with NEW-FACE.
> 
> E.g., try evaluating the following in some buffer:
> 
>   (set (make-local-variable 'face-remappings) '((default . bold)))
> 
> It works (or seems to!) with other special faces like mode-line, etc., too.
> 
> Here's the patch; lemme know what you think:
> 

Looks like a very useful feature -- and quite non-intrusive as well.
I think we can install it, and see how it works out.  

I'm not sure about the name of the variable.  It seems that there is
a preference to have -alist as part of alist varibles...

So what about face-map-alist or face-remap-alist ?


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-05-03 11:58 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 [this message]
2004-05-03 18:43 ` Eli Zaretskii
2004-05-03 19:14   ` Miles Bader

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=m3n04pu3gx.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --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 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).