changeset 22421:b23a720f3b4f

(other): New widget type.
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Jun 1998 04:19:36 +0000
parents cb77a5a6a629
children 1eba71735142
files lisp/wid-edit.el
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/wid-edit.el	Wed Jun 10 04:13:57 1998 +0000
+++ b/lisp/wid-edit.el	Wed Jun 10 04:19:36 1998 +0000
@@ -2909,6 +2909,17 @@
   :format "%v\n%h"
   :documentation-property 'variable-documentation)
 
+(define-widget 'other 'sexp
+  "Matches any value, but doesn't let the user edit the value.
+This is useful as last item in a `choice' widget.
+You should use this widget type with a default value,
+as in (other DEFAULT) or (other :tag "NAME" DEFAULT).
+If the user selects this alternative, that specifies DEFAULT
+as the value."
+  :tag "Other"
+  :format "%t%n"
+  :value 'other)
+
 (defvar widget-string-prompt-value-history nil
   "History of input to `widget-string-prompt-value'.")