changeset 1634:dc26bbe7cf61

* subr.el (lambda): Doc fix.
author Jim Blandy <jimb@redhat.com>
date Fri, 20 Nov 1992 17:22:56 +0000
parents 65af7bcd5e31
children e3c02a517030
files lisp/subr.el
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Fri Nov 20 17:22:24 1992 +0000
+++ b/lisp/subr.el	Fri Nov 20 17:22:56 1992 +0000
@@ -410,9 +410,17 @@
 
 
 (defmacro lambda (&rest cdr)
-  "Macro which allows one to write (lambda ...) for anonymous functions.
-This is instead of having to write (function (lambda ...)) or
-'(lambda ...), the latter of which won't get byte-compiled."
+  "Return a lambda expression.
+A call of the form (lambda ARGS DOCSTRING INTERACTIVE BODY) is
+self-quoting; the result of evaluating the lambda expression is the
+expression itself.  The lambda expression may then be treated as a
+function, i. e. stored as the function value of a symbol, passed to
+funcall or mapcar, etcetera.
+ARGS should take the same form as an argument list for a `defun'.
+DOCSTRING should be a string, as described for `defun'.  It may be omitted.
+INTERACTIVE should be a call to the function `interactive', which see.
+It may also be omitted.
+BODY should be a list of lisp expressions."
   ;; Note that this definition should not use backquotes; subr.el should not
   ;; depend on backquote.el.
   (list 'function (cons 'lambda cdr)))