Commit 3073fc14 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

* variables.texi (Lexical Binding): Mention `defcustom'.

Fixes: debbugs:8459
parent aa4b6df6
......@@ -1099,11 +1099,12 @@ use short names like @code{x}.
@node Lexical Binding
@subsection Use of Lexical Scoping
Emacs Lisp can be evaluated in two different modes: in dynamic binding mode or
lexical binding mode. In dynamic binding mode, all local variables use dynamic
scoping, whereas in lexical binding mode variables that have been declared
@dfn{special} (i.e., declared with @code{defvar} or @code{defconst}) use
dynamic scoping and all others use lexical scoping.
Emacs Lisp can be evaluated in two different modes: in dynamic binding
mode or lexical binding mode. In dynamic binding mode, all local
variables use dynamic scoping, whereas in lexical binding mode
variables that have been declared @dfn{special} (i.e., declared with
@code{defvar}, @code{defcustom} or @code{defconst}) use dynamic
scoping and all others use lexical scoping.
@defvar lexical-binding
When non-nil, evaluation of Lisp code uses lexical scoping for non-special
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment