diff options
| author | Lars Magne Ingebrigtsen | 2011-07-15 14:45:51 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-15 14:45:51 +0200 |
| commit | 3073fc1414139dfa3c9f179242fae3ddcfbf7b5f (patch) | |
| tree | 0da6fc2b5312c93f30aa663aa956508f4c24aae1 | |
| parent | aa4b6df6901fc736db6165f379857f448abbe711 (diff) | |
| download | emacs-3073fc1414139dfa3c9f179242fae3ddcfbf7b5f.tar.gz emacs-3073fc1414139dfa3c9f179242fae3ddcfbf7b5f.zip | |
* variables.texi (Lexical Binding): Mention `defcustom'.
Fixes: debbugs:8459
| -rw-r--r-- | doc/lispref/variables.texi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 3da09369882..091765043e3 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1099,11 +1099,12 @@ use short names like @code{x}. | |||
| 1099 | @node Lexical Binding | 1099 | @node Lexical Binding |
| 1100 | @subsection Use of Lexical Scoping | 1100 | @subsection Use of Lexical Scoping |
| 1101 | 1101 | ||
| 1102 | Emacs Lisp can be evaluated in two different modes: in dynamic binding mode or | 1102 | Emacs Lisp can be evaluated in two different modes: in dynamic binding |
| 1103 | lexical binding mode. In dynamic binding mode, all local variables use dynamic | 1103 | mode or lexical binding mode. In dynamic binding mode, all local |
| 1104 | scoping, whereas in lexical binding mode variables that have been declared | 1104 | variables use dynamic scoping, whereas in lexical binding mode |
| 1105 | @dfn{special} (i.e., declared with @code{defvar} or @code{defconst}) use | 1105 | variables that have been declared @dfn{special} (i.e., declared with |
| 1106 | dynamic scoping and all others use lexical scoping. | 1106 | @code{defvar}, @code{defcustom} or @code{defconst}) use dynamic |
| 1107 | scoping and all others use lexical scoping. | ||
| 1107 | 1108 | ||
| 1108 | @defvar lexical-binding | 1109 | @defvar lexical-binding |
| 1109 | When non-nil, evaluation of Lisp code uses lexical scoping for non-special | 1110 | When non-nil, evaluation of Lisp code uses lexical scoping for non-special |