From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How to defun body in procedural manner Date: Fri, 17 Apr 2009 00:37:13 -0400 Organization: A noiseless patient Spider Message-ID: References: <54d389f8-ce90-428d-8fa1-a88c971589d5@d2g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1239943253 14822 80.91.229.12 (17 Apr 2009 04:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2009 04:40:53 +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 06:42:12 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 1Luftz-0004Ry-LW for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 06:42:11 +0200 Original-Received: from localhost ([127.0.0.1]:46784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lufsa-0004cl-S9 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 00:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!85.214.105.209.MISMATCH!motzarella.org!feeder.motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-X-Trace: news.eternal-september.org U2FsdGVkX18g69TQ9aSbJHPxd3Kh+J68rHbY9PN4bZ1fNjmAEesiCBmHitgPsY25orkJ8C+bU15fApkz2JcyS60/MJAilJZ8/vjsHr6T12C20NIM4+UVfA9P7/0h4VxUkrBf4Dtb+c1EPFmj54zq/w== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Fri, 17 Apr 2009 04:36:36 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1957VnwURoKnebKh4JKswKcl3TlhWx3qDk= Cancel-Lock: sha1:56o69gI7sY7NaqRx8b/vXCD0bSI= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:168517 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:63790 Archived-At: In article <54d389f8-ce90-428d-8fa1-a88c971589d5@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, barmar@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 ***