如何将参数列表传递给start-process
第四个参数(PROGRAMS-ARGS)
:
(start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS)
例如:
(start-process "program-name" nil "program-name" "-p1" "-p2" "-p3" "program-name")
我想通过收集列表中的参数并将列表变量传递给函数参数来做同样的事情,但它不起作用:
(setq program-args (list "-p1" "-p2" "-p3"))
(start-process "program-name" nil "program-name" program-args "program-name")