diff options
| -rw-r--r-- | lisp/wid-edit.el | 11 |
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. | ||
| 2914 | This is useful as last item in a `choice' widget. | ||
| 2915 | You should use this widget type with a default value, | ||
| 2916 | as in (other DEFAULT) or (other :tag "NAME" DEFAULT). | ||
| 2917 | If the user selects this alternative, that specifies DEFAULT | ||
| 2918 | as 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 | ||