]> code.delx.au - gnu-emacs/commitdiff
Update documentation of 'indirect-function'
authorEli Zaretskii <eliz@gnu.org>
Sun, 10 Jan 2016 18:22:01 +0000 (20:22 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 10 Jan 2016 18:22:01 +0000 (20:22 +0200)
* doc/lispref/eval.texi (Function Indirection): Update the
documentation of 'indirect-function'.

doc/lispref/eval.texi
etc/NEWS

index 28bf6005769b5dfeaaa0566e43ac01b7a40aafb2..d2a8ff56b6bb9294dfb1774439bcda68f7ea3067 100644 (file)
@@ -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:
 
index e6a31506bc1d9d625f16d9f344b708acb5783af7..06cd38e40d2f5bc5b699cc8bfe23e068552a44ee 100644 (file)
--- 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.