diff options
| author | Alan Mackenzie | 2016-12-29 20:52:02 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2016-12-29 20:52:02 +0000 |
| commit | 8295e97f18490a535d1188a3daf0b0fd1bf4fa0d (patch) | |
| tree | 64d3c0e9e5666ec947610042ec00a7506743c4ed /src/eval.c | |
| parent | b9cacf044902df441dc7cbd9a21f36833dc40a30 (diff) | |
| download | emacs-8295e97f18490a535d1188a3daf0b0fd1bf4fa0d.tar.gz emacs-8295e97f18490a535d1188a3daf0b0fd1bf4fa0d.zip | |
Remove an ambiguity from defvar's doc string. Fixes bug #25292.
The ambiguity was whether INITVALUE is evaluated when it's not going to be
used to set SYMBOL's value.
* src/eval.c (defvar): Rewrite a paragraph of the doc string.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index e50e26a11d2..240b0ff380f 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -716,10 +716,11 @@ can be referred to by the Emacs help facilities and other programming | |||
| 716 | tools. The `defvar' form also declares the variable as \"special\", | 716 | tools. The `defvar' form also declares the variable as \"special\", |
| 717 | so that it is always dynamically bound even if `lexical-binding' is t. | 717 | so that it is always dynamically bound even if `lexical-binding' is t. |
| 718 | 718 | ||
| 719 | The optional argument INITVALUE is evaluated, and used to set SYMBOL, | 719 | If SYMBOL's value is void and the optional argument INITVALUE is |
| 720 | only if SYMBOL's value is void. If SYMBOL is buffer-local, its | 720 | provided, INITVALUE is evaluated and the result used to set SYMBOL's |
| 721 | default value is what is set; buffer-local values are not affected. | 721 | value. If SYMBOL is buffer-local, its default value is what is set; |
| 722 | If INITVALUE is missing, SYMBOL's value is not set. | 722 | buffer-local values are not affected. If INITVALUE is missing, |
| 723 | SYMBOL's value is not set. | ||
| 723 | 724 | ||
| 724 | If SYMBOL has a local binding, then this form affects the local | 725 | If SYMBOL has a local binding, then this form affects the local |
| 725 | binding. This is usually not what you want. Thus, if you need to | 726 | binding. This is usually not what you want. Thus, if you need to |