Fix bug #12138 with indexing "closures".
authorEli Zaretskii <eliz@gnu.org>
Mon, 6 Aug 2012 16:55:41 +0000 (19:55 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 6 Aug 2012 16:55:41 +0000 (19:55 +0300)
 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".

doc/lispref/ChangeLog
doc/lispref/functions.texi
doc/lispref/variables.texi

index ed9aab2..f91f99d 100644 (file)
@@ -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)
index 5958d56..f1ad252 100644 (file)
@@ -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
index 93fb4d5..5745b48 100644 (file)
@@ -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