all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Window background color
@ 2008-10-06  3:47 David Reitter
  2008-10-06  4:06 ` Miles Bader
  2008-10-06  4:11 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: David Reitter @ 2008-10-06  3:47 UTC (permalink / raw)
  To: Emacs-Devel devel

How does one set the background color of a window?

I use `face-remapping-alist' to define a `default' face for a buffer,  
with a specific background color.  This works fine unless the buffer  
is small and does not fill the whole window, or if I scroll to the  
end.  The area between the last line of the buffer and the bottom of  
the window is drawn in the frame's background color, rather than in  
the background color assigned with the default face in that buffer.

(I see this in a 23 CVS (Cocoa port) build.)

It appears that only a frame parameter is used and that the frame is  
cleared using a rif->clear_frame_area call, which is not specific to  
windows.  I haven't found the right fix for this so far.  Would it be  
sensible to change clear_frame_area to establish the right background  
color, i.e. the one associated with the default face appropriate for  
the buffer shown in the window (updated_window), and only default to  
the frame's background?





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

end of thread, other threads:[~2008-10-06 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06  3:47 Window background color David Reitter
2008-10-06  4:06 ` Miles Bader
2008-10-06 14:07   ` David Reitter
2008-10-06  4:11 ` Eli Zaretskii

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.