[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is the difference between defsubst and defun ?
From: |
Fren Zeee |
Subject: |
What is the difference between defsubst and defun ? |
Date: |
Sat, 4 Dec 2010 13:09:37 -0800 (PST) |
User-agent: |
G2/1.0 |
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
- What is the difference between defsubst and defun ?,
Fren Zeee <=