all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Amos Bird <amosbird@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: how can I run commands when window displays a different buffer?
Date: Fri, 27 Oct 2017 20:46:14 +0800	[thread overview]
Message-ID: <87mv4c92sp.fsf@gmail.com> (raw)
In-Reply-To: <CAFyQvY1tKJe_kWL7PqfMnt=UQomnEY0Fx1BpycYG-Ezx38eS-w@mail.gmail.com>

 
Hi Modi,

I'd like to add a (recenter) command after all these commands.

regards,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> On Fri, Oct 27, 2017 at 8:05 AM Amos Bird <amosbird@gmail.com> 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?


-- 
Amos Bird
amosbird@gmail.com



  reply	other threads:[~2017-10-27 12:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-27 12:04 how can I run commands when window displays a different buffer? Amos Bird
2017-10-27 12:18 ` Kaushal Modi
2017-10-27 12:46   ` Amos Bird [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-10-27 12:53 martin rudalics
2017-10-27 13:34 ` Amos Bird
2017-10-28  8:45   ` martin rudalics
2017-10-28  8:56     ` Amos Bird
2017-10-30  1:52     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mv4c92sp.fsf@gmail.com \
    --to=amosbird@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.