diff options
| author | Luc Teirlinck | 2004-07-29 01:41:36 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-07-29 01:41:36 +0000 |
| commit | 733f68b6ec84cfe592f16a1c49a69b5693eabab9 (patch) | |
| tree | 53697b8796410b1855d2a6948d5d09485820f9ea /src | |
| parent | 31f98a937c1f1ef2576e5225e8007f1398df00fe (diff) | |
| download | emacs-733f68b6ec84cfe592f16a1c49a69b5693eabab9.tar.gz emacs-733f68b6ec84cfe592f16a1c49a69b5693eabab9.zip | |
(Fdefvar, Fdefconst): Doc fixes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index f28105ac987..ee74215b2ee 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -742,6 +742,13 @@ If DOCSTRING starts with *, this variable is identified as a user option. | |||
| 742 | This means that M-x set-variable recognizes it. | 742 | This means that M-x set-variable recognizes it. |
| 743 | See also `user-variable-p'. | 743 | See also `user-variable-p'. |
| 744 | If INITVALUE is missing, SYMBOL's value is not set. | 744 | If INITVALUE is missing, SYMBOL's value is not set. |
| 745 | |||
| 746 | If SYMBOL has a local binding, then this form affects the local | ||
| 747 | binding. This is usually not what you want. Thus, if you need to | ||
| 748 | load a file defining variables, with this form or with `defconst' or | ||
| 749 | `defcustom', you should always load that file _outside_ any bindings | ||
| 750 | for these variables. \(`defconst' and `defcustom' behave similarly in | ||
| 751 | this respect.) | ||
| 745 | usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) | 752 | usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) |
| 746 | (args) | 753 | (args) |
| 747 | Lisp_Object args; | 754 | Lisp_Object args; |
| @@ -784,6 +791,10 @@ Always sets the value of SYMBOL to the result of evalling INITVALUE. | |||
| 784 | If SYMBOL is buffer-local, its default value is what is set; | 791 | If SYMBOL is buffer-local, its default value is what is set; |
| 785 | buffer-local values are not affected. | 792 | buffer-local values are not affected. |
| 786 | DOCSTRING is optional. | 793 | DOCSTRING is optional. |
| 794 | |||
| 795 | If SYMBOL has a local binding, then this form sets the local binding's | ||
| 796 | value. However, you should normally not make local bindings for | ||
| 797 | variables defined with this form. | ||
| 787 | usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) | 798 | usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) |
| 788 | (args) | 799 | (args) |
| 789 | Lisp_Object args; | 800 | Lisp_Object args; |