aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-06-11 02:38:40 +0000
committerRichard M. Stallman1998-06-11 02:38:40 +0000
commitda03dc1dad2d35f07988d729d4cb1f058469bfa6 (patch)
tree745559f4240dcb00bdab1d86e407bdc7bd7e8de2
parent89c6809aa9d96e0f22e8fdd7b421187b5396bbcf (diff)
downloademacs-da03dc1dad2d35f07988d729d4cb1f058469bfa6.tar.gz
emacs-da03dc1dad2d35f07988d729d4cb1f058469bfa6.zip
Describe widget type `other'.
-rw-r--r--lispref/customize.texi24
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
511describes a variable for which @code{t} means yes, @code{nil} means no,
512and @code{foo} means ``ask.''
513
514@item (other @var{value})
515This alternative can match any Lisp value, but if the user chooses this
516alternative, that selects the value @var{value}.
517
518The main use of @code{other} is as the last element of @code{choice}.
519For 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
528describes a variable for which @code{t} means yes, @code{nil} means no,
529and anything else means ``ask.'' If the user chooses @samp{Ask} from
530the menu of alternatives, that specifies the value @code{foo}; but any
531other 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})
511Like @code{const}, but used for values which are functions. This 535Like @code{const}, but used for values which are functions. This
512displays the documentation string as well as the function name. 536displays the documentation string as well as the function name.