diff options
| author | Chong Yidong | 2012-08-07 11:33:37 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-07 11:33:37 +0800 |
| commit | 9f6f48455f7d25e5cc2d50485d98ff3af43946a2 (patch) | |
| tree | 2c2a07d59e656de8681a8ebbe2570e4b5e138f48 /doc/lispref | |
| parent | 7d732d1a24f77e1ee68ec952130dcc4a65d3e6a7 (diff) | |
| parent | 7178e7222c34f2654ccc126c64eb16fbe5f382b5 (diff) | |
| download | emacs-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/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 3 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 4 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-08-05 Chong Yidong <cyd@gnu.org> | 9 | 2012-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 | |||
| 1100 | any anonymous function that you create using the @code{lambda} macro | 1100 | any anonymous function that you create using the @code{lambda} macro |
| 1101 | or the @code{function} special form or the @code{#'} syntax | 1101 | or 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 |
| 1103 | closure. | 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 |
| 1106 | environment that existed when the function was defined. When it is | 1107 | environment that existed when the function was defined. When it is |
| 1107 | invoked, any lexical variable references within its definition use the | 1108 | invoked, 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 | |||
| 967 | environment; if the variable is not specified in there, it looks in | 967 | environment; if the variable is not specified in there, it looks in |
| 968 | the symbol's value cell, where the dynamic value is stored. | 968 | the 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 |
| 972 | construct has finished executing, its lexical environment can be | 972 | construct 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 |
| 974 | created when you create a named or anonymous function with lexical | 974 | created when you define a named or anonymous function with lexical |
| 975 | binding enabled. @xref{Closures}, for details. | 975 | binding 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 |