diff options
| -rw-r--r-- | lispref/customize.texi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lispref/customize.texi b/lispref/customize.texi index d0f56d1fb77..1e37f3ce52d 100644 --- a/lispref/customize.texi +++ b/lispref/customize.texi | |||
| @@ -507,6 +507,30 @@ For example, | |||
| 507 | (const :tag "Ask" foo)) | 507 | (const :tag "Ask" foo)) |
| 508 | @end example | 508 | @end example |
| 509 | 509 | ||
| 510 | @noindent | ||
| 511 | describes a variable for which @code{t} means yes, @code{nil} means no, | ||
| 512 | and @code{foo} means ``ask.'' | ||
| 513 | |||
| 514 | @item (other @var{value}) | ||
| 515 | This alternative can match any Lisp value, but if the user chooses this | ||
| 516 | alternative, that selects the value @var{value}. | ||
| 517 | |||
| 518 | The main use of @code{other} is as the last element of @code{choice}. | ||
| 519 | For example, | ||
| 520 | |||
| 521 | @example | ||
| 522 | (choice (const :tag "Yes" t) | ||
| 523 | (const :tag "No" nil) | ||
| 524 | (other :tag "Ask" foo)) | ||
| 525 | @end example | ||
| 526 | |||
| 527 | @noindent | ||
| 528 | describes a variable for which @code{t} means yes, @code{nil} means no, | ||
| 529 | and anything else means ``ask.'' If the user chooses @samp{Ask} from | ||
| 530 | the menu of alternatives, that specifies the value @code{foo}; but any | ||
| 531 | other value (not @code{t}, @code{nil} or @code{foo}) displays as | ||
| 532 | @samp{Ask}, just like @code{foo}. | ||
| 533 | |||
| 510 | @item (function-item @var{function}) | 534 | @item (function-item @var{function}) |
| 511 | Like @code{const}, but used for values which are functions. This | 535 | Like @code{const}, but used for values which are functions. This |
| 512 | displays the documentation string as well as the function name. | 536 | displays the documentation string as well as the function name. |