From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: setting the window background? Date: Thu, 08 Mar 2012 11:39:42 +0100 Message-ID: References: <83r4x41dwd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331203257 24558 80.91.229.3 (8 Mar 2012 10:40:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2012 10:40:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 08 11:40:54 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S5amB-0001oc-8J for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2012 11:40:51 +0100 Original-Received: from localhost ([::1]:47578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5amA-0003FP-LN for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2012 05:40:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5am2-0002xu-Dj for emacs-devel@gnu.org; Thu, 08 Mar 2012 05:40:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5alv-00040X-Ow for emacs-devel@gnu.org; Thu, 08 Mar 2012 05:40:41 -0500 Original-Received: from mx2.bahnhof.se ([213.80.101.12]:55203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5alv-000404-IO; Thu, 08 Mar 2012 05:40:35 -0500 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx2-reinject (Postfix) with ESMTP id 32FC4D4EDB; Thu, 8 Mar 2012 11:40:35 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF3) Original-Received: from mf3.bahnhof.se ([127.0.0.1]) by localhost (mf3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gHdwWVoLJapK; Thu, 8 Mar 2012 11:40:25 +0100 (CET) Original-Received: from exodia.localdomain (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf3.bahnhof.se (Postfix) with ESMTP id 3DA76605065; Thu, 8 Mar 2012 11:39:52 +0100 (CET) Original-Received: from chopper.vpn.verona.se (unknown [192.168.202.6]) by exodia.localdomain (Postfix) with ESMTP id 82F8A4E00BF; Thu, 8 Mar 2012 11:39:43 +0100 (CET) In-Reply-To: (Miles Bader's message of "Thu, 08 Mar 2012 13:09:29 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 213.80.101.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148930 Archived-At: Miles Bader writes: > Eli Zaretskii writes: >>> Is it correct that there is a way to set the frame background but no way >>> to set the window background? >> >> Yes. You don't set the background of a frame, you set the background >> of the frame's default face. And faces are local to frames in Emacs. > > ... but can be overridden within a buffer, e.g.: > > ;; change background color > (setq foo (face-remap-add-relative 'default '(:background "dark green"))) > ... > ;; revert background color to default > (face-remap-remove-relative foo) > > Unfortunately there's a bug that causes the default face to not work > quite how one might want in this case -- the space after the last > position in the buffer is not changed. However for some uses it may > be good enough. Nice! But theres no way to bind this to a window rather than a buffer right? > > -Miles -- Joakim Verona