unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joakim Hove <hove@ift.uib.no>
Subject: Re: is there any hook like switch-buffer-hook or change-buffer-hook?
Date: Fri, 27 Aug 2004 08:29:56 +0200	[thread overview]
Message-ID: <bjjacwhxfdn.fsf@termo1.fi.uib.no> (raw)
In-Reply-To: cgm0pk$muj$1@quimby.gnus.org


Vektor <XYZvektorXYZ@XYZyeahXYZ.net> writes:

> i want to do something when i switch among buffers, but i don't find
> variable like switch-buffer-hook or change-buffer-hook.

I dont know for sure, but a quick check of: M-x apropos 'buffer.*hook'
revealed nothing.

> or there is another way to do such a thing?

Maybe you could try to advise the set-buffer or switch-to-buffer
functions. See the section "Advising Functions" in the Elisp (info)
manual.


HTH - Joakim


-- 
Joakim Hove
hove AT ift uib no
+47 (55 5)8 27 90
http://www.ift.uib.no/~hove/

  reply	other threads:[~2004-08-27  6:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27  0:48 is there any hook like switch-buffer-hook or change-buffer-hook? Vektor
2004-08-27  6:29 ` Joakim Hove [this message]
2004-08-28  5:41   ` Vektor
2004-08-27  7:23 ` Sandip Chitale
2004-08-27 10:04   ` Eli Zaretskii
     [not found]   ` <mailman.325.1093601689.1998.help-gnu-emacs@gnu.org>
2004-08-27 20:49     ` Sandip Chitale
2004-08-27 12:51 ` Johan Bockgård
2004-08-27 16:18 ` 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

  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=bjjacwhxfdn.fsf@termo1.fi.uib.no \
    --to=hove@ift.uib.no \
    /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).