From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Javier Oviedo" Newsgroups: gmane.emacs.help Subject: modes and hooks... Date: Tue, 17 Jun 2003 17:38:38 -0400 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1055886538 31538 80.91.224.249 (17 Jun 2003 21:48:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 21:48:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 23:48:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SOJH-00087x-00 for ; Tue, 17 Jun 2003 23:48:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SOHY-00026r-TQ for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2003 17:46:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!In.nntp.be!gail.ripco.com!localhost!newsfeed.hal-mli.net!feeder1.hal-mli.net!attdl1!attdl2!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: gt64v7121.telogy.design.ti.com Original-X-Trace: home.itg.ti.com 1055885755 2028 158.218.105.183 (17 Jun 2003 21:35:55 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 17 Jun 2003 21:35:55 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-Xref: shelby.stanford.edu gnu.emacs.help:114534 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11026 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11026 Hello all: I want to run a function, automatically, after occur-mode has completed and a buffer of matches has been created, but I'm not sure how to do it. Is there a occur-mode-exit-hook, or something of the sort, that I could use in a add-hook statement? Is there a general rule of thumb about pre/post hooks? Any help would be great. Thanks in advance! Example: ;; run my function once occur-mode has completed and a buffer of matches has been created. (add-hook 'occur-mode-exit-hook 'my-occur-mode-function) -- Javier