From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Detect window switches? Date: 26 Sep 2013 02:50:53 GMT Message-ID: References: <87a9j12qtx.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380164114 4560 80.91.229.3 (26 Sep 2013 02:55:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2013 02:55:14 +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 04:55:18 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 1VP1ja-0007qr-LA for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 04:55:18 +0200 Original-Received: from localhost ([::1]:55855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP1ja-0007HM-10 for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 22:55:18 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: individual.net x+dnKHd5FLI+2GEyTngjaQ8TxDaw8plDa+9vumX8AVftmjudhA Cancel-Lock: sha1:GDdNh/u5UtFUHIUv0EU1bjwWzvs= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:201325 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:93594 Archived-At: Eli Zaretskii wrote: > Instead of selecting a solution, all by yourself, to a problem you > don't describe, and asking details about that solution, I suggest to > step back one notch and describe the problem you are trying to solve. > It is quite possible that solutions other and better than "detect a > window switch" will be suggested. 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. Since it's the visual effect I'm interested in, it's really only relevant when the buffer is being displayed in a window, which is why I asked the question this way. I would be equally happy with a hook that is called when a buffer switch takes place, but from what Google tells me, such a hook does not exist. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)