aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2012-08-06 19:55:41 +0300
committerEli Zaretskii2012-08-06 19:55:41 +0300
commita08eadfecc8651d6da2cdcb326d333545cb5f7c1 (patch)
tree79953e4646700898d1f4406f08d1a57d3b816f50
parent8d5dd3701caf1dac63e92ab04c1ca3d79cfcb18c (diff)
downloademacs-a08eadfecc8651d6da2cdcb326d333545cb5f7c1.tar.gz
emacs-a08eadfecc8651d6da2cdcb326d333545cb5f7c1.zip
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".
-rw-r--r--doc/lispref/ChangeLog8
-rw-r--r--doc/lispref/functions.texi3
-rw-r--r--doc/lispref/variables.texi4
3 files changed, 12 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index ed9aab245ea..f91f99d9c3d 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,11 @@
12012-08-06 Eli Zaretskii <eliz@gnu.org>
2
3 * functions.texi (Closures): Put the main index entry for
4 "closures" here. (Bug#12138)
5
6 * variables.texi (Lexical Binding): Disambiguate the index entry
7 for "closures".
8
12012-06-19 Glenn Morris <rgm@gnu.org> 92012-06-19 Glenn Morris <rgm@gnu.org>
2 10
3 * Makefile.in: Rename infodir to buildinfodir throughout. (Bug#11737) 11 * Makefile.in: Rename infodir to buildinfodir throughout. (Bug#11737)
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 5958d56686d..f1ad252f294 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1115,8 +1115,9 @@ named function that you create (e.g.@: with @code{defun}), as well as
1115any anonymous function that you create using the @code{lambda} macro 1115any anonymous function that you create using the @code{lambda} macro
1116or the @code{function} special form or the @code{#'} syntax 1116or the @code{function} special form or the @code{#'} syntax
1117(@pxref{Anonymous Functions}), is automatically converted into a 1117(@pxref{Anonymous Functions}), is automatically converted into a
1118closure. 1118@dfn{closure}.
1119 1119
1120@cindex closures
1120 A closure is a function that also carries a record of the lexical 1121 A closure is a function that also carries a record of the lexical
1121environment that existed when the function was defined. When it is 1122environment that existed when the function was defined. When it is
1122invoked, any lexical variable references within its definition use the 1123invoked, any lexical variable references within its definition use the
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 93fb4d5f873..5745b487942 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -968,11 +968,11 @@ wants the current value of a variable, it looks first in the lexical
968environment; if the variable is not specified in there, it looks in 968environment; if the variable is not specified in there, it looks in
969the symbol's value cell, where the dynamic value is stored. 969the symbol's value cell, where the dynamic value is stored.
970 970
971@cindex closures 971@cindex closures, example of using
972 Lexical bindings have indefinite extent. Even after a binding 972 Lexical bindings have indefinite extent. Even after a binding
973construct has finished executing, its lexical environment can be 973construct has finished executing, its lexical environment can be
974``kept around'' in Lisp objects called @dfn{closures}. A closure is 974``kept around'' in Lisp objects called @dfn{closures}. A closure is
975created when you create a named or anonymous function with lexical 975created when you define a named or anonymous function with lexical
976binding enabled. @xref{Closures}, for details. 976binding enabled. @xref{Closures}, for details.
977 977
978 When a closure is called as a function, any lexical variable 978 When a closure is called as a function, any lexical variable