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

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

Define interactive function with arguments


From: Christopher Dimech
Subject: Define interactive function with arguments
Date: Fri, 9 Oct 2020 01:15:02 +0200

I want to call a function that takes a numeric argument
to I can shift paragraphs.

( defun Transpose-Paragraphs-Arg (arg)
    "Transfer paragraph backward"
    (interactive)
    (transpose-paragraphs arg)
)

I have been using "M-x Transpose-Paragraphs-Arg"

But then, how does one pass the value of the argument
to the function.

Regards
Christopher




reply via email to

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