From: Eli Zaretskii Date: Sun, 10 Jan 2016 18:22:01 +0000 (+0200) Subject: Update documentation of 'indirect-function' X-Git-Tag: emacs-25.0.90~207 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ad0d39;p=emacs.git Update documentation of 'indirect-function' * doc/lispref/eval.texi (Function Indirection): Update the documentation of 'indirect-function'. --- 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.