all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Buffer-specific face overrides
@ 2004-08-26 15:45 Paul Moore
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Moore @ 2004-08-26 15:45 UTC (permalink / raw)


Is there a way in Emacs to specify the value of a face on a buffer-local basis? 
I know this is possible in XEmacs using specifiers, but these are not available 
(AFAICT) in Gnu Emacs, and I haven't found an equivalent.

As an example of what I want to achieve, I'd like to set the background colour 
of the *scratch* buffer to something different from the colour I use for other 
buffers.

I've checked the manuals and the FAQs (including the Windows one) and searched 
via Google (but it's hard to know what search terms to use) and haven't been 
able to find anything.

My Emacs version is GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) running on 
Windows 2000 (and also XP Pro).

It's not a big deal, but it's something I haven't been able to transfer over 
from my XEmacs setup so far.

Thanks for any help,
Paul.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
       [not found] <mailman.235.1093538166.1998.help-gnu-emacs@gnu.org>
@ 2004-08-26 19:28 ` Stefan Monnier
  2004-08-26 20:55   ` Paul Moore
  2004-08-27 10:09   ` John Robot
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan Monnier @ 2004-08-26 19:28 UTC (permalink / raw)


> Is there a way in Emacs to specify the value of a face on a buffer-local
> basis?  I know this is possible in XEmacs using specifiers, but these are
> not available  (AFAICT) in Gnu Emacs, and I haven't found an equivalent.

There is a patch by Miles Bader for such a feature.
Look for face-remapping-alist.


        Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
  2004-08-26 19:28 ` Buffer-specific face overrides Stefan Monnier
@ 2004-08-26 20:55   ` Paul Moore
  2004-08-26 22:00     ` Stefan Monnier
  2004-09-04 23:43     ` Miles Bader
  2004-08-27 10:09   ` John Robot
  1 sibling, 2 replies; 8+ messages in thread
From: Paul Moore @ 2004-08-26 20:55 UTC (permalink / raw)


Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Is there a way in Emacs to specify the value of a face on a buffer-local
>> basis?  I know this is possible in XEmacs using specifiers, but these are
>> not available  (AFAICT) in Gnu Emacs, and I haven't found an equivalent.
>
> There is a patch by Miles Bader for such a feature.
> Look for face-remapping-alist.

Thanks. Is there any likelihood that this will get into Emacs 21.4?

Paul
-- 
This signature intentionally left blank

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
  2004-08-26 20:55   ` Paul Moore
@ 2004-08-26 22:00     ` Stefan Monnier
  2004-09-04 23:43     ` Miles Bader
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2004-08-26 22:00 UTC (permalink / raw)


> Thanks.  Is there any likelihood that this will get into Emacs 21.4?

I think the probability is pretty close to 0.
It'll likely be added one way or another in the subsequent non-bugfix
version, tho, but we're talking several years ahead.


        Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
  2004-08-26 19:28 ` Buffer-specific face overrides Stefan Monnier
  2004-08-26 20:55   ` Paul Moore
@ 2004-08-27 10:09   ` John Robot
  2004-08-27 15:48     ` Kevin Rodgers
  1 sibling, 1 reply; 8+ messages in thread
From: John Robot @ 2004-08-27 10:09 UTC (permalink / raw)


And what about the fact of having another background color for
some buffers, by default?

For example : being able to say that the *shell* buffers will
always be with a dark background, or stuff like that?

Best regards,
  John

-- 
John Robot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
  2004-08-27 10:09   ` John Robot
@ 2004-08-27 15:48     ` Kevin Rodgers
  0 siblings, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2004-08-27 15:48 UTC (permalink / raw)


John Robot wrote:
 > And what about the fact of having another background color for
 > some buffers, by default?
 >
 > For example : being able to say that the *shell* buffers will
 > always be with a dark background, or stuff like that?

Since the set-face-ATTRIBUTE user function and the set-face-attribute
utility function accept an optional FRAME argument, you can do so on a
frame-by-frame basis.  Not to mention, background-color is a frame
parameter, which is frame-specific by definition.

So if you're willing to run your *shell* buffer in your own frame,
voila:

(setq special-display-buffer-names
       (cons "*shell*" special-display-buffer-names))

(let ((special-display-frame-alist
        (cons '(background-color . "dark") special-display-frame-alist)))
   (shell))

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
  2004-08-26 20:55   ` Paul Moore
  2004-08-26 22:00     ` Stefan Monnier
@ 2004-09-04 23:43     ` Miles Bader
  2004-09-21  5:09       ` David Combs
  1 sibling, 1 reply; 8+ messages in thread
From: Miles Bader @ 2004-09-04 23:43 UTC (permalink / raw)


Paul Moore <pf_moore@yahoo.co.uk> writes:
>> There is a patch by Miles Bader for such a feature.
>> Look for face-remapping-alist.
>
> Thanks. Is there any likelihood that this will get into Emacs 21.4?

Not really; for a while it looked like it might, but then I had an
argument with RMS over some details, and (1) I just don't have the
stomach to fight about it with a release pending, (2) the fact that it
happened indicates that the feature probably isn't ready for release
quite yet anyway.

If someone wants a patch against a recent CVS emacs, I'd be happy to
make one though (if anyone happens to use my "emacs-miles" arch branch,
it's already included there).

-Miles
-- 
Somebody has to do something, and it's just incredibly pathetic that it
has to be us.  -- Jerry Garcia

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Buffer-specific face overrides
  2004-09-04 23:43     ` Miles Bader
@ 2004-09-21  5:09       ` David Combs
  0 siblings, 0 replies; 8+ messages in thread
From: David Combs @ 2004-09-21  5:09 UTC (permalink / raw)


In article <878ybptxaw.fsf@tc-1-100.kawasaki.gol.ne.jp>,
Miles Bader  <miles@gnu.org> wrote:
>   ...
>If someone wants a patch against a recent CVS emacs, I'd be happy to
>make one though (if anyone happens to use my "emacs-miles" arch branch,
>it's already included there).
>
>-Miles
>-- 
>Somebody has to do something, and it's just incredibly pathetic that it
>has to be us.  -- Jerry Garcia

So, Miles, what have you added/fixed to your emacs?

Do a lot of people use it?

If so, maybe people like me should give it a try?

(Have used emacs for years and years and years, but, 
compared to most of the people in this
group, would be considered pretty much a beginner.  No,
I don't program (hardly at all) in elisp.  But I do
very much enjoy what few nifty tricks I'm managed
to pick up over the years.)

Where might I find your emacs -- assuming it's not
way beyond my ability ...?

Thanks!

David

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-09-21  5:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.235.1093538166.1998.help-gnu-emacs@gnu.org>
2004-08-26 19:28 ` Buffer-specific face overrides Stefan Monnier
2004-08-26 20:55   ` Paul Moore
2004-08-26 22:00     ` Stefan Monnier
2004-09-04 23:43     ` Miles Bader
2004-09-21  5:09       ` David Combs
2004-08-27 10:09   ` John Robot
2004-08-27 15:48     ` Kevin Rodgers
2004-08-26 15:45 Paul Moore

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.