aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-06-10 04:19:36 +0000
committerRichard M. Stallman1998-06-10 04:19:36 +0000
commitcc0a25e146e7c313a6dcdb72daa4a8acd7db674e (patch)
tree01c9c2bbc08742a9eafea13fa57d2142e0c86acc
parent976350af4c4c1bd8142af4637f34d01a8b630680 (diff)
downloademacs-cc0a25e146e7c313a6dcdb72daa4a8acd7db674e.tar.gz
emacs-cc0a25e146e7c313a6dcdb72daa4a8acd7db674e.zip
(other): New widget type.
-rw-r--r--lisp/wid-edit.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 3e1979012ba..2c9b6e9ddd5 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -2909,6 +2909,17 @@ link for that string."
2909 :format "%v\n%h" 2909 :format "%v\n%h"
2910 :documentation-property 'variable-documentation) 2910 :documentation-property 'variable-documentation)
2911 2911
2912(define-widget 'other 'sexp
2913 "Matches any value, but doesn't let the user edit the value.
2914This is useful as last item in a `choice' widget.
2915You should use this widget type with a default value,
2916as in (other DEFAULT) or (other :tag "NAME" DEFAULT).
2917If the user selects this alternative, that specifies DEFAULT
2918as the value."
2919 :tag "Other"
2920 :format "%t%n"
2921 :value 'other)
2922
2912(defvar widget-string-prompt-value-history nil 2923(defvar widget-string-prompt-value-history nil
2913 "History of input to `widget-string-prompt-value'.") 2924 "History of input to `widget-string-prompt-value'.")
2914 2925