unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Miguel Guedes <miguel.a.guedes@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Buffer switching hook
Date: 29 Apr 2013 08:48:22 GMT	[thread overview]
Message-ID: <517e33d6$0$52692$862e30e2@ngroups.net> (raw)
In-Reply-To: 8738uc2jge.fsf@kuiper.lan.informatimago.com

On Sat, 27 Apr 2013 15:26:25 +0200, Pascal J. Bourguignon wrote:

> 
> There's a switch-to-buffer command, that you could advice, but it
> probably is not all that you mean.
> 
> For example, the user could change the selected window or/and the
> selected frame, and thus the current buffer, without switching to a
> different buffer in any window.

Apologies for my poor semantics. I thought my statement implied window/
frame switching because the active buffer may change (or not, i.e. same 
buffer in more than one window/frame.)

> 
> or post-command-hook.  But since those hooks are run for each command,
> including each character insertion, they must be very light.

Was hoping for an easier way of achieving this (such as a hook) but (pre/
post)-command-hook will do.

Many thanks for the help, Pascal.



      reply	other threads:[~2013-04-29  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-27 12:50 Buffer switching hook Miguel Guedes
2013-04-27 13:26 ` Pascal J. Bourguignon
2013-04-29  8:48   ` Miguel Guedes [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='517e33d6$0$52692$862e30e2@ngroups.net' \
    --to=miguel.a.guedes@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).