[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defvar doc-string?
From: |
Pavel Janík |
Subject: |
defvar doc-string? |
Date: |
Fri, 02 Nov 2001 23:16:08 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i386-suse-linux-gnu) |
The doc-string for defvar says:
(defvar SYMBOL [INITVALUE DOCSTRING])
But I can do
(defvar pj "without doc-string")
so I think we should apply the following. I do not see anything similar in
the sources, so I'm asking. I found the current doc-string confusing,
because (e.g. when eldoc-mode is turned on) the doc-string tells me that if
I want to specify INITVALUE, I *must* also specify DOCSTRING which simply
is not true because both are optional.
--- eval.c.orig Fri Nov 2 23:07:12 2001
+++ eval.c Fri Nov 2 23:08:33 2001
@@ -720,7 +720,7 @@
This means that M-x set-variable recognizes it.
See also `user-variable-p'.
If INITVALUE is missing, SYMBOL's value is not set.
-usage: (defvar SYMBOL [INITVALUE DOCSTRING]) */)
+usage: (defvar SYMBOL [INITVALUE [DOCSTRING]]) */)
(args)
Lisp_Object args;
{
OK to commit?
--
Pavel Janík
die_if_kernel("Kernel gets FloatingPenguinUnit disabled trap", regs);
-- 2.2.16 arch/sparc/kernel/traps.c
- defvar doc-string?,
Pavel Janík <=