* 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
* Re: Window background color
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
1 sibling, 1 reply; 4+ messages in thread
From: Miles Bader @ 2008-10-06 4:06 UTC (permalink / raw)
To: David Reitter; +Cc: Emacs-Devel devel
David Reitter <david.reitter@gmail.com> writes:
> 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?
In my "tiling" branch, I've fixed some of that by adding a "clear window area"
operation that can do window-specific handling, and changing appropriate
callers to use that.
Maybe I should merge some of the more generic changes such as that to
the trunk.
-Miles
--
Infancy, n. The period of our lives when, according to Wordsworth, 'Heaven
lies about us.' The world begins lying about us pretty soon afterward.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Window background color
2008-10-06 4:06 ` Miles Bader
@ 2008-10-06 14:07 ` David Reitter
0 siblings, 0 replies; 4+ messages in thread
From: David Reitter @ 2008-10-06 14:07 UTC (permalink / raw)
To: Miles Bader; +Cc: Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
On 6 Oct 2008, at 00:06, Miles Bader wrote:
>
> In my "tiling" branch, I've fixed some of that by adding a "clear
> window area"
> operation that can do window-specific handling, and changing
> appropriate
> callers to use that.
That would provide a solution - can you make the specific patches
available?
(I had a look at your branch if that's the one on
arch.savannah.gnu.org. There's a lot of changes and I couldn't find
these ones.)
> Maybe I should merge some of the more generic changes such as that to
> the trunk.
... perhaps a 23.2 (or "feature") branch could be started so that such
changes can be merged early rather than late. See also:
On 6 Oct 2008, at 00:11, Eli Zaretskii wrote:
> I wouldn't do that, at least not now now, since this is how Emacs
> behaved since the introduction of faces, and we are in feature freeze.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Window background color
2008-10-06 3:47 Window background color David Reitter
2008-10-06 4:06 ` Miles Bader
@ 2008-10-06 4:11 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2008-10-06 4:11 UTC (permalink / raw)
To: David Reitter; +Cc: emacs-devel
> From: David Reitter <david.reitter@gmail.com>
> Date: Sun, 5 Oct 2008 23:47:39 -0400
>
> How does one set the background color of a window?
You can't, AFAIK.
> 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.
That's the expected behavior.
> 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?
I wouldn't do that, at least not now now, since this is how Emacs
behaved since the introduction of faces, and we are in feature freeze.
^ 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.