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: Re: modes and hooks... Date: Thu, 19 Jun 2003 12:57:56 -0400 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3EF0D798.9080408@yahoo.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056042792 28048 80.91.224.249 (19 Jun 2003 17:13:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 17:13:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 19 19:13:01 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 19T2y4-0007H3-00 for ; Thu, 19 Jun 2003 19:13:00 +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 19T2n5-000177-Vj for gnu-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2003 13:01:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-quince!easynet.net!teaser.fr!freenix!wanadoo.fr!proxad.net!peer1.news.newnet.co.uk!peer1.news.newnet.co.uk!newsfeed.hal-mli.net!feeder1.hal-mli.net!attdl1!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: gt64v7121.telogy.design.ti.com Original-X-Trace: home.itg.ti.com 1056041708 11690 158.218.105.183 (19 Jun 2003 16:55:08 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 19 Jun 2003 16:55:08 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:114587 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:11080 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11080 Thanks. I'll give it a try. -- Javier "Kevin Rodgers" wrote in message news:3EF0D798.9080408@yahoo.com... > Javier Oviedo wrote: > > > 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? > > If `M-x apropos RET occur.*hook RET' doesn't show anything useful, you can > always use advice(.el): > > (defadvice occur (after activate joviedo) > ...) > > -- > Kevin Rodgers >