+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)
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
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