mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Fix bug #12138 with indexing "closures".
doc/lispref/functions.texi (Closures): Put the main index entry for "closures" here. doc/lispref/variables.texi (Lexical Binding): Disambiguate the index entry for "closures".
This commit is contained in:
parent
8d5dd3701c
commit
a08eadfecc
@ -1,3 +1,11 @@
|
||||
2012-08-06 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* functions.texi (Closures): Put the main index entry for
|
||||
"closures" here. (Bug#12138)
|
||||
|
||||
* variables.texi (Lexical Binding): Disambiguate the index entry
|
||||
for "closures".
|
||||
|
||||
2012-06-19 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* Makefile.in: Rename infodir to buildinfodir throughout. (Bug#11737)
|
||||
|
@ -1115,8 +1115,9 @@ named function that you create (e.g.@: with @code{defun}), as well as
|
||||
any anonymous function that you create using the @code{lambda} macro
|
||||
or the @code{function} special form or the @code{#'} syntax
|
||||
(@pxref{Anonymous Functions}), is automatically converted into a
|
||||
closure.
|
||||
@dfn{closure}.
|
||||
|
||||
@cindex closures
|
||||
A closure is a function that also carries a record of the lexical
|
||||
environment that existed when the function was defined. When it is
|
||||
invoked, any lexical variable references within its definition use the
|
||||
|
@ -968,11 +968,11 @@ wants the current value of a variable, it looks first in the lexical
|
||||
environment; if the variable is not specified in there, it looks in
|
||||
the symbol's value cell, where the dynamic value is stored.
|
||||
|
||||
@cindex closures
|
||||
@cindex closures, example of using
|
||||
Lexical bindings have indefinite extent. Even after a binding
|
||||
construct has finished executing, its lexical environment can be
|
||||
``kept around'' in Lisp objects called @dfn{closures}. A closure is
|
||||
created when you create a named or anonymous function with lexical
|
||||
created when you define a named or anonymous function with lexical
|
||||
binding enabled. @xref{Closures}, for details.
|
||||
|
||||
When a closure is called as a function, any lexical variable
|
||||
|
Loading…
Reference in New Issue
Block a user