mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
(other): New widget type.
This commit is contained in:
parent
976350af4c
commit
cc0a25e146
1 changed files with 11 additions and 0 deletions
|
|
@ -2909,6 +2909,17 @@ link for that string."
|
|||
: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'.")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue