[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (interactive) arguments
From: |
Jean-Christophe Helary |
Subject: |
Re: (interactive) arguments |
Date: |
Sun, 5 Jan 2020 02:44:00 +0900 |
> On Jan 5, 2020, at 1:28, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> Now, when I use the "expression" version, it looks like the arguments are
>> not assigned to variables as they are input, so for ex, I can't use
>> a default value for the input based on the first input...
>
> That was my whole point of describing it as "expression" rather than
> "list":
:)
> it is really an arbitrary Elisp *expression* whose evaluation
> simply returns the list of arguments to pass to the function.
Indeed, as the doc says. I just got stuck at the "should be a form that is
evaluated to get a list of arguments to pass to the command".
>
> So it doesn't have to look like
>
> (list ...)
>
> but can be anything else like
>
> (my-function-to-return-the-list-of-args)
>
> or
> (let* ((x1 e1) (x2 e2) ...) (append e3 e4))
> or
> ...
>
>
> -- Stefan
>
>
>
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune