[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/variables.texi
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/variables.texi |
Date: |
Mon, 30 Jun 2003 06:43:01 -0400 |
Index: emacs/lispref/variables.texi
diff -c emacs/lispref/variables.texi:1.39 emacs/lispref/variables.texi:1.40
*** emacs/lispref/variables.texi:1.39 Wed Jun 4 05:25:00 2003
--- emacs/lispref/variables.texi Mon Jun 30 06:43:01 2003
***************
*** 576,586 ****
(@pxref{Customization}).
@strong{Warning:} If the @code{defconst} and @code{defvar} special
! forms are used while the variable has a local binding, they set the
! local binding's value; the global binding is not changed. This is not
! what you usually want. To prevent it, use these special forms at top
! level in a file, where normally no local binding is in effect, and make
! sure to load the file before making a local binding for the variable.
@node Tips for Defining
@section Tips for Defining Variables Robustly
--- 576,587 ----
(@pxref{Customization}).
@strong{Warning:} If the @code{defconst} and @code{defvar} special
! forms are used while the variable has a local binding (made with
! @code{let}, or a function argument), they set the local-binding's
! value; the top-level binding is not changed. This is not what you
! usually want. To prevent it, use these special forms at top level in
! a file, where normally no local binding is in effect, and make sure to
! load the file before making a local binding for the variable.
@node Tips for Defining
@section Tips for Defining Variables Robustly
***************
*** 1749,1755 ****
@end defvar
@defun risky-local-variable-p sym
! Returns non-nil if @var{sym} is risky for any of the reasons stated above.
@end defun
The @samp{Eval:} ``variable'' is also a potential loophole, so Emacs
--- 1750,1757 ----
@end defvar
@defun risky-local-variable-p sym
! Returns address@hidden if @var{sym} is risky for any of the reasons
! stated above.
@end defun
The @samp{Eval:} ``variable'' is also a potential loophole, so Emacs