From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: Distinguish inactive windows Date: Thu, 23 Jun 2011 17:52:36 -0700 Message-ID: <20110623175236.0cfa498d@gauss> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308876839 4232 80.91.229.12 (24 Jun 2011 00:53:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2011 00:53:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 02:53:55 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZueg-0001Wo-Cc for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jun 2011 02:53:54 +0200 Original-Received: from localhost ([::1]:54927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZuef-0007hx-PF for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jun 2011 20:53:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZudV-0007hp-9D for help-gnu-emacs@gnu.org; Thu, 23 Jun 2011 20:52:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZudU-0000qH-5z for help-gnu-emacs@gnu.org; Thu, 23 Jun 2011 20:52:41 -0400 Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.123]:57443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZudU-0000q8-3o for help-gnu-emacs@gnu.org; Thu, 23 Jun 2011 20:52:40 -0400 X-Authority-Analysis: v=1.1 cv=aeMH4JcVOnVr0LmJAzqEvfnmJyuaZufWdlng4HTRGCk= c=1 sm=0 a=kj9zAlcOel0A:10 a=aH9rrzxNilo9zfKgDQpEiQ==:17 a=hBB7MhJ82j2jKe60EIEA:9 a=CjuIK1q_8ugA:10 a=aH9rrzxNilo9zfKgDQpEiQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 72.130.158.15 Original-Received: from [72.130.158.15] ([72.130.158.15:49543] helo=gauss) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 82/8B-03893-4DFD30E4; Fri, 24 Jun 2011 00:52:37 +0000 X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.180.132.123 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81414 Archived-At: I'm creating an application where focus is in a particular Emacs frame, call it the control panel. Events in the control panel affect a selected window in a separate frame. How can the selected window be visually distinguished from the other windows in its frame? I'd like to, say, set mode-line background of the selected window to a particular color. Using (set-face-background 'mode-line-inactive "yellow") doesn't work because that changes the mode-line of all inactive windows, not just the one desired. Similarly, setting mode-line doesn't work because the active window is in the control panel, not the one that is being changed. -- Joe Riel