diff options
| author | Stefan Monnier | 2012-04-25 23:06:36 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-04-25 23:06:36 -0400 |
| commit | 88ed9e87e565504e377ff3dfcdbacbbbeb382926 (patch) | |
| tree | 607dc1be20d474389b4253174493d6b254695120 /doc/lispref/eval.texi | |
| parent | 1a72be462423a71fa666a99854ccfaf422dfee96 (diff) | |
| download | emacs-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.texi | 16 |
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. | |||
| 305 | Executing the function itself evaluates its body; this does involve | 305 | Executing the function itself evaluates its body; this does involve |
| 306 | symbol function indirection when calling @code{erste}. | 306 | symbol function indirection when calling @code{erste}. |
| 307 | 307 | ||
| 308 | This form is rarely used and is now deprecated. Instead, you should write it | ||
| 309 | as: | ||
| 310 | |||
| 311 | @smallexample | ||
| 312 | @group | ||
| 313 | (funcall (lambda (arg) (erste arg)) | ||
| 314 | '(1 2 3)) | ||
| 315 | @end group | ||
| 316 | @end smallexample | ||
| 317 | or 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 |
| 309 | perform symbol function indirection explicitly. | 325 | perform symbol function indirection explicitly. |
| 310 | 326 | ||