From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Donald Curtis Newsgroups: gmane.emacs.bugs Subject: bug#16874: 24.3.50; Regression in active window detection Date: Thu, 6 Mar 2014 22:31:37 -0800 Message-ID: References: <87eh2rftna.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160b99a56576904f3fe6acb X-Trace: ger.gmane.org 1394174171 6371 80.91.229.3 (7 Mar 2014 06:36:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2014 06:36:11 +0000 (UTC) Cc: 16874@debbugs.gnu.org, damien.cassou@gmail.com To: rudalics@gmx.at Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 07:36:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WLoOI-00066v-GF for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 07:36:18 +0100 Original-Received: from localhost ([::1]:34648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLoOI-00009H-0e for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 01:36:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLoO8-000072-SO for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 01:36:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLoO2-0001gq-Qu for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 01:36:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLoO2-0001gm-Mm for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 01:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WLoO2-0002I4-2h for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 01:36:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87eh2rftna.fsf@gmail.com> Resent-From: Donald Curtis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Mar 2014 06:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16874-submit@debbugs.gnu.org id=B16874.13941741398759 (code B ref 16874); Fri, 07 Mar 2014 06:36:01 +0000 Original-Received: (at 16874) by debbugs.gnu.org; 7 Mar 2014 06:35:39 +0000 Original-Received: from localhost ([127.0.0.1]:54137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLoNd-0002HC-Te for submit@debbugs.gnu.org; Fri, 07 Mar 2014 01:35:38 -0500 Original-Received: from mail-la0-f51.google.com ([209.85.215.51]:35319) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLoKR-0002BP-GY for 16874@debbugs.gnu.org; Fri, 07 Mar 2014 01:32:20 -0500 Original-Received: by mail-la0-f51.google.com with SMTP id pv20so2466439lab.38 for <16874@debbugs.gnu.org>; Thu, 06 Mar 2014 22:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:cc:content-type; bh=NUDYjHbikq3Mnh3yxsemgkZkPzrsDHI0VBW4KzDNrBs=; b=ptyhn2ATOUn43AYOuaVgfDuLR1vpyCDY9n1sb+v1mVM+EkMEVu6AQnjkKuLRKtDX6C EYw+j9rSXHM3fBmJ36XzN62bxy278tAxiW37f8mgKA0zo4WW60P4m2gGG0Gd3Ho2nTsW 08zgEoAbGV87PlwBkqY3yUV+rS/G+sL8arBOlyr8VXXzacz6lhJeHfhe+m2hP/+WM16T RpM8vZv/lJUWEoBSOctjUCHqlEtnIejBApt/kwO/Hg1D9KWePcQnqoYbFSmMLayjPrYx C8k2qK3L0/ZXu63sM0MoNt0l01NQHce/Dw2zk0RbopK1CJz/IUS28ZPsCJaYEM/GtmS9 4oNA== X-Received: by 10.152.23.169 with SMTP id n9mr327515laf.45.1394173938127; Thu, 06 Mar 2014 22:32:18 -0800 (PST) Original-Received: by 10.112.33.47 with HTTP; Thu, 6 Mar 2014 22:31:37 -0800 (PST) X-Google-Sender-Auth: rBUwonYMyCO4I_u39KB9HKwUGtM X-Mailman-Approved-At: Fri, 07 Mar 2014 01:35:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86618 Archived-At: --089e0160b99a56576904f3fe6acb Content-Type: text/plain; charset=UTF-8 apologies for taking my sweet time in responding. so what I am trying to do is set the modeline to be a bit different depending on which window is currently selected. as it stands, there is a `mode-line` face and a `mode-line-inactive face`. somehow emacs changes the default face for each mode-line depending on whether it is for the "active" window or not. I want to be able to customize other parts of the mode-line depending on whether it is selected or not. for example, you cannot make the `mode-line-buffer-id` face different depending on whether its being displayed in the active window or not. so the code I had written was able to detect whether the mode-line was being displayed in the active window or not. now that things have changed, my code falls on its face. the currently suggested method is to wrap advice around the "select-window" function and add a few hooks. --089e0160b99a56576904f3fe6acb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
apologies for taking my sweet time in responding.

so what I am trying to do is set the modeline to be a= bit different depending on which window is currently selected. as it stand= s, there is a `mode-line` face and a `mode-line-inactive face`. somehow ema= cs changes the default face for each mode-line depending on whether it is f= or the "active" window or not. I want to be able to customize oth= er parts of the mode-line depending on whether it is selected or not.

for example, you cannot make the `mode-line-buffer-id` = face different depending on whether its being displayed in the active windo= w or not.

so the code I had written was able to de= tect whether the mode-line was being displayed in the active window or not.=

now that things have changed, my code falls on its face= . the currently suggested method is to wrap advice around the "select-= window" function and add a few hooks.

--089e0160b99a56576904f3fe6acb--