From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#13225: 24.3.50; Non-selected window has not mode-line-inactive face Date: Sat, 22 Dec 2012 18:42:04 +0100 Message-ID: <50D5F0EC.9060303@gmx.at> References: <50D176DF.4080102@gmx.at> <83zk1anhzd.fsf@gnu.org> <50D2E16B.70804@gmx.at> <50D349EF.9020003@gmx.at> <50D428D2.9090105@gmx.at> <50D5DA43.1070008@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356198171 16521 80.91.229.3 (22 Dec 2012 17:42:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2012 17:42:51 +0000 (UTC) Cc: 13225@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 22 18:43:06 2012 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 1TmT6H-00031R-CF for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2012 18:43:05 +0100 Original-Received: from localhost ([::1]:50500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmT63-0002FO-J5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2012 12:42:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmT5y-0002FF-0F for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 12:42:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmT5u-0005NF-QR for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 12:42:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmT5u-0005NA-O6 for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 12:42:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TmT6E-0006wQ-AA for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 12:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Dec 2012 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13225-submit@debbugs.gnu.org id=B13225.135619815726648 (code B ref 13225); Sat, 22 Dec 2012 17:43:02 +0000 Original-Received: (at 13225) by debbugs.gnu.org; 22 Dec 2012 17:42:37 +0000 Original-Received: from localhost ([127.0.0.1]:55754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmT5o-0006vk-O7 for submit@debbugs.gnu.org; Sat, 22 Dec 2012 12:42:37 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:60397) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmT5m-0006vc-D3 for 13225@debbugs.gnu.org; Sat, 22 Dec 2012 12:42:35 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Ldb0m-1TMRvT1pis-00igSI for <13225@debbugs.gnu.org>; Sat, 22 Dec 2012 18:42:13 +0100 Original-Received: (qmail invoked by alias); 22 Dec 2012 17:42:12 -0000 Original-Received: from 62-47-46-229.adsl.highway.telekom.at (EHLO [62.47.46.229]) [62.47.46.229] by mail.gmx.net (mp001) with SMTP; 22 Dec 2012 18:42:12 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19e2qMzY7RekhLcgkTHHZOuEA+7cEGp4qY48RnMwf Y1b2qjlQpRSTzR In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:68914 Archived-At: > I believe we always do, especially when (potentially) running Elisp > code, which can in turn run pretty much any code. Who am I to object? I thought the purpose of this was that a user can, in her mode line code, call `frame-selected-window' to check whether the currently selected window really is the selected window (at least in a one-frame environment). If we synchronize the frame's selected window too, there's no way to get that any more. Not that such a kludgy behavior seems reasonable ... > Oh, that's what you mean. Yes, maybe we could/should just use > select_window(_norecord) (which is not just the way > run_window_configuration_change_hook does it, If the function on the hook is local to the window's buffer, it does precisely that. Which is not entirely kosher because that function will have no idea about the really selected window but we always have the global hook for that. > but is more generally the > normal way to do it). My recent change already brings display_mode_lines > closer to what select_window does. IIUC display_mode_lines contains the only Lisp running code where the selected window does not necessarily equal the selected window of its frame. So it might be worth to fix this. martin