diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/subr.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 59f6949b211..d09789340fc 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -93,12 +93,13 @@ Info node `(elisp)Specification List' for details." | |||
| 93 | `(put (quote ,symbol) 'edebug-form-spec (quote ,spec))) | 93 | `(put (quote ,symbol) 'edebug-form-spec (quote ,spec))) |
| 94 | 94 | ||
| 95 | (defmacro lambda (&rest cdr) | 95 | (defmacro lambda (&rest cdr) |
| 96 | "Return a lambda expression. | 96 | "Return an anonymous function. |
| 97 | A call of the form (lambda ARGS DOCSTRING INTERACTIVE BODY) is | 97 | Under dynamic binding, a call of the form (lambda ARGS DOCSTRING |
| 98 | self-quoting; the result of evaluating the lambda expression is the | 98 | INTERACTIVE BODY) is self-quoting; the result of evaluating the |
| 99 | expression itself. The lambda expression may then be treated as a | 99 | lambda expression is the expression itself. Under lexical |
| 100 | function, i.e., stored as the function value of a symbol, passed to | 100 | binding, the result is a closure. Regardless, the result is a |
| 101 | `funcall' or `mapcar', etc. | 101 | function, i.e., it may be stored as the function value of a |
| 102 | symbol, passed to `funcall' or `mapcar', etc. | ||
| 102 | 103 | ||
| 103 | ARGS should take the same form as an argument list for a `defun'. | 104 | ARGS should take the same form as an argument list for a `defun'. |
| 104 | DOCSTRING is an optional documentation string. | 105 | DOCSTRING is an optional documentation string. |