From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joakim Hove Newsgroups: gmane.emacs.help Subject: Re: is there any hook like switch-buffer-hook or change-buffer-hook? Date: Fri, 27 Aug 2004 08:29:56 +0200 Organization: University of Bergen Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093588241 3372 80.91.224.253 (27 Aug 2004 06:30:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 06:30:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 27 08:30:35 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C0aFu-0001vb-00 for ; Fri, 27 Aug 2004 08:30:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0aKZ-0001tX-Er for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Aug 2004 02:35:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!npeer.de.kpn-eurorings.net!uio.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: termo1.fi.uib.no Original-X-Trace: toralf.uib.no 1093588191 34034 129.177.39.206 (27 Aug 2004 06:29:51 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 27 Aug 2004 06:29:51 GMT User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:avWTh5XzupwABAI2dfZBjoIxDds= Original-Xref: shelby.stanford.edu gnu.emacs.help:124963 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.help:20313 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20313 Vektor 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/