all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword
@ 2010-11-12 16:42 Drew Adams
  2011-07-02 13:36 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2010-11-12 16:42 UTC (permalink / raw
  To: 7386

emacs -Q
 
The description of :value is misleading/incorrect:
 
 `:value DEFAULT'
     This is used for a type that appears as an alternative inside of
     `choice'; it specifies the default value to use, at first, if and
     when the user selects this alternative with the menu in the
     customization buffer.
 
     Of course, if the actual value of the option fits this
     alternative, it will appear showing the actual value, not DEFAULT.
 
     If `nil' is not a valid value for the alternative, then it is
     essential to specify a valid default with `:value'.
 
This gives the impression that :value can be used only within a
`choice', which is incorrect.  The truth is that :value just provides a
default value - in all cases, not just "...if and when the user selects
this alternative with the menu...".
 
Here is an example where :value is used to specify the command `ignore'
(instead of `nil') as the default value:
 
;; Use `symbolp' in case the library defining the command is not yet loaded.
(restricted-sexp :tag "Command" :match-alternatives (symbolp) :value ignore)
 
 
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-11-09 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 






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

* bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword
  2010-11-12 16:42 bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword Drew Adams
@ 2011-07-02 13:36 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-02 13:36 UTC (permalink / raw
  To: Drew Adams; +Cc: 7386

"Drew Adams" <drew.adams@oracle.com> writes:

> This gives the impression that :value can be used only within a
> `choice', which is incorrect.  The truth is that :value just provides a
> default value - in all cases, not just "...if and when the user selects
> this alternative with the menu...".

Ok; I've now clarified the manual here.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

end of thread, other threads:[~2011-07-02 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12 16:42 bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword Drew Adams
2011-07-02 13:36 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.