help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking Process Status


From: David Kastrup
Subject: Re: Checking Process Status
Date: 13 Feb 2003 00:17:15 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"CarlC" <carlc@snowbd.com> writes:

> "David Kastrup" <dak@gnu.org> wrote in message
> x5wuk52k8v.fsf@lola.goethe.zz">news:x5wuk52k8v.fsf@lola.goethe.zz...
> > I'd use
> > (defadvice compile (around cobol-compile activate)
> >   "Set ...."
> >   (let ((saved-start-process (symbol-function 'start-process)))
> >        (unwind-protect
> >          (progn (fmakunbound 'start-process) ad-to-it)
> >          (fset 'start-process saved-start-process))))
> 
> I haven't taken the time to figure out the "around" command. Is this like an
> "if", where the first function goes before and all others go after the
> compile function? The main part of my need is to add stuff after the
> compilation has finished, but I also do some things prior to compiling.

It will take you much shorter to read the existing documentation for
the advice command in the Emacs Lisp manual than it would take me to
type it up again.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]