diff options
| author | Karl Heuer | 1998-12-16 06:34:51 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-12-16 06:34:51 +0000 |
| commit | 1f447a50156fdeeaeafa921478de3a278db3507e (patch) | |
| tree | 4e21b5a58a1ad0c6a6ed604e4179a7c43bbb0956 | |
| parent | 8c2176454014c4e6a1dba11ac9580d0d9be7a2a1 (diff) | |
| download | emacs-1f447a50156fdeeaeafa921478de3a278db3507e.tar.gz emacs-1f447a50156fdeeaeafa921478de3a278db3507e.zip | |
*** empty log message ***
| -rw-r--r-- | lispref/customize.texi | 33 |
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 | |||
| 543 | documentation string is either the one you specify with @code{:doc}, or | 543 | documentation 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{}) |
| 547 | The value must be a list and each element of the list must be one of the | 547 | The 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 | 548 | the @var{types} specified. |
| 549 | checklist. | 549 | |
| 550 | This 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 | ||
| 552 | not possible to specify two different elements that match the same one | ||
| 553 | of @var{types}. For example, @code{(set integer symbol)} allows one | ||
| 554 | integer and/or one symbol in the list; it does not allow multiple | ||
| 555 | integers or multiple symbols. As a result, it is rare to use | ||
| 556 | nonspecific types such as @code{integer} in a @code{set}. | ||
| 557 | |||
| 558 | Most often, the @var{types} in a @code{set} are @code{const} types, as | ||
| 559 | shown here: | ||
| 560 | |||
| 561 | @example | ||
| 562 | (set (const :bold) (const :italic)) | ||
| 563 | @end example | ||
| 564 | |||
| 565 | Sometimes 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 | ||
| 573 | That lets the user specify a height value optionally | ||
| 574 | and a width value optionally. | ||
| 550 | 575 | ||
| 551 | @item (repeat @var{element-type}) | 576 | @item (repeat @var{element-type}) |
| 552 | The value must be a list and each element of the list must fit the type | 577 | The value must be a list and each element of the list must fit the type |