From: Noam Postavsky <npostavs@gmail.com>
To: stardiviner <numbchild@gmail.com>
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: How to pass a evaluated list as argument of macro?
Date: Mon, 6 Jul 2020 09:39:33 -0400 [thread overview]
Message-ID: <CAM-tV-9YOOMWyHDMZMYJcGPy-+=nMT0NAdRC6Zpqy0tyNCUbVQ@mail.gmail.com> (raw)
In-Reply-To: <87imf0pzjj.fsf@gmail.com>
On Mon, 6 Jul 2020 at 09:02, stardiviner <numbchild@gmail.com> wrote:
> (defmacro ffmpeg--command-macro (name arglist &rest body)
> "Construct ffmpeg command with ARGS and BODY."
> ;; (declare (debug t))
> `(defun ,(intern (format "ffmpeg-%s" name)) ()
> (defun ffmpeg-cut-clip (input-filename start-timestamp end-timestamp output-filename)
> "Cut clip of media INPUT-FILENAME between START-TIMESTAMP END-TIMESTAMP and output to OUTPUT-FILENAME."
> (ffmpeg--command-macro "cut-clip" arglist)))
The way you are using your macro doesn't make sense to me. Do you want
ffmpeg-cut-clip to define a command which runs ffmpeg (in which case,
maybe it should be a macro), or actually just run the ffmpeg command
(in which case, maybe ffmpeg--comand-macro should not be a macro, but
rather a function (and probably called something like
ffmpeg-run-command instead))?
next prev parent reply other threads:[~2020-07-06 13:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-06 13:02 How to pass a evaluated list as argument of macro? stardiviner
2020-07-06 13:39 ` Noam Postavsky [this message]
2020-07-06 14:46 ` stardiviner
2020-07-06 15:23 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM-tV-9YOOMWyHDMZMYJcGPy-+=nMT0NAdRC6Zpqy0tyNCUbVQ@mail.gmail.com' \
--to=npostavs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=numbchild@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).