# HG changeset patch # User Jim Blandy # Date 722280176 0 # Node ID dc26bbe7cf610a6224cad759a3db1eb8e61f8718 # Parent 65af7bcd5e31b007fd1fb052b677d6ae29ebed9f * subr.el (lambda): Doc fix. diff -r 65af7bcd5e31 -r dc26bbe7cf61 lisp/subr.el --- 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)))