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

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

Re: Define interactive function with arguments


From: Stefan Monnier
Subject: Re: Define interactive function with arguments
Date: Thu, 08 Oct 2020 19:41:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> (defun Transpose-Paragraphs-Arg (arg)
>     "Transfer paragraph backward"
>     (interactive)
>     (transpose-paragraphs arg))
>
> I have been using "M-x Transpose-Paragraphs-Arg"

I doubt you have with the code above, because it will signal an error.
You need to provide something to `interactive` in order to build the
`arg` argument.


        Stefan




reply via email to

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