[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to pass a evaluated list as argument of macro?
From: |
Noam Postavsky |
Subject: |
Re: How to pass a evaluated list as argument of macro? |
Date: |
Mon, 6 Jul 2020 11:23:31 -0400 |
On Mon, 6 Jul 2020 at 10:46, stardiviner <numbchild@gmail.com> wrote:
> I'm trying to abstract out the "make-process" out.
> I modified source code to bellowing:
>
> #+begin_src emacs-lisp
> (defmacro ffmpeg--run-command (arglist &rest body)
> "Construct ffmpeg command with ARGLIST and BODY."
What's the BODY argument supposed to do? Why not drop it and change to
defun instead?
Otherwise, you could do
:command ,(append '("ffmpeg") arglist)
but I don't think you need a macro here.