From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird Newsgroups: gmane.emacs.help Subject: how can I run commands when window displays a different buffer? Date: Fri, 27 Oct 2017 20:04:04 +0800 Message-ID: <87o9os94qz.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1509105935 26958 195.159.176.226 (27 Oct 2017 12:05:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 12:05:35 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.3.1 To: "help-gnu-emacs\@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 14:05:23 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 1e83O2-0005AZ-Ac for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 14:05:18 +0200 Original-Received: from localhost ([::1]:57011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e83O9-00060M-MS for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 08:05:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e83My-0005jJ-UZ for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:04:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e83My-0003bN-8Z for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:04:12 -0400 Original-Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:56089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e83My-0003az-39 for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 08:04:12 -0400 Original-Received: by mail-pf0-x231.google.com with SMTP id 17so4809694pfn.12 for ; Fri, 27 Oct 2017 05:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:user-agent:date:message-id:mime-version; bh=jOLkq1uGAYXoEbLp4gQUTKdFVrzNnRZ7wDTtjujlK0o=; b=Jq/whh+s3DgcY57JCABPG5gd4YcBSQHIHanRnU4W3VkFeaX6xx4cew7+7vaHGcZHke tv2qCZTvvEQkOKfk53JOrrTCmgqDQbz1oAoD1KE9J+gb0GUnOPOfLk4wnVmeqc0JqPsW f5/CI7LBwh6CItuv36Dh8WCV5BuhAIP4KfqbxqmTfPp7s+ynxfp0xE0waoLYjrkw9fgB JMhDBf6BviVF3ftJww9N0bI8DYF0i+vTtT61W94I7vML6NfZ2rdE29r7PrXa0hmf01+I sT8FJGUgAagbiK/XQkg61xRLbcxUjpzE7HHr0x4cnSF2wXffxGBzTr01zGIEmo3iCly8 44JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version; bh=jOLkq1uGAYXoEbLp4gQUTKdFVrzNnRZ7wDTtjujlK0o=; b=CDUT8tFJuN+NXEH1onnO5VElnure9i+c+RVm52+CcjIzsWKqKRBHR9gW2veAQu3sJf BoPeAwjsCkDjK/DLjnXmoGhQlWdTrjaGXnGT84q2oiCJ5uP1VwaWFoAlG9VCINRTZ2Ao kcxtqxTptepT6ze2GI2HweVxHBedS7/3CA226P7GlhfOeXhorKbHPLcda22mCRFjd6h9 v1iqK4IkfJqSlS3qf4xDSULsbq9zeMGosyu6vWQDf3G+VyreIzRU4oUlz4xVJUryXK/8 y0L7+CA+XVYFsNJfiXFoEGAOYjlc8FB31sq4dahyGB/7vqcP9G94OCCCVXv6sbd0ga2f cA/A== X-Gm-Message-State: AMCzsaXdRAp791+KJmUiz+mhECQmyRf/E8XW2wntcjb/hRr5Ekr+Ha2d nW8pM0YF1X88seECKjDiTmo2Wf7d X-Google-Smtp-Source: ABhQp+Rt4PEZfxRpYwIjmCHhgViDG63VOb+HGIqhyLVTSXKj5eqjmQ+BXVf0WJ7u/2L0bhkCk4LtbQ== X-Received: by 10.99.127.26 with SMTP id a26mr55425pgd.385.1509105848690; Fri, 27 Oct 2017 05:04:08 -0700 (PDT) Original-Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id n62sm16033796pfh.95.2017.10.27.05.04.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Oct 2017 05:04:07 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::231 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:114658 Archived-At: Hi, 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? regards, -- Amos Bird amosbird@gmail.com