diff options
| author | Richard M. Stallman | 1998-06-10 04:19:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-06-10 04:19:36 +0000 |
| commit | cc0a25e146e7c313a6dcdb72daa4a8acd7db674e (patch) | |
| tree | 01c9c2bbc08742a9eafea13fa57d2142e0c86acc /lisp | |
| parent | 976350af4c4c1bd8142af4637f34d01a8b630680 (diff) | |
| download | emacs-cc0a25e146e7c313a6dcdb72daa4a8acd7db674e.tar.gz emacs-cc0a25e146e7c313a6dcdb72daa4a8acd7db674e.zip | |
(other): New widget type.
Diffstat (limited to 'lisp')
| -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 | ||