From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: how can I run commands when window displays a different buffer? Date: Fri, 27 Oct 2017 12:18:40 +0000 Message-ID: References: <87o9os94qz.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1509106761 18596 195.159.176.226 (27 Oct 2017 12:19:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 12:19:21 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Amos Bird Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 14:19:18 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 1e83bY-0004K1-4Q for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 14:19:16 +0200 Original-Received: from localhost ([::1]:57092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e83bf-0002NG-EC for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 08:19:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e83bA-0002N4-1e for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:18:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e83b9-0004dl-Cj for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:18:52 -0400 Original-Received: from mail-yw0-x236.google.com ([2607:f8b0:4002:c05::236]:47542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e83b9-0004de-7c for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:18:51 -0400 Original-Received: by mail-yw0-x236.google.com with SMTP id u142so5547192ywg.4 for ; Fri, 27 Oct 2017 05:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oX4EgWaVhz9kyh1YzCkdkIeuC0OTXoSA6YhCgCtQuvc=; b=V61YnYqVnXf+xkmnT5mQ0EEOfOsndfn5o8iXKLiq9bp96F1bvczTbdwhZePa9M2SF6 6YkNKnmTEg7KMZtqg2p281q963tZTSNE6qT+0HbI7TdDBkvNWVBAxsaDTBrTUp6zbcnB N5WM2ZxnVay0WcyGp11uOGSk/qRzQ0u8ezh/nUfYN1ZqEdTNpNUG6mKT7ULJ4GuYWIwg +7D2Ko0e0de+p9FK7zCcqL3MXYl5LwStn3OCbSnn+PuYt58HPH/v35Moxl1lOSAGau6z 3+h4Uxi+JJptEp0CbzbV4t+H4kaH9LvBcc+zHIrazbK+uIJO21or5x+Nwq/DKAGiFlDP guug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oX4EgWaVhz9kyh1YzCkdkIeuC0OTXoSA6YhCgCtQuvc=; b=WkeWQLJ4hLCsY5BYPwEBwmV5SZhL/Z14ThE0T7iFmpzoJROGK4K6XvzAZVeZJ8DhMb wF5yZHGhcB47ZatWjvgICI0sCeFhVdVdK4t2nreJh9SCl2WGIYW7BxKs3qFiS71mY8uu 8eiHSJhlDqtEyd35ew/ZGwdK5lpbTFPNePPhUfdQFmLswKLPPLtvBt7JekGUXNpawOH5 W12nfHdNpP+WZaYNueugSCeSgMd94oyBEq9C0e5NXDMkp0nhkt+dgP/de6/ETbjyotNR 7ANY61A8jU/PwclQlsqhU/Ev59a95WnFbALS+oIeoIP84AiqXMG6xjb6jYvik1bsAm/P 0Z6Q== X-Gm-Message-State: AMCzsaVmU/CDTm+lvRUlg57modVGmoKX3VdJvnDNTjVVu0O5fkEOHF+G 5l04Hn+2h5Oe9W3oEQocCpQacZFlDsEniiz2ZkI= X-Google-Smtp-Source: ABhQp+QoX3pxjm1CSqONvQe/KBkr4eH84SrcawdDxDJczemGqYyXwDKqtNW+9oG4Bm2VYj7WKko+FyRWupcRH8UOdkQ= X-Received: by 10.37.218.136 with SMTP id n130mr173820ybf.447.1509106730632; Fri, 27 Oct 2017 05:18:50 -0700 (PDT) In-Reply-To: <87o9os94qz.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:114659 Archived-At: On Fri, Oct 27, 2017 at 8:05 AM Amos Bird wrote: > I know there is a window-configuration-change-hook that covers > this. But I need only the subset of the hook. What can I do? > The question is too broad.. "window displays a different buffer" -- That can happen by dozens of different commands: find-file, switch-to-buffer, pop-to-buffer, etc. What is your exact use case? -- Kaushal Modi