aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/variables.texi
diff options
context:
space:
mode:
authorEli Zaretskii2012-08-06 19:55:41 +0300
committerEli Zaretskii2012-08-06 19:55:41 +0300
commita08eadfecc8651d6da2cdcb326d333545cb5f7c1 (patch)
tree79953e4646700898d1f4406f08d1a57d3b816f50 /doc/lispref/variables.texi
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".
Diffstat (limited to 'doc/lispref/variables.texi')
-rw-r--r--doc/lispref/variables.texi4
1 files changed, 2 insertions, 2 deletions
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