aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-12-16 06:34:51 +0000
committerKarl Heuer1998-12-16 06:34:51 +0000
commit1f447a50156fdeeaeafa921478de3a278db3507e (patch)
tree4e21b5a58a1ad0c6a6ed604e4179a7c43bbb0956
parent8c2176454014c4e6a1dba11ac9580d0d9be7a2a1 (diff)
downloademacs-1f447a50156fdeeaeafa921478de3a278db3507e.tar.gz
emacs-1f447a50156fdeeaeafa921478de3a278db3507e.zip
*** empty log message ***
-rw-r--r--lispref/customize.texi33
1 files changed, 29 insertions, 4 deletions
diff --git a/lispref/customize.texi b/lispref/customize.texi
index 1e37f3ce52d..4810280b2df 100644
--- a/lispref/customize.texi
+++ b/lispref/customize.texi
@@ -543,10 +543,35 @@ displays the documentation string as well as the variable name. The
543documentation string is either the one you specify with @code{:doc}, or 543documentation string is either the one you specify with @code{:doc}, or
544@var{variable}'s own documentation string. 544@var{variable}'s own documentation string.
545 545
546@item (set @var{elements}@dots{}) 546@item (set @var{types}@dots{})
547The value must be a list and each element of the list must be one of the 547The value must be a list, and each element of the list must match one of
548@var{elements} specified. This appears in the customization buffer as a 548the @var{types} specified.
549checklist. 549
550This appears in the customization buffer as a checklist, so that each of
551@var{types} may have either one corresponding element or none. It is
552not possible to specify two different elements that match the same one
553of @var{types}. For example, @code{(set integer symbol)} allows one
554integer and/or one symbol in the list; it does not allow multiple
555integers or multiple symbols. As a result, it is rare to use
556nonspecific types such as @code{integer} in a @code{set}.
557
558Most often, the @var{types} in a @code{set} are @code{const} types, as
559shown here:
560
561@example
562(set (const :bold) (const :italic))
563@end example
564
565Sometimes they describe possible elements in an alist:
566
567@example
568(set (cons :tag "Height" (const height) integer)
569 (cons :tag "Width" (const width) integer))
570@end example
571
572@noindent
573That lets the user specify a height value optionally
574and a width value optionally.
550 575
551@item (repeat @var{element-type}) 576@item (repeat @var{element-type})
552The value must be a list and each element of the list must fit the type 577The value must be a list and each element of the list must fit the type