From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Detect window switches? Date: Fri, 27 Sep 2013 07:48:53 +0200 Message-ID: <52451C45.6020207@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 1380260959 19069 80.91.229.3 (27 Sep 2013 05:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Sep 2013 05:49:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: joostkremers@yahoo.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 27 07:49:22 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 1VPQvZ-0005DS-Do for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2013 07:49:21 +0200 Original-Received: from localhost ([::1]:33200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPQvY-0003xD-UF for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2013 01:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPQvI-0003ww-Q3 for help-gnu-emacs@gnu.org; Fri, 27 Sep 2013 01:49:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPQvB-0002cG-Cd for help-gnu-emacs@gnu.org; Fri, 27 Sep 2013 01:49:04 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPQvB-0002cA-39 for help-gnu-emacs@gnu.org; Fri, 27 Sep 2013 01:48:57 -0400 Original-Received: from [62.47.48.191] ([62.47.48.191]) by mail.gmx.com (mrgmx003) with ESMTPA (Nemesis) id 0LgISa-1WAshg0FAC-00nfP2 for ; Fri, 27 Sep 2013 07:48:56 +0200 Original-References: slrnl48pma.2vt.joostkremers@j.kremers4.news.arnhem.chello.nl X-Provags-ID: V03:K0:B7kl+odP3jVxuBZXEzEyQnDJ1U9PrWRXxMI2CiwThpzd7VH4JyZ Eu9paDihsdJ9GVa+5brr16AfPItVmue9Qm52ly/y58mevZYjXSIA+gMbd49ivvVm6Pt9Smz LlbXcyBHjgDw/AZA26tztlsruqhiH9VdKT5QBaJQ0FLHZP+9pCGbSUmPd/+oxVh715cxSgD UWlUTH0yjacHl9IQ5eOqg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 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:93651 Archived-At: > What I'd like to > know is if it's possible to detect when a window goes from being > selected to being not selected and vice versa. [...] > From what > I've been able to find on the internet, this isn't possible. On current trunk try (add-hook 'buffer-list-update-hook 'ding) martin