From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: how can I run commands when window displays a different buffer? Date: Fri, 27 Oct 2017 14:53:03 +0200 Message-ID: <59F32C2F.8020701@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509108819 18400 195.159.176.226 (27 Oct 2017 12:53:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 12:53:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: amosbird@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 14:53:35 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e848f-0003pt-PW for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 14:53:29 +0200 Original-Received: from localhost ([::1]:57208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e848n-0006Ht-0Z for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 08:53:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e848N-0006Hc-3l for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:53:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e848J-0003zz-G6 for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:53:11 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53082) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e848J-0003yF-5a for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:53:07 -0400 Original-Received: from [192.168.1.100] ([46.125.250.73]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M8mCe-1e2WDd08Ca-00CD9P; Fri, 27 Oct 2017 14:53:05 +0200 Original-References: 87o9os94qz.fsf@gmail.com X-Provags-ID: V03:K0:40y8nqGCBOYrM9eGQ7c7P2WrbNFj7gXINLmG2AWtwDwx0dkKfeh MvOdmTSKMwbvrgFJ/ZxiALDuX24ItXQBZj237ckdvglQY8Du/G4QrtdOCUWBMJ2IXenbPxa 7Lw7L4yoJJikrAu9OwLxtFrjc/y+wB5vnRHCrwpBAWoijzydMVMfWc4C4ENVkl5h5puIMI3 ZUxr270qA89n+WXFKoMsg== X-UI-Out-Filterresults: notjunk:1;V01:K0:dmOKDsM6kh4=:twRLPMb+hQgPlH7PGDCkKK HWotVmgj3mlnOGiKREnScequ7f1eEcf8JD4AcG+OR2pFDMGxTrB6tPHdqfvdfiIt0qDNGDcom 3zzo/M4/6y1jPb9BdndyseCLjM7v3gnwrTpIki8mXObH+p4SUqvzpjo8ZnwRcWedaOL8kHuRo 71htMx8DQuP/WjWsxKalcKLV5sVn3CObX6zr1pe3XR0oR/li8xtQVdZcBfN5ftUiT/j+und9O kp0Ytm9vmXUB8AmN3mLh/qVOkePixm1H0mvFBamhA/gJLkqCl+bJQpii9GDx0+iPZo93Pu/il qe4I1egD7RL1YLw618lE6u/73NqMqJSFB7SfsOUb/Vr4HG4SAfSRPE5mGVh2JP6keGsAdhCQn ea82lHHN4aAmcCaneRGxmBUVw1Sb5+BPbmpao8kVcxxegKgEGNQyoINRwewuWLVuWFqzbGc+n Ygx4wtBfUi8FhmDMvq+Qo8JvZHF6dBy5L+99Td/Mbv/SurGjvFBhXp9bXO956bC7+S3+6TbUS TNz0VA1veZBqovY6/HFHt/MupqVaeKmppC8JXL66HDLd84fFj9mDb9l7H1f60le+3cVwFpoFj CcTPtCftso9d9YGT+fHXIjNRsgylmmlqhOW4v/19iSDI4/iIIPyuYsodq62o2pq5rJ53qqyNq PEAtGw7L1hNsdxuRP5PlXUSR2skzmk1GPQb6C1cFdP7+b9EbHXCfcZkoIn8tM9PK89A9CY1tG Si9+Uq3M2/gk4TU1c3wgzkdpoocCzTTpHox5VlQ3bXHOSs0clP7lW+ClBq6tJqVZIVb9XhhB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114661 Archived-At: In a function on =E2=80=98window-configuration-change-hook=E2=80=99 you h= ave to remember all window-buffer associations in a list, removing defunct windows from that list. If you find a window whose association changed since the last time that hook was run (and maybe also if you find a new window), you know that that "window displays a different buffer" now. martin