[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is this not working (apply + call-process + list of string args)
From: |
Arthur Miller |
Subject: |
Re: Why is this not working (apply + call-process + list of string args)? |
Date: |
Thu, 15 Sep 2022 23:43:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Bruno Barbier <brubar.cs@gmail.com> writes:
> Arthur Miller <arthur.miller@live.com> writes:
>
>> I just wonder if someone can explain exact what is going on here:
>>
>> I have a list of strings of arruments I try to pass to configure script. It
>> looks something like this:
>>
>> #+begin_src emacs-lisp
>> (defvar args
>> '("--with-native-compilation "
>> "--with-x "
>> "--with-x-toolkit=no "
>> "--without-gconf "
>> "--without-gsettings "
>> "--with-cairo "
>> "--without-toolkit-scroll-bars "
>> "--with-xinput2 "
>> "--without-included-regex "
>> "--without-compress-install "))
>>
>> (defun configure (&rest args)
>> (apply #'call-process
>> (expand-file-name "./configure")
>> nil build-log nil args))
>>
>> (apply #'configure args)
>> #end_src
>>
>> However it does not work, configure script seems to see wrong arguments.
>
> Why do you have a space after each option ?
Space was there because I was assembling a command to run another
Emacs process asynchronously, but I have solved it now differently. Thanks for
the help, spaces were indeed the problem.