unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Florian von Savigny <florian265@uboot.com>
Subject: turning a list (variable) into process &rest ARGS ...
Date: 26 May 2004 23:46:53 +0200	[thread overview]
Message-ID: <m3y8neoo8i.fsf@uboot.com> (raw)


Hi there,

I have just hit upon a problem you never expect when you once started
off using Perl ...

I am writing a function that is to invoke (call-process ...) and take
the program name and the &rest ARGS from a list variable of unknown
length. While this is of course straightforward for the command name,
I have no idea of how to do the rest, since, as all old lispers here
will know, I cannot simply supply the relevant portion of the
list. call-process wants strings, not lists.

Is there ANY workaround (I wouldn't like to have the function take the
whole command from a variable, which would be possible by setting the
latter to '(progn (call-process ... etc., because I want the function
to control the other arguments of call-process) for this
list-to-elements problem?

Thanks for any help,




-- 


Florian v. Savigny

If you are going to reply in private, please be patient, as I only
check for mail something like once a week. - Si vous allez répondre
personellement, patientez s.v.p., car je ne lis les courriels
qu'environ une fois par semaine.

             reply	other threads:[~2004-05-26 21:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-26 21:46 Florian von Savigny [this message]
2004-05-26 22:04 ` turning a list (variable) into process &rest ARGS Stefan Monnier
2004-05-26 22:17   ` Florian von Savigny

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m3y8neoo8i.fsf@uboot.com \
    --to=florian265@uboot.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).