From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: interaction with "internal" emacs processes. Date: Mon, 10 Oct 2005 23:56:19 -0400 Organization: Bell Sympatico Message-ID: <87r7aslniq.fsf-monnier+gnu.emacs.help@gnu.org> References: <4345465ee37b0@wp.pl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129003319 17599 80.91.229.2 (11 Oct 2005 04:01:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2005 04:01:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 06:01:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPBJp-0003tV-GJ for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2005 06:00:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPBJp-0008Vd-0c for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2005 00:00:49 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:xDIoXm4uzd0w/qBt31tjw/9QQbQ= Original-Lines: 25 Original-NNTP-Posting-Host: 70.48.81.29 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1129002981 70.48.81.29 (Mon, 10 Oct 2005 23:56:21 EDT) Original-NNTP-Posting-Date: Mon, 10 Oct 2005 23:56:21 EDT Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news.ca.mci.com!news.uunet.ca!tor-nx1!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:134548 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30128 Archived-At: >> 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. PCL-CVS runs the command asynchronously, so upon completion of the underlying cvs process, Emacs runs the process's sentinel function (which in PCL-CVS parses the process's output to update the *cvs* buffer). I'm not sure what you want to do exactly, but maybe you want to implement your own cvs-checkout which does something extra after the checkout is finished, in which case you should probably reimplement the function, using cvs-mode-run (which takes a :postproc argument where you can specify code to be executed after the command terminates). Stefan