This is a newbie question.

[Q] In emacs, What is the difference between defsubst and defun ?

I have searched and looked at the documentation but not satisfactory
answer.

defsubst is a Lisp macro in `byte-run'.
(defsubst NAME ARGLIST &rest BODY)
Define an inline function.  The syntax is just like that of `defun'.

defun is a special form.
(defun NAME ARGLIST [DOCSTRING] BODY...)

Define NAME as a function.
The definition is (lambda ARGLIST [DOCSTRING] BODY...).
See also the function `interactive'.

*** What are the key attributes of the inline function in general in
lisp and in particular in CL and elisp ? ***

Thanks
Franz Xe
_______________________________________________
gnu-misc-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-misc-discuss

Reply via email to