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

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

Re: interaction with "internal" emacs processes.


From: Kevin Rodgers
Subject: Re: interaction with "internal" emacs processes.
Date: Thu, 06 Oct 2005 11:56:37 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

mak kwak wrote:
> Example:
> (defun my-cvs-checkout-example ()
> ""
> (call-interactively 'cvs-checkout)
> (message "checking out cvs repository finished") ;;. I want it be run as cvs-checkout is finished and here it is not.
> )
>
> I expect that sometimes there is a special hook that is run after
> something is finished, but sometimes there is no such hook ( like here
> for example ). I also did not find any `wait' elisp function that
> would wait for other function to be finished.

defadvice.el is exactly for situations where Emacs doesn't provide a
hook:

(defadvice cvs-checkout (after message activate)
  "Display a message when finished."
  (message "cvs-checkout finished"))

--
Kevin Rodgers





reply via email to

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