GNU bug report logs - #9711
24.0.50; doc string of defcustom

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sun, 9 Oct 2011 20:03:01 UTC

Severity: minor

Found in version 24.0.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9711 in the body.
You can then email your comments to 9711 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9711; Package emacs. (Sun, 09 Oct 2011 20:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 09 Oct 2011 20:03:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50; doc string of defcustom
Date: Sun, 9 Oct 2011 13:01:35 -0700
There is a horrible confusion because of the different uses of `VALUE'
in two different contexts: in the ARG list and in this: 
 
"The remaining arguments should have the form
 
   [KEYWORD VALUE]..."
 
After that, the keywords are described, with VALUE presumably being
different for each one.  That's OK, but we should not be using the same
name, "VALUE" for the argument in the arglist.
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-19 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'
 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9711; Package emacs. (Sun, 09 Oct 2011 20:17:01 GMT) Full text and rfc822 format available.

Message #8 received at 9711 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <9711 <at> debbugs.gnu.org>
Subject: RE: bug#9711: 24.0.50; doc string of defcustom
Date: Sun, 9 Oct 2011 13:16:25 -0700
In addition, this seems wrong:

"Neither SYMBOL nor VALUE need to be quoted."

Huh?  VALUE is evaluated.  What is meant by this statement?

Evaluate this, and you get a `void-variable' error for `jjjjjj'.

(defcustom foo jjjjjj "kkkkkkk" :type sexp)

That doc-string statement is bogus, AFAICT.

The Elisp manual is OK: it says "you should not quote OPTION" (which corresponds
to SYMBOL in the doc string), and it says "Evaluating the `defcustom' form
evaluates STANDARD" (which corresponds to VALUE in the doc string).

Aside from making the grammar INcorrect (it was correct before) by changing
"needs" to "need", the bogus statement "Neither SYMBOL nor VALUE need to be
quoted." is unchanged from Emacs 20.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9711; Package emacs. (Mon, 06 Feb 2012 12:50:01 GMT) Full text and rfc822 format available.

Message #11 received at 9711 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 9711 <at> debbugs.gnu.org
Subject: Re: bug#9711: 24.0.50; doc string of defcustom
Date: Mon, 06 Feb 2012 20:48:21 +0800
"Drew Adams" <drew.adams <at> oracle.com> writes:

> "The remaining arguments should have the form
>  
>    [KEYWORD VALUE]..."
>  
> After that, the keywords are described, with VALUE presumably being
> different for each one.  That's OK, but we should not be using the same
> name, "VALUE" for the argument in the arglist.

Fixed, thanks.

> In addition, this seems wrong:
>
> "Neither SYMBOL nor VALUE need to be quoted."
>
> Huh?  VALUE is evaluated.  What is meant by this statement?

That argument is evaluated, but it is also used as an expression.  I
edited the docstring to make this clearer.




bug closed, send any further explanations to 9711 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 06 Feb 2012 12:51:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Mar 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.