[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/eval.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/eval.c [lexbind] |
Date: |
Sat, 04 Sep 2004 05:46:48 -0400 |
Index: emacs/src/eval.c
diff -c emacs/src/eval.c:1.189.2.13 emacs/src/eval.c:1.189.2.14
*** emacs/src/eval.c:1.189.2.13 Fri Jul 23 04:42:22 2004
--- emacs/src/eval.c Sat Sep 4 09:19:27 2004
***************
*** 778,783 ****
--- 778,790 ----
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;
***************
*** 823,828 ****
--- 830,839 ----
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;
- [Emacs-diffs] Changes to emacs/src/eval.c [lexbind],
Miles Bader <=