aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/variables.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/variables.texi')
-rw-r--r--doc/lispref/variables.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index f0e3f337a69..c29547d00db 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -527,10 +527,11 @@ If @var{symbol} has a buffer-local binding in the current buffer,
527rather than the buffer-local binding. It sets the default value if 527rather than the buffer-local binding. It sets the default value if
528the default value is void. @xref{Buffer-Local Variables}. 528the default value is void. @xref{Buffer-Local Variables}.
529 529
530If @var{symbol} is already lexically bound (e.g., if the @code{defvar} 530If @var{symbol} is already let bound (e.g., if the @code{defvar}
531form occurs in a @code{let} form with lexical binding enabled), then 531form occurs in a @code{let} form), then @code{defvar} sets the toplevel
532@code{defvar} sets the dynamic value. The lexical binding remains in 532default value, like @code{set-default-toplevel-value}.
533effect until its binding construct exits. @xref{Variable Scoping}. 533The let binding remains in effect until its binding construct exits.
534@xref{Variable Scoping}.
534 535
535@cindex @code{eval-defun}, and @code{defvar} forms 536@cindex @code{eval-defun}, and @code{defvar} forms
536@cindex @code{eval-last-sexp}, and @code{defvar} forms 537@cindex @code{eval-last-sexp}, and @code{defvar} forms