How to set part of arguments from a list in Emacs Lisp?

I want to install PROGRAM-ARGS from the start-process from the list.

how

 (start-process process-name "*foobar*" process-path (append some-args (list (concat "the" "other" "arg")))) 

But that makes the mistake: "... is not a string" because the start-process accepts only string arguments.

How can i solve this?

+4
source share
1 answer

You want to either apply or sometimes funcall . In this particular case, I would go with apply , but you should be familiar with both of them.

 (apply #'start-process process-name "*foobar*" process-path some-args other-args-as-a-list) 
+5
source

All Articles