aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorKim F. Storm2006-02-10 00:09:18 +0000
committerKim F. Storm2006-02-10 00:09:18 +0000
commitca56fb8c672ee9745166cbf36c84c2d58acd028f (patch)
tree0f151365e79bb5f13577fceef97dd9a26dbfe9cb /lispref
parentd342156ca93374fe446f19a3398badd5afd9c249 (diff)
downloademacs-ca56fb8c672ee9745166cbf36c84c2d58acd028f.tar.gz
emacs-ca56fb8c672ee9745166cbf36c84c2d58acd028f.zip
(Function Indirection): Add NOERROR to indirect-function.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/eval.texi12
1 files changed, 8 insertions, 4 deletions
diff --git a/lispref/eval.texi b/lispref/eval.texi
index d898e08850b..803f3d4a70d 100644
--- a/lispref/eval.texi
+++ b/lispref/eval.texi
@@ -314,16 +314,20 @@ symbol function indirection when calling @code{erste}.
314perform symbol function indirection explicitly. 314perform symbol function indirection explicitly.
315 315
316@c Emacs 19 feature 316@c Emacs 19 feature
317@defun indirect-function function 317@defun indirect-function function &optional noerror
318@anchor{Definition of indirect-function} 318@anchor{Definition of indirect-function}
319This function returns the meaning of @var{function} as a function. If 319This function returns the meaning of @var{function} as a function. If
320@var{function} is a symbol, then it finds @var{function}'s function 320@var{function} is a symbol, then it finds @var{function}'s function
321definition and starts over with that value. If @var{function} is not a 321definition and starts over with that value. If @var{function} is not a
322symbol, then it returns @var{function} itself. 322symbol, then it returns @var{function} itself.
323 323
324This function signals a @code{void-function} error if the final 324This function signals a @code{void-function} error if the final symbol
325symbol is unbound and a @code{cyclic-function-indirection} error if 325is unbound and optional argument @var{noerror} is @code{nil} or
326there is a loop in the chain of symbols. 326omitted. Otherwise, if @var{noerror} is non-@code{nil}, it returns
327@code{nil} if the final symbol is unbound.
328
329It signals a @code{cyclic-function-indirection} error if there is a
330loop in the chain of symbols.
327 331
328Here is how you could define @code{indirect-function} in Lisp: 332Here is how you could define @code{indirect-function} in Lisp:
329 333