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: Joost Kremers
Subject: Re: Define interactive function with arguments
Date: Fri, 09 Oct 2020 09:18:21 +0200
User-agent: mu4e 1.5.5; emacs 27.1.50

On Fri, Oct 09 2020, Christopher Dimech wrote:
> Is the following code the way to write user defined functions
> with arguments?
>
> ( defun Transpose-Paragraphs-Arg (arg)
>     "Transfer paragraph backward"
>     (interactive)
>     (transpose-paragraphs arg)
> )

With all due respect, you should really read the Emacs Lisp Intro, it answers
this and all (or at least most) other questions you've posted.

In Emacs, press `C-h i m Emacs Lisp Intro RET` and start reading. Or, if you
prefer online:

https://www.gnu.org/software/emacs/manual/html_node/eintr/index.html

Once you've mastered the introduction, you'll find more info in the Elisp
manual:

C-h i m Elisp RET

or

https://www.gnu.org/software/emacs/manual/html_node/elisp/

HTH

-- 
Joost Kremers
Life has its moments



reply via email to

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