help-gnu-emacs
[Top][All Lists]
Advanced

[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: Jean Louis
Subject: Re: Why is this not working (apply + call-process + list of string args)?
Date: Thu, 15 Sep 2022 18:12:56 +0300
User-agent: Mutt/+ () (2022-06-11)

* Arthur Miller <arthur.miller@live.com> [2022-09-15 17:03]:
> 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 "

What I know is that there shall be no space in those arguments.

Following worked well on my side:

(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)
  (let ((command (expand-file-name "./configure")))
    (apply #'call-process command nil nil nil args)))
 
(apply #'configure args)


Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]