diff options
| author | Eli Zaretskii | 2012-08-06 19:55:41 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-08-06 19:55:41 +0300 |
| commit | a08eadfecc8651d6da2cdcb326d333545cb5f7c1 (patch) | |
| tree | 79953e4646700898d1f4406f08d1a57d3b816f50 | |
| parent | 8d5dd3701caf1dac63e92ab04c1ca3d79cfcb18c (diff) | |
| download | emacs-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/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 ed9aab245ea..f91f99d9c3d 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-06-19 Glenn Morris <rgm@gnu.org> | 9 | 2012-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 | |||
| 1115 | any anonymous function that you create using the @code{lambda} macro | 1115 | any anonymous function that you create using the @code{lambda} macro |
| 1116 | or the @code{function} special form or the @code{#'} syntax | 1116 | or 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 |
| 1118 | closure. | 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 |
| 1121 | environment that existed when the function was defined. When it is | 1122 | environment that existed when the function was defined. When it is |
| 1122 | invoked, any lexical variable references within its definition use the | 1123 | invoked, 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 | |||
| 968 | environment; if the variable is not specified in there, it looks in | 968 | environment; if the variable is not specified in there, it looks in |
| 969 | the symbol's value cell, where the dynamic value is stored. | 969 | the 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 |
| 973 | construct has finished executing, its lexical environment can be | 973 | construct 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 |
| 975 | created when you create a named or anonymous function with lexical | 975 | created when you define a named or anonymous function with lexical |
| 976 | binding enabled. @xref{Closures}, for details. | 976 | binding 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 |