[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to defun body in procedural manner
From: |
Barry Margolin |
Subject: |
Re: How to defun body in procedural manner |
Date: |
Fri, 17 Apr 2009 00:37:13 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article
<54d389f8-ce90-428d-8fa1-a88c971589d5@d2g2000pra.googlegroups.com>,
Kiwon Um <um.kiwon@gmail.com> 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 ***