help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Placement of list within an interactive clause


From: carlmarcos
Subject: Re: Placement of list within an interactive clause
Date: Sun, 17 Jul 2022 05:02:48 +0200 (CEST)


Jul 17, 2022, 02:38 by monnier@iro.umontreal.ca:

>> On the other hand if I want to have multiple function arguments, I should 
>> have
>>
>> (defun myfun (type other-arg)
>>   (interactive
>>    (let ( (rqmatch t) (initpk "mixed") (dflt "extended")
>>   (cseq '("expression" "mixed")) )
>>      (message "This is a message")
>>
>>      (list
>>       (completing-read "Flare_type: " cseq nil
>>        rqmatch initpk nil dflt)
>>       (completing-read "Other_arg: " cseq nil
>>        rqmatch initpk nil dflt)))))
>>
>
> For example, yes.
>
> There are many other ways to write such code and the shape if the code
> has no importance to `interactive`.  All that matters for `interactive`
> is the *value* that is returned when the code is done running.
>
Thank you so very much for the examples.  I am now fully conversant
on the details of working with interactive.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]