From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Window background color Date: Mon, 06 Oct 2008 06:11:40 +0200 Message-ID: References: <83D6BD74-198E-4ABF-8F2C-2F4A09D31912@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223266415 32512 80.91.229.12 (6 Oct 2008 04:13:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2008 04:13:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 06 06:14:32 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KmhUO-0002SJ-AL for ged-emacs-devel@m.gmane.org; Mon, 06 Oct 2008 06:14:32 +0200 Original-Received: from localhost ([127.0.0.1]:44689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmhTK-0004AO-1v for ged-emacs-devel@m.gmane.org; Mon, 06 Oct 2008 00:13:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmhTF-0004A0-77 for emacs-devel@gnu.org; Mon, 06 Oct 2008 00:13:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmhTE-00049n-0s for emacs-devel@gnu.org; Mon, 06 Oct 2008 00:13:20 -0400 Original-Received: from [199.232.76.173] (port=46317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmhTD-00049k-SY for emacs-devel@gnu.org; Mon, 06 Oct 2008 00:13:19 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:27511) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KmhTD-0002Ni-Jn for emacs-devel@gnu.org; Mon, 06 Oct 2008 00:13:19 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.3.182]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K8A00CGRUDE9LC0@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Mon, 06 Oct 2008 06:12:50 +0200 (IST) In-reply-to: <83D6BD74-198E-4ABF-8F2C-2F4A09D31912@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104364 Archived-At: > From: David Reitter > 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.