Update documentation of 'indirect-function'
* doc/lispref/eval.texi (Function Indirection): Update the documentation of 'indirect-function'.
This commit is contained in:
parent
c6a5314302
commit
6ad0d39680
2 changed files with 7 additions and 6 deletions
|
@ -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
|
definition and starts over with that value. If @var{function} is not a
|
||||||
symbol, then it returns @var{function} itself.
|
symbol, then it returns @var{function} itself.
|
||||||
|
|
||||||
This function signals a @code{void-function} error if the final symbol
|
This function returns @code{nil} if the final symbol is unbound. It
|
||||||
is unbound and optional argument @var{noerror} is @code{nil} or
|
signals a @code{cyclic-function-indirection} error if there is a loop
|
||||||
omitted. Otherwise, if @var{noerror} is non-@code{nil}, it returns
|
in the chain of symbols.
|
||||||
@code{nil} if the final symbol is unbound.
|
|
||||||
|
|
||||||
It signals a @code{cyclic-function-indirection} error if there is a
|
The optional argument @var{noerror} is obsolete, kept for backward
|
||||||
loop in the chain of symbols.
|
compatibility, and has no effect.
|
||||||
|
|
||||||
Here is how you could define @code{indirect-function} in Lisp:
|
Here is how you could define @code{indirect-function} in Lisp:
|
||||||
|
|
||||||
|
|
2
etc/NEWS
2
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
|
has any effect. (This change was made in Emacs 24.4 but was not
|
||||||
advertised at the time.)
|
advertised at the time.)
|
||||||
|
|
||||||
|
+++
|
||||||
** `indirect-function' does not signal `void-function' any more.
|
** `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
|
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.
|
symbol-function was changed not to signal `void-function' any more.
|
||||||
|
|
||||||
|
+++
|
||||||
*** As a consequence, the second arg of `indirect-function' is now obsolete.
|
*** 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.
|
** Comint, term, and compile do not set the EMACS env var any more.
|
||||||
|
|
Loading…
Add table
Reference in a new issue