From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: is there any hook like switch-buffer-hook or change-buffer-hook? Date: Fri, 27 Aug 2004 16:18:00 GMT 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 1093623648 31224 80.91.224.253 (27 Aug 2004 16:20:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 16:20:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 27 18:20:27 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 1C0jSk-0003da-00 for ; Fri, 27 Aug 2004 18:20:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0jXQ-0006t3-1C for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Aug 2004 12:25:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1093623480 132.204.24.84 (Fri, 27 Aug 2004 12:18:00 EDT) Original-NNTP-Posting-Date: Fri, 27 Aug 2004 12:18:00 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:124979 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:20329 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20329 > 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 suspect that you don't really understand what is "a buffer switch" seen from elisp's point of view (i.e. that you have your own idea of what is a "buffer switch" but that Emacs would have to read your mind in order to know when those things happen and when they don't). So could you explain exactly what you want to do? Stefan