From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: change the background color of a single window Date: Tue, 19 Dec 2006 15:08:56 +0100 Message-ID: References: <87zm9k80qg.fsf@hans.local.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166537403 14931 80.91.229.2 (19 Dec 2006 14:10:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Dec 2006 14:10:03 +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:09:59 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 1Gwfee-0002aP-6E for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Dec 2006 15:09:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gwfed-00066d-KP for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Dec 2006 09:09:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GwfeP-00066B-2q for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:09:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GwfeM-000659-Gv for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:09:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GwfeM-000656-EB for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:08:58 -0500 Original-Received: from [66.249.92.175] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GwfeM-0002sy-1B for help-gnu-emacs@gnu.org; Tue, 19 Dec 2006 09:08:58 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so2161724ugf for ; Tue, 19 Dec 2006 06:08:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Eyt8nQ2NAAC2FSbOGm26FoQDEld/z8QrEAWkFvHYDbsnZZT90LRBJlzvPaVXGXctSIwqE4oE1FWHzdGQiHHaB+OnBCyCyeYj+jmjlzaSdvTJ0gM4eqIDDRlPbsKuTqE+oUibySpbRXQUgfI8bp4oWTFII2zWkgdPbjeqxJprfpQ= Original-Received: by 10.82.118.2 with SMTP id q2mr1121947buc.1166537336925; Tue, 19 Dec 2006 06:08:56 -0800 (PST) Original-Received: by 10.82.147.2 with HTTP; Tue, 19 Dec 2006 06:08:56 -0800 (PST) Original-To: "Dieter Wilhelm" In-Reply-To: <87zm9k80qg.fsf@hans.local.net> Content-Disposition: inline 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:39742 Archived-At: 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. /L/e/k/t/u