aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/eval.texi
diff options
context:
space:
mode:
authorStefan Monnier2012-04-25 23:06:36 -0400
committerStefan Monnier2012-04-25 23:06:36 -0400
commit88ed9e87e565504e377ff3dfcdbacbbbeb382926 (patch)
tree607dc1be20d474389b4253174493d6b254695120 /doc/lispref/eval.texi
parent1a72be462423a71fa666a99854ccfaf422dfee96 (diff)
downloademacs-88ed9e87e565504e377ff3dfcdbacbbbeb382926.tar.gz
emacs-88ed9e87e565504e377ff3dfcdbacbbbeb382926.zip
Deprecate the ((lambda ...) ...) form.
* doc/lispref/functions.texi (Simple Lambda, Argument List): * doc/lispref/eval.texi (Function Indirection): Avoid deprecated form.
Diffstat (limited to 'doc/lispref/eval.texi')
-rw-r--r--doc/lispref/eval.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi
index 5bb514451b8..62de337a5e3 100644
--- a/doc/lispref/eval.texi
+++ b/doc/lispref/eval.texi
@@ -305,6 +305,22 @@ function, not a symbol.
305Executing the function itself evaluates its body; this does involve 305Executing the function itself evaluates its body; this does involve
306symbol function indirection when calling @code{erste}. 306symbol function indirection when calling @code{erste}.
307 307
308 This form is rarely used and is now deprecated. Instead, you should write it
309as:
310
311@smallexample
312@group
313(funcall (lambda (arg) (erste arg))
314 '(1 2 3))
315@end group
316@end smallexample
317or just
318@smallexample
319@group
320(let ((arg '(1 2 3))) (erste arg))
321@end group
322@end smallexample
323
308 The built-in function @code{indirect-function} provides an easy way to 324 The built-in function @code{indirect-function} provides an easy way to
309perform symbol function indirection explicitly. 325perform symbol function indirection explicitly.
310 326