aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorChong Yidong2012-08-07 11:33:37 +0800
committerChong Yidong2012-08-07 11:33:37 +0800
commit9f6f48455f7d25e5cc2d50485d98ff3af43946a2 (patch)
tree2c2a07d59e656de8681a8ebbe2570e4b5e138f48 /doc/lispref
parent7d732d1a24f77e1ee68ec952130dcc4a65d3e6a7 (diff)
parent7178e7222c34f2654ccc126c64eb16fbe5f382b5 (diff)
downloademacs-9f6f48455f7d25e5cc2d50485d98ff3af43946a2.tar.gz
emacs-9f6f48455f7d25e5cc2d50485d98ff3af43946a2.zip
Merge from emacs-24; up to 2012-05-02T07:12:52Z!rgm@gnu.org.
Diffstat (limited to 'doc/lispref')
-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 c262cecb02c..890cf0ef97c 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-08-05 Chong Yidong <cyd@gnu.org> 92012-08-05 Chong Yidong <cyd@gnu.org>
2 10
3 * display.texi (Defining Faces): Move documentation of 11 * display.texi (Defining Faces): Move documentation of
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index ab2789b5e6d..9e1d3f9c6ae 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1100,8 +1100,9 @@ named function that you create (e.g.@: with @code{defun}), as well as
1100any anonymous function that you create using the @code{lambda} macro 1100any anonymous function that you create using the @code{lambda} macro
1101or the @code{function} special form or the @code{#'} syntax 1101or the @code{function} special form or the @code{#'} syntax
1102(@pxref{Anonymous Functions}), is automatically converted into a 1102(@pxref{Anonymous Functions}), is automatically converted into a
1103closure. 1103@dfn{closure}.
1104 1104
1105@cindex closure
1105 A closure is a function that also carries a record of the lexical 1106 A closure is a function that also carries a record of the lexical
1106environment that existed when the function was defined. When it is 1107environment that existed when the function was defined. When it is
1107invoked, any lexical variable references within its definition use the 1108invoked, any lexical variable references within its definition use the
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index affaff46ff9..3b078e7e19f 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -967,11 +967,11 @@ wants the current value of a variable, it looks first in the lexical
967environment; if the variable is not specified in there, it looks in 967environment; if the variable is not specified in there, it looks in
968the symbol's value cell, where the dynamic value is stored. 968the symbol's value cell, where the dynamic value is stored.
969 969
970@cindex closures 970@cindex closures, example of using
971 Lexical bindings have indefinite extent. Even after a binding 971 Lexical bindings have indefinite extent. Even after a binding
972construct has finished executing, its lexical environment can be 972construct has finished executing, its lexical environment can be
973``kept around'' in Lisp objects called @dfn{closures}. A closure is 973``kept around'' in Lisp objects called @dfn{closures}. A closure is
974created when you create a named or anonymous function with lexical 974created when you define a named or anonymous function with lexical
975binding enabled. @xref{Closures}, for details. 975binding enabled. @xref{Closures}, for details.
976 976
977 When a closure is called as a function, any lexical variable 977 When a closure is called as a function, any lexical variable