From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kiwon Um Newsgroups: gmane.emacs.help Subject: Re: How to defun body in procedural manner Date: Thu, 16 Apr 2009 22:29:24 -0700 (PDT) Organization: http://groups.google.com Message-ID: <39da3b20-13c6-434a-a3d2-c796e81ec324@w35g2000prg.googlegroups.com> References: <54d389f8-ce90-428d-8fa1-a88c971589d5@d2g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239947098 21800 80.91.229.12 (17 Apr 2009 05:44:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2009 05:44:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 17 07:46:17 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lugu0-0000jj-Me for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 07:46:17 +0200 Original-Received: from localhost ([127.0.0.1]:45013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lugsc-0000um-0O for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 01:44:50 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w35g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 163.152.71.53 Original-X-Trace: posting.google.com 1239946164 11873 127.0.0.1 (17 Apr 2009 05:29:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Apr 2009 05:29:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w35g2000prg.googlegroups.com; posting-host=163.152.71.53; posting-account=6v9_LQoAAACIrmHTUxB_-iw-j364OtYr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; ko-KR; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1 Firefox/3.0.8,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168519 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:63792 Archived-At: On 4=BF=F917=C0=CF, =BF=C0=C8=C41=BD=C337=BA=D0, Barry Margolin wrote: > In article > <54d389f8-ce90-428d-8fa1-a88c97158...@d2g2000pra.googlegroups.com>, > Kiwon Um wrote: > > > Hello. I wrote a function as follows: > > > (defun my-update-package (path) > > "Update the package in path from CVS" > > (cvs-update path nil) > > (shell-command (concat "touch `find " path " -name Makefile`")) > > (compile (concat "make -C " path))) > > > When the function is called, it seems to execute the shell-command and > > compile lines before the finishing cvs-update line. How can I make > > this functional execution procedurally? Help me, please. > > Lisp does execute procedurally. The problem is that cvs-update starts a > background process to do the work, and then returns. > > -- > Barry Margolin, bar...@alum.mit.edu > Arlington, MA > *** PLEASE post questions in newsgroups, not directly to me *** > *** PLEASE don't copy me on replies, I'll read them in the group *** Thanks for your reply. So how can I check the return time of the background process?