# HG changeset patch # User Luc Teirlinck # Date 1091065296 0 # Node ID 8967ea893ac210f0f512fa6722f3922cddb37939 # Parent 8699eccc1a3392b170ea94cd0f2f4bab13ec6c58 (Fdefvar, Fdefconst): Doc fixes. diff -r 8699eccc1a33 -r 8967ea893ac2 src/eval.c --- a/src/eval.c Wed Jul 28 09:05:23 2004 +0000 +++ b/src/eval.c Thu Jul 29 01:41:36 2004 +0000 @@ -742,6 +742,13 @@ This means that M-x set-variable recognizes it. See also `user-variable-p'. If INITVALUE is missing, SYMBOL's value is not set. + +If SYMBOL has a local binding, then this form affects the local +binding. This is usually not what you want. Thus, if you need to +load a file defining variables, with this form or with `defconst' or +`defcustom', you should always load that file _outside_ any bindings +for these variables. \(`defconst' and `defcustom' behave similarly in +this respect.) usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) (args) Lisp_Object args; @@ -784,6 +791,10 @@ If SYMBOL is buffer-local, its default value is what is set; buffer-local values are not affected. DOCSTRING is optional. + +If SYMBOL has a local binding, then this form sets the local binding's +value. However, you should normally not make local bindings for +variables defined with this form. usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) (args) Lisp_Object args;