GNU bug report logs - #12084
24.1; default value for defcustom :type `choice'

Previous Next

Package: emacs;

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

Date: Sun, 29 Jul 2012 20:37:02 UTC

Severity: wishlist

Found in version 24.1

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <12084 <at> debbugs.gnu.org>
Subject: bug#12084: 24.1; default value for defcustom :type `choice'
Date: Sun, 29 Jul 2012 13:35:31 -0700
> (defcustom foo ()
>   "..."
>   :type `(repeat
>    (choice ,@(mapcar (lambda (cset) `(const ,cset))
>                      charset-list)))
>   :group 'convenience)

Lest someone reply that the programmer can order the list, e.g. could use, say,
`(charset-priority-list)' instead of `charset-list', let me say that that would
miss the  point.

The problem (bug) is about specifying the default value, and documenting that.
It is not about improving the particular example used to illustrate the problem.





This bug report was last modified 5 years and 227 days ago.

Previous Next


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