From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: Different buffer background depending on if window active Date: Tue, 19 May 2009 01:26:57 +0200 Message-ID: References: <7b501d5c0905171419y12d4ff28n8bec12cdcedb93a5@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242689323 11383 80.91.229.12 (18 May 2009 23:28:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 23:28:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 19 01:28:36 2009 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 1M6CG3-0006qC-Ih for ged-emacs-devel@m.gmane.org; Tue, 19 May 2009 01:28:35 +0200 Original-Received: from localhost ([127.0.0.1]:33020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6CG2-0002nj-Mr for ged-emacs-devel@m.gmane.org; Mon, 18 May 2009 19:28:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6CEk-0002Rt-TK for emacs-devel@gnu.org; Mon, 18 May 2009 19:27:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6CEg-0002Oh-79 for emacs-devel@gnu.org; Mon, 18 May 2009 19:27:14 -0400 Original-Received: from [199.232.76.173] (port=55695 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6CEf-0002OQ-Q3 for emacs-devel@gnu.org; Mon, 18 May 2009 19:27:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:50681 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6CEf-0006yF-A9 for emacs-devel@gnu.org; Mon, 18 May 2009 19:27:09 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M6CEd-0000Ry-LQ for emacs-devel@gnu.org; Mon, 18 May 2009 23:27:07 +0000 Original-Received: from remote2.student.chalmers.se ([129.16.29.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 May 2009 23:27:07 +0000 Original-Received: from bojohan+news by remote2.student.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 May 2009 23:27:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: remote2.student.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.90 (gnu/linux) Cancel-Lock: sha1:yRqpozi8mbJ3drjVFoP3LAHLXR4= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:110970 Archived-At: Stefan Monnier writes: >> I've always wanted to have the currently active window in Emacs have a >> different background color to see which one I'm currently "in" easier. >> One could imagine this as a part of a much larger change to have a >> whole set of different parameters depending on the currently active >> window. > >> Has this feature been requested before? Would it be cumbersome to >> implement? Is it desirable at all? Can this be hacked together using >> simple Emacs Lisp? > > It can probably be hacked together with a post-command-hook (or > a timer), together with face-remapping-alist. Changing the background through face-remapping-alist currently only works for the text portion of the buffer, not for the actual window.