all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How to defun body in procedural manner
Date: Fri, 17 Apr 2009 00:37:13 -0400	[thread overview]
Message-ID: <barmar-DC0D36.00371317042009@mara100-84.onlink.net> (raw)
In-Reply-To: 54d389f8-ce90-428d-8fa1-a88c971589d5@d2g2000pra.googlegroups.com

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 ***


  reply	other threads:[~2009-04-17  4:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17  1:28 How to defun body in procedural manner Kiwon Um
2009-04-17  4:37 ` Barry Margolin [this message]
2009-04-17  5:29   ` Kiwon Um
2009-04-17  5:52 ` thierry.volpiatto
     [not found] ` <mailman.5512.1239947972.31690.help-gnu-emacs@gnu.org>
2009-04-17  9:52   ` Kiwon Um
2009-04-17 12:51     ` thierry.volpiatto
     [not found]     ` <mailman.5523.1239973116.31690.help-gnu-emacs@gnu.org>
2009-04-18  6:58       ` Kiwon Um
2009-04-20  7:44       ` Kiwon Um
2009-04-20 10:43         ` thierry.volpiatto
2009-04-21  0:57           ` Kevin Rodgers
     [not found]         ` <mailman.5725.1240224622.31690.help-gnu-emacs@gnu.org>
2009-04-20 13:28           ` Kiwon Um
2009-04-20 14:18             ` thierry.volpiatto
     [not found]             ` <mailman.5730.1240237545.31690.help-gnu-emacs@gnu.org>
2009-04-21  1:46               ` Kiwon Um

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-DC0D36.00371317042009@mara100-84.onlink.net \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.