help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistent white background


From: Pascal Bourguignon
Subject: Re: Persistent white background
Date: 15 Jan 2005 21:55:01 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Torsten Bronger <bronger@physik.rwth-aachen.de> writes:

> Hallöchen!
> 
> Pascal Bourguignon <spam@mouse-potato.com> writes:
> 
> > Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> >
> >> [...]  Everything works fine except for the background.  The
> >> proper background color is set only behind characters, but not in
> >> the empty part of the frame.  So my background is partly black
> >> (the actual set-background-color) and white.  [...]
> >
> > You must use both these calls:
> >
> >         (set-face-background 'border color)
> >         (set-background-color        color)

Oops, I forgot I have an advice on set-background-color:

  (defadvice set-background-color (after sbc-fringe last (color-name) activate)
    (when (facep 'fringe) (set-face-background 'fringe color-name)))


So, you'll need:

  (set-face-background 'border color)
  (set-background-color        color)
  (when (facep 'fringe) (set-face-background 'fringe color)))

 
> Unfortunately, this didn't help.  You can see how it looks like
> here:
> <http://www-users.rwth-aachen.de/torsten.bronger/emacs-screenshot.png>.

I see that you want a black background and the problem is that it
stays white from the last character of each line to the right fringe
of the frame.

Well ISTR that I had this once upon a time, but I can't find any
parameter in my ~/.emacs that seems relevant. I use emacs version
21.3.1.



Perhaps you have the white color specified in ~/.Xresources.  If you
have an emacs*background line in this file,  comment them out or
delete it. Then use:
    
    xrdb -load ~/.Xresources

to let the X server learn the changes.  But the presence of this line
does not change the correct behavior of my version of emacs...




-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

The world will now reboot.  don't bother saving your artefacts.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]