summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-10 20:31:27 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-10 20:31:27 +0000
commitba5fc5c8a5dd5d49e2fd7ba53a6b5e70b0ce4429 (patch)
tree0a53761892fb18a6673159bad4873a05dd172d13 /lispref
parent8f3716ce17edae7980727a69b6ba31ab519c93d8 (diff)
downloademacs-ba5fc5c8a5dd5d49e2fd7ba53a6b5e70b0ce4429.tar.gz
Fix defvar equivalent expression.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/variables.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi
index dbc922a8bd8..c3bd61541d8 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -484,7 +484,8 @@ Here is an equivalent expression for the @code{defvar} special form:
(progn
(if (not (boundp '@var{symbol}))
(setq @var{symbol} @var{value}))
- (put '@var{symbol} 'variable-documentation '@var{doc-string})
+ (if '@var{doc-string}
+ (put '@var{symbol} 'variable-documentation '@var{doc-string}))
'@var{symbol})
@end group
@end example