summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-11 02:38:40 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-11 02:38:40 +0000
commit336268e47fa5bfa1fe3ff26b6821588ffa708764 (patch)
tree54fa0150139230ccbe5230c521a5b86544ab5271
parent16ced93237b8dd869651dae05d311efdc41b8823 (diff)
downloademacs-336268e47fa5bfa1fe3ff26b6821588ffa708764.tar.gz
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,
(const :tag "Ask" foo))
@end example
+@noindent
+describes a variable for which @code{t} means yes, @code{nil} means no,
+and @code{foo} means ``ask.''
+
+@item (other @var{value})
+This alternative can match any Lisp value, but if the user chooses this
+alternative, that selects the value @var{value}.
+
+The main use of @code{other} is as the last element of @code{choice}.
+For example,
+
+@example
+(choice (const :tag "Yes" t)
+ (const :tag "No" nil)
+ (other :tag "Ask" foo))
+@end example
+
+@noindent
+describes a variable for which @code{t} means yes, @code{nil} means no,
+and anything else means ``ask.'' If the user chooses @samp{Ask} from
+the menu of alternatives, that specifies the value @code{foo}; but any
+other value (not @code{t}, @code{nil} or @code{foo}) displays as
+@samp{Ask}, just like @code{foo}.
+
@item (function-item @var{function})
Like @code{const}, but used for values which are functions. This
displays the documentation string as well as the function name.