unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9711: 24.0.50; doc string of defcustom
@ 2011-10-09 20:01 Drew Adams
  2011-10-09 20:16 ` Drew Adams
  2012-02-06 12:48 ` Chong Yidong
  0 siblings, 2 replies; 3+ messages in thread
From: Drew Adams @ 2011-10-09 20:01 UTC (permalink / raw)
  To: 9711

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'
 






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#9711: 24.0.50; doc string of defcustom
  2011-10-09 20:01 bug#9711: 24.0.50; doc string of defcustom Drew Adams
@ 2011-10-09 20:16 ` Drew Adams
  2012-02-06 12:48 ` Chong Yidong
  1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2011-10-09 20:16 UTC (permalink / raw)
  To: 9711

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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#9711: 24.0.50; doc string of defcustom
  2011-10-09 20:01 bug#9711: 24.0.50; doc string of defcustom Drew Adams
  2011-10-09 20:16 ` Drew Adams
@ 2012-02-06 12:48 ` Chong Yidong
  1 sibling, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2012-02-06 12:48 UTC (permalink / raw)
  To: Drew Adams; +Cc: 9711

"Drew Adams" <drew.adams@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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-06 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-09 20:01 bug#9711: 24.0.50; doc string of defcustom Drew Adams
2011-10-09 20:16 ` Drew Adams
2012-02-06 12:48 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).