From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: change the background color of a single window Date: Tue, 19 Dec 2006 15:27:38 +0100 Organization: The Church of Emacs Message-ID: <87vek87yg5.fsf@hans.local.net> References: <87zm9k80qg.fsf@hans.local.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166538508 19223 80.91.229.2 (19 Dec 2006 14:28:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Dec 2006 14:28:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 19 15:28:26 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gwfwm-0007PZ-GZ for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Dec 2006 15:28:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gwfwm-0003vJ-19 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Dec 2006 09:28:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GwfwZ-0003tb-2B for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:27:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GwfwV-0003m6-KX for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:27:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GwfwV-0003lw-G0 for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:27:43 -0500 Original-Received: from [212.227.126.174] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GwfwU-0007L4-R8 for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:27:43 -0500 Original-Received: from [84.167.49.224] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1GwfwT2gng-00035j; Tue, 19 Dec 2006 15:27:41 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id C9E8F755E3; Tue, 19 Dec 2006 15:27:39 +0100 (CET) Original-To: "Juanma Barranquero" In-Reply-To: (Juanma Barranquero's message of "Tue\, 19 Dec 2006 15\:08\:56 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39743 Archived-At: "Juanma Barranquero" writes: > On 12/19/06, Dieter Wilhelm wrote: > >> (I >> wanted to show a helper window in the frame with another background to >> distinguish the windows better while saving the mode line space); > > With a little elisp programming you could try using overlays. You can > use one overlay over the whole buffer, and you could even limit the > overlay to only being visible in a particular window (so other windows > showing the same buffer would not display the overlay's effects). > > (let ((ov (make-overlay (point-min) (point-max) nil nil t))) > (overlay-put ov 'window (get-buffer-window MY-BUFFER)) > (overlay-put ov 'face MY-BACKGROUND-FACE)) > > Be sure to have a \n at the end of the last line, and it should work > reasonably enough, I think. > Good idea, this might be the way to proceed. I'll try it, thanks. -- Best wishes H. Dieter Wilhelm Darmstadt, Germany