From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Detect window switches? Date: Thu, 26 Sep 2013 09:45:47 +0300 Message-ID: <83y56kf5d0.fsf@gnu.org> References: <87a9j12qtx.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380177985 13420 80.91.229.3 (26 Sep 2013 06:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2013 06:46:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 08:46:28 2013 Return-path: Envelope-to: geh-help-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 1VP5LG-0002Q3-33 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 08:46:26 +0200 Original-Received: from localhost ([::1]:56477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP5LF-00038E-NB for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 02:46:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP5Ky-000373-C7 for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 02:46:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP5Kr-0007mD-1l for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 02:46:08 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:38103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP5Kq-0007m6-PK for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 02:46:00 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MTQ00500018YJ00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 09:45:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MTQ005G204MXV10@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 26 Sep 2013 09:45:59 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:93597 Archived-At: > From: Joost Kremers > Date: 26 Sep 2013 02:50:53 GMT > > What I'd like to do is remove a highlight from a buffer or change its > appearance when said buffer is not current, and restore it when it > becomes current again. Similar to what happens to the cursor in a window > that is not selected. OK, but the requirements are still not clear. First, what do you mean by "remove a highlight from a buffer", and what "change in its appearance" did you have in mind? And second, what if the same buffer is displayed in more than one window? Finally, why the differences in the mode-line appearance are not already what you want?