From 6ad0d39680cc82e660e3016b11c9f29d2666c79f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 10 Jan 2016 20:22:01 +0200 Subject: [PATCH] Update documentation of 'indirect-function' * doc/lispref/eval.texi (Function Indirection): Update the documentation of 'indirect-function'. --- doc/lispref/eval.texi | 11 +++++------ etc/NEWS | 2 ++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi index 28bf6005769..d2a8ff56b6b 100644 --- a/doc/lispref/eval.texi +++ b/doc/lispref/eval.texi @@ -328,13 +328,12 @@ This function returns the meaning of @var{function} as a function. If definition and starts over with that value. If @var{function} is not a symbol, then it returns @var{function} itself. -This function signals a @code{void-function} error if the final symbol -is unbound and optional argument @var{noerror} is @code{nil} or -omitted. Otherwise, if @var{noerror} is non-@code{nil}, it returns -@code{nil} if the final symbol is unbound. +This function returns @code{nil} if the final symbol is unbound. It +signals a @code{cyclic-function-indirection} error if there is a loop +in the chain of symbols. -It signals a @code{cyclic-function-indirection} error if there is a -loop in the chain of symbols. +The optional argument @var{noerror} is obsolete, kept for backward +compatibility, and has no effect. Here is how you could define @code{indirect-function} in Lisp: diff --git a/etc/NEWS b/etc/NEWS index e6a31506bc1..06cd38e40d2 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1202,10 +1202,12 @@ to the special value `dragging' in the body of the form. has any effect. (This change was made in Emacs 24.4 but was not advertised at the time.) ++++ ** `indirect-function' does not signal `void-function' any more. This is mostly a bug-fix, since this change was missed back in 24.4 when symbol-function was changed not to signal `void-function' any more. ++++ *** As a consequence, the second arg of `indirect-function' is now obsolete. ** Comint, term, and compile do not set the EMACS env var any more. -- 2.39.2