import xemacs-21.2.37
[chise/xemacs-chise.git.1] / info / widget.info
1 This is ../info/widget.info, produced by makeinfo version 4.0 from
2 widget.texi.
3
4 INFO-DIR-SECTION XEmacs Editor
5 START-INFO-DIR-ENTRY
6 * Widgets: (widget).            The Emacs Widget Library.
7 END-INFO-DIR-ENTRY
8
9 \1f
10 File: widget.info,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
11
12 The Emacs Widget Library
13 ************************
14
15 * Menu:
16
17 * Introduction::
18 * User Interface::
19 * Programming Example::
20 * Setting Up the Buffer::
21 * Basic Types::
22 * Sexp Types::
23 * Widget Properties::
24 * Defining New Widgets::
25 * Widget Browser::
26 * Widget Minor Mode::
27 * Utilities::
28 * Widget Wishlist::
29
30 \1f
31 File: widget.info,  Node: Introduction,  Next: User Interface,  Prev: Top,  Up: Top
32
33 Introduction
34 ============
35
36    Most graphical user interface toolkits, such as Motif and XView,
37 provide a number of standard user interface controls (sometimes known as
38 `widgets' or `gadgets').  Emacs doesn't really support anything like
39 this, except for an incredible powerful text "widget".  On the other
40 hand, Emacs does provide the necessary primitives to implement many
41 other widgets within a text buffer.  The `widget' package simplifies
42 this task.
43
44    The basic widgets are:
45
46 `link'
47      Areas of text with an associated action.  Intended for hypertext
48      links embedded in text.
49
50 `push-button'
51      Like link, but intended for stand-alone buttons.
52
53 `editable-field'
54      An editable text field.  It can be either variable or fixed length.
55
56 `menu-choice'
57      Allows the user to choose one of multiple options from a menu, each
58      option is itself a widget.  Only the selected option will be
59      visible in the buffer.
60
61 `radio-button-choice'
62      Allows the user to choose one of multiple options by activating
63      radio buttons.  The options are implemented as widgets.  All
64      options will be visible in the buffer.
65
66 `item'
67      A simple constant widget intended to be used in the `menu-choice'
68      and `radio-button-choice' widgets.
69
70 `choice-item'
71      An button item only intended for use in choices.  When invoked,
72      the user will be asked to select another option from the choice
73      widget.
74
75 `toggle'
76      A simple `on'/`off' switch.
77
78 `checkbox'
79      A checkbox (`[ ]'/`[X]').
80
81 `editable-list'
82      Create an editable list.  The user can insert or delete items in
83      the list.  Each list item is itself a widget.
84
85    Now of what possible use can support for widgets be in a text editor?
86 I'm glad you asked.  The answer is that widgets are useful for
87 implementing forms.  A "form" in emacs is a buffer where the user is
88 supposed to fill out a number of fields, each of which has a specific
89 meaning.  The user is not supposed to change or delete any of the text
90 between the fields.  Examples of forms in Emacs are the `forms' package
91 (of course), the customize buffers, the mail and news compose modes,
92 and the HTML form support in the `w3' browser.
93
94    The advantages for a programmer of using the `widget' package to
95 implement forms are:
96
97   1. More complex fields than just editable text are supported.
98
99   2. You can give the user immediate feedback if he enters invalid data
100      in a text field, and sometimes prevent entering invalid data.
101
102   3. You can have fixed sized fields, thus allowing multiple field to be
103      lined up in columns.
104
105   4. It is simple to query or set the value of a field.
106
107   5. Editing happens in buffer, not in the mini-buffer.
108
109   6. Packages using the library get a uniform look, making them easier
110      for the user to learn.
111
112   7. As support for embedded graphics improve, the widget library will
113      extended to support it.  This means that your code using the widget
114      library will also use the new graphic features by automatic.
115
116    In order to minimize the code that is loaded by users who does not
117 create any widgets, the code has been split in two files:
118
119 `widget.el'
120      This will declare the user variables, define the function
121      `widget-define', and autoload the function `widget-create'.
122
123 `wid-edit.el'
124      Everything else is here, there is no reason to load it explicitly,
125      as it will be autoloaded when needed.
126
127 \1f
128 File: widget.info,  Node: User Interface,  Next: Programming Example,  Prev: Introduction,  Up: Top
129
130 User Interface
131 ==============
132
133    A form consist of read only text for documentation and some fields,
134 where each the fields contain two parts, as tag and a value.  The tags
135 are used to identify the fields, so the documentation can refer to the
136 foo field, meaning the field tagged with `Foo'. Here is an example form:
137
138      Here is some documentation.
139      
140      Name: My Name     *Choose*: This option
141      Address:  Some Place
142      In some City
143      Some country.
144      
145      See also _other work_ for more information.
146      
147      Numbers: count to three below
148      [INS] [DEL] One
149      [INS] [DEL] Eh, two?
150      [INS] [DEL] Five!
151      [INS]
152      
153      Select multiple:
154      
155      [X] This
156      [ ] That
157      [X] Thus
158      
159      Select one:
160      
161      (*) One
162      ( ) Another One.
163      ( ) A Final One.
164      
165      [Apply Form] [Reset Form]
166
167    The top level widgets in is example are tagged `Name', `Choose',
168 `Address', `_other work_', `Numbers', `Select multiple', `Select one',
169 `[Apply Form]', and `[Reset Form]'.  There are basically two thing the
170 user can do within a form, namely editing the editable text fields and
171 activating the buttons.
172
173 Editable Text Fields
174 --------------------
175
176    In the example, the value for the `Name' is most likely displayed in
177 an editable text field, and so are values for each of the members of
178 the `Numbers' list.  All the normal Emacs editing operations are
179 available for editing these fields.  The only restriction is that each
180 change you make must be contained within a single editable text field.
181 For example, capitalizing all text from the middle of one field to the
182 middle of another field is prohibited.
183
184    Editing text fields are created by the `editable-field' widget.
185
186    The editing text fields are highlighted with the `widget-field-face'
187 face, making them easy to find.
188
189  - Face: widget-field-face
190      Face used for other editing fields.
191
192 Buttons
193 -------
194
195    Some portions of the buffer have an associated "action", which can
196 be "invoked" by a standard key or mouse command.  These portions are
197 called "buttons".  The default commands for activating a button are:
198
199 `<RET>'
200       - Command: widget-button-press POS &optional EVENT
201           Invoke the button at POS, defaulting to point.  If point is
202           not located on a button, invoke the binding in
203           `widget-global-map' (by default the global map).
204
205 `mouse-2'
206       - Command: widget-button-click EVENT
207           Invoke the button at the location of the mouse pointer.  If
208           the mouse pointer is located in an editable text field,
209           invoke the binding in `widget-global-map' (by default the
210           global map).
211
212    There are several different kind of buttons, all of which are
213 present in the example:
214
215 _The Option Field Tags._
216      When you invoke one of these buttons, you will be asked to choose
217      between a number of different options.  This is how you edit an
218      option field.  Option fields are created by the `menu-choice'
219      widget.  In the example, `Choose' is an option field tag.
220
221 _The `[INS]' and `[DEL]' buttons._
222      Activating these will insert or delete elements from a editable
223      list.  The list is created by the `editable-list' widget.
224
225 _Embedded Buttons._
226      The `_other work_' is an example of an embedded button. Embedded
227      buttons are not associated with a fields, but can serve any
228      purpose, such as implementing hypertext references.  They are
229      usually created by the `link' widget.
230
231 _The `[ ]' and `[X]' buttons._
232      Activating one of these will convert it to the other.  This is
233      useful for implementing multiple-choice fields.  You can create it
234      wit
235
236 _The `( )' and `(*)' buttons._
237      Only one radio button in a `radio-button-choice' widget can be
238      selected at any time.  When you invoke one of the unselected radio
239      buttons, it will be selected and the previous selected radio
240      button will become unselected.
241
242 _The `[Apply Form]' `[Reset Form]' buttons._
243      These are explicit buttons made with the `push-button' widget.
244      The main difference from the `link' widget is that the buttons are
245      will be displayed as GUI buttons when possible.  enough.
246
247    To make them easier to locate, buttons are emphasized in the buffer.
248
249  - Face: widget-button-face
250      Face used for buttons.
251
252  - User Option: widget-mouse-face
253      Face used for buttons when the mouse pointer is above it.
254
255 Navigation
256 ----------
257
258    You can use all the normal Emacs commands to move around in a form
259 buffer, plus you will have these additional commands:
260
261 `<TAB>'
262       - Command: widget-forward &optional count
263           Move point COUNT buttons or editing fields forward.
264
265 `<M-TAB>'
266       - Command: widget-backward &optional count
267           Move point COUNT buttons or editing fields backward.
268
269 \1f
270 File: widget.info,  Node: Programming Example,  Next: Setting Up the Buffer,  Prev: User Interface,  Up: Top
271
272 Programming Example
273 ===================
274
275    Here is the code to implement the user interface example (see *Note
276 User Interface::).
277
278      (require 'widget)
279      
280      (eval-when-compile
281        (require 'wid-edit))
282      
283      (defvar widget-example-repeat)
284      
285      (defun widget-example ()
286        "Create the widgets from the Widget manual."
287        (interactive)
288        (kill-buffer (get-buffer-create "*Widget Example*"))
289        (switch-to-buffer (get-buffer-create "*Widget Example*"))
290        (kill-all-local-variables)
291        (make-local-variable 'widget-example-repeat)
292        (widget-insert "Here is some documentation.\n\nName: ")
293        (widget-create 'editable-field
294                       :size 13
295                       "My Name")
296        (widget-create 'menu-choice
297                       :tag "Choose"
298                       :value "This"
299                       :help-echo "Choose me, please!"
300                       :notify (lambda (widget &rest ignore)
301                                 (message "%s is a good choice!"
302                                          (widget-value widget)))
303                       '(item :tag "This option" :value "This")
304                       '(choice-item "That option")
305                       '(editable-field :menu-tag "No option" "Thus option"))
306        (widget-insert "Address: ")
307        (widget-create 'editable-field
308                       "Some Place\nIn some City\nSome country.")
309        (widget-insert "\nSee also ")
310        (widget-create 'link
311                       :notify (lambda (&rest ignore)
312                                 (widget-value-set widget-example-repeat
313                                                   '("En" "To" "Tre"))
314                                 (widget-setup))
315                       "other work")
316        (widget-insert " for more information.\n\nNumbers: count to three below\n")
317        (setq widget-example-repeat
318              (widget-create 'editable-list
319                             :entry-format "%i %d %v"
320                             :notify (lambda (widget &rest ignore)
321                                       (let ((old (widget-get widget
322                                                              ':example-length))
323                                             (new (length (widget-value widget))))
324                                         (unless (eq old new)
325                                           (widget-put widget ':example-length new)
326                                           (message "You can count to %d." new))))
327                             :value '("One" "Eh, two?" "Five!")
328                             '(editable-field :value "three")))
329        (widget-insert "\n\nSelect multiple:\n\n")
330        (widget-create 'checkbox t)
331        (widget-insert " This\n")
332        (widget-create 'checkbox nil)
333        (widget-insert " That\n")
334        (widget-create 'checkbox
335                       :notify (lambda (&rest ignore) (message "Tickle"))
336                       t)
337        (widget-insert " Thus\n\nSelect one:\n\n")
338        (widget-create 'radio-button-choice
339                       :value "One"
340                       :notify (lambda (widget &rest ignore)
341                                 (message "You selected %s"
342                                          (widget-value widget)))
343                       '(item "One") '(item "Another One.") '(item "A Final One."))
344        (widget-insert "\n")
345        (widget-create 'push-button
346                       :notify (lambda (&rest ignore)
347                                 (if (= (length (widget-value widget-example-repeat))
348                                        3)
349                                     (message "Congratulation!")
350                                   (error "Three was the count!")))
351                       "Apply Form")
352        (widget-insert " ")
353        (widget-create 'push-button
354                       :notify (lambda (&rest ignore)
355                                 (widget-example))
356                       "Reset Form")
357        (widget-insert "\n")
358        (use-local-map widget-keymap)
359        (widget-setup))
360
361 \1f
362 File: widget.info,  Node: Setting Up the Buffer,  Next: Basic Types,  Prev: Programming Example,  Up: Top
363
364 Setting Up the Buffer
365 =====================
366
367    Widgets are created with `widget-create', which returns a "widget"
368 object.  This object can be queried and manipulated by other widget
369 functions, until it is deleted with `widget-delete'.  After the widgets
370 have been created, `widget-setup' must be called to enable them.
371
372  - Function: widget-create type [ keyword argument ]...
373      Create and return a widget of type TYPE.  The syntax for the TYPE
374      argument is described in *Note Basic Types::.
375
376      The keyword arguments can be used to overwrite the keyword
377      arguments that are part of TYPE.
378
379  - Function: widget-delete widget
380      Delete WIDGET and remove it from the buffer.
381
382  - Function: widget-setup
383      Setup a buffer to support widgets.
384
385      This should be called after creating all the widgets and before
386      allowing the user to edit them.
387
388
389    If you want to insert text outside the widgets in the form, the
390 recommended way to do that is with `widget-insert'.
391
392  - Function: widget-insert
393      Insert the arguments, either strings or characters, at point.  The
394      inserted text will be read only.
395
396    There is a standard widget keymap which you might find useful.
397
398  - Const: widget-keymap
399      A keymap with the global keymap as its parent.
400      <TAB> and `C-<TAB>' are bound to `widget-forward' and
401      `widget-backward', respectively.  `<RET>' and `mouse-2' are bound
402      to `widget-button-press' and `widget-button-'.
403
404  - Variable: widget-global-map
405      Keymap used by `widget-button-press' and `widget-button-click'
406      when not on a button.  By default this is `global-map'.
407
408 \1f
409 File: widget.info,  Node: Basic Types,  Next: Sexp Types,  Prev: Setting Up the Buffer,  Up: Top
410
411 Basic Types
412 ===========
413
414    The syntax of a type specification is given below:
415
416      NAME ::= (NAME [KEYWORD ARGUMENT]... ARGS)
417           |   NAME
418
419    where NAME is a widget name, KEYWORD is the name of a property,
420 ARGUMENT is the value of the property, and ARGS are interpreted in a
421 widget specific way.
422
423    There following keyword arguments that apply to all widgets:
424
425 `:value'
426      The initial value for widgets of this type.
427
428 `:format'
429      This string will be inserted in the buffer when you create a
430      widget.  The following `%' escapes are available:
431
432     `%['
433     `%]'
434           The text inside will be marked as a button.
435
436           By default, the text will be shown in `widget-button-face',
437           and surrounded by brackets.
438
439            - User Option: widget-button-prefix
440                String to prefix buttons.
441
442            - User Option: widget-button-suffix
443                String to suffix buttons.
444
445     `%{'
446     `%}'
447           The text inside will be displayed in the face specified by
448           `:sample-face'.
449
450     `%v'
451           This will be replaced with the buffer representation of the
452           widget's value.  What this is depends on the widget type.
453
454     `%d'
455           Insert the string specified by `:doc' here.
456
457     `%h'
458           Like `%d', with the following modifications: If the
459           documentation string is more than one line, it will add a
460           button which will toggle between showing only the first line,
461           and showing the full text.  Furthermore, if there is no
462           `:doc' property in the widget, it will instead examine the
463           `:documentation-property' property.  If it is a lambda
464           expression, it will be called with the widget's value as an
465           argument, and the result will be used as the documentation
466           text.
467
468     `%t'
469           Insert the string specified by `:tag' here, or the `princ'
470           representation of the value if there is no tag.
471
472     `%%'
473           Insert a literal `%'.
474
475 `:button-face'
476      Face used to highlight text inside %[ %] in the format.
477
478 `:button-prefix'
479 `:button-suffix'
480      Text around %[ %] in the format.
481
482      These can be
483     _nil_
484           No text is inserted.
485
486     _a string_
487           The string is inserted literally.
488
489     _a symbol_
490           The value of the symbol is expanded according to this table.
491
492 `:doc'
493      The string inserted by the `%d' or `%h' escape in the format
494      string.
495
496 `:tag'
497      The string inserted by the `%t' escape in the format string.
498
499 `:tag-glyph'
500      Name of image to use instead of the string specified by `:tag' on
501      Emacsen that supports it.
502
503 `:help-echo'
504      Message displayed whenever you move to the widget with either
505      `widget-forward' or `widget-backward'.
506
507 `:indent'
508      An integer indicating the absolute number of spaces to indent
509      children of this widget.
510
511 `:offset'
512      An integer indicating how many extra spaces to add to the widget's
513      grandchildren compared to this widget.
514
515 `:extra-offset'
516      An integer indicating how many extra spaces to add to the widget's
517      children compared to this widget.
518
519 `:notify'
520      A function called each time the widget or a nested widget is
521      changed.  The function is called with two or three arguments.  The
522      first argument is the widget itself, the second argument is the
523      widget that was changed, and the third argument is the event
524      leading to the change, if any.
525
526 `:menu-tag'
527      Tag used in the menu when the widget is used as an option in a
528      `menu-choice' widget.
529
530 `:menu-tag-get'
531      Function used for finding the tag when the widget is used as an
532      option in a `menu-choice' widget.  By default, the tag used will
533      be either the `:menu-tag' or `:tag' property if present, or the
534      `princ' representation of the `:value' property if not.
535
536 `:match'
537      Should be a function called with two arguments, the widget and a
538      value, and returning non-nil if the widget can represent the
539      specified value.
540
541 `:validate'
542      A function which takes a widget as an argument, and returns nil if
543      the widget's current value is valid for the widget.  Otherwise it
544      should return the widget containing the invalid data, and set that
545      widget's `:error' property to a string explaining the error.
546
547      The following predefined function can be used:
548
549       - Function: widget-children-validate widget
550           All the `:children' of WIDGET must be valid.
551
552 `:tab-order'
553      Specify the order in which widgets are traversed with
554      `widget-forward' or `widget-backward'.  This is only partially
555      implemented.
556
557        a. Widgets with tabbing order `-1' are ignored.
558
559        b. (Unimplemented) When on a widget with tabbing order N, go to
560           the next widget in the buffer with tabbing order N+1 or `nil',
561           whichever comes first.
562
563        c. When on a widget with no tabbing order specified, go to the
564           next widget in the buffer with a positive tabbing order, or
565           `nil'
566
567 `:parent'
568      The parent of a nested widget (e.g. a `menu-choice' item or an
569      element of a `editable-list' widget).
570
571 `:sibling-args'
572      This keyword is only used for members of a `radio-button-choice' or
573      `checklist'.  The value should be a list of extra keyword
574      arguments, which will be used when creating the `radio-button' or
575      `checkbox' associated with this item.
576
577  - User Option: widget-glyph-directory
578      Directory where glyphs are found.  Widget will look here for a
579      file with the same name as specified for the image, with either a
580      `.xpm' (if supported) or `.xbm' extension.
581
582  - User Option: widget-glyph-enable
583      If non-nil, allow glyphs to appear on displays where they are
584      supported.
585
586 * Menu:
587
588 * link::
589 * url-link::
590 * info-link::
591 * push-button::
592 * editable-field::
593 * text::
594 * menu-choice::
595 * radio-button-choice::
596 * item::
597 * choice-item::
598 * toggle::
599 * checkbox::
600 * checklist::
601 * editable-list::
602 * group::
603
604 \1f
605 File: widget.info,  Node: link,  Next: url-link,  Prev: Basic Types,  Up: Basic Types
606
607 The `link' Widget
608 -----------------
609
610    Syntax:
611
612      TYPE ::= (link [KEYWORD ARGUMENT]...  [ VALUE ])
613
614    The VALUE, if present, is used to initialize the `:value' property.
615 The value should be a string, which will be inserted in the buffer.
616
617    By default the link will be shown in brackets.
618
619  - User Option: widget-link-prefix
620      String to prefix links.
621
622  - User Option: widget-link-suffix
623      String to suffix links.
624
625 \1f
626 File: widget.info,  Node: url-link,  Next: info-link,  Prev: link,  Up: Basic Types
627
628 The `url-link' Widget
629 ---------------------
630
631    Syntax:
632
633      TYPE ::= (url-link [KEYWORD ARGUMENT]...  URL)
634
635    When this link is invoked, the WWW browser specified by
636 `browse-url-browser-function' will be called with URL.
637
638 \1f
639 File: widget.info,  Node: info-link,  Next: push-button,  Prev: url-link,  Up: Basic Types
640
641 The `info-link' Widget
642 ----------------------
643
644    Syntax:
645
646      TYPE ::= (info-link [KEYWORD ARGUMENT]...  ADDRESS)
647
648    When this link is invoked, the built-in info browser is started on
649 ADDRESS.
650
651 \1f
652 File: widget.info,  Node: push-button,  Next: editable-field,  Prev: info-link,  Up: Basic Types
653
654 The `push-button' Widget
655 ------------------------
656
657    Syntax:
658
659      TYPE ::= (push-button [KEYWORD ARGUMENT]...  [ VALUE ])
660
661    The VALUE, if present, is used to initialize the `:value' property.
662 The value should be a string, which will be inserted in the buffer.
663
664    By default the tag will be shown in brackets.
665
666  - User Option: widget-push-button-prefix
667      String to prefix push buttons.
668
669  - User Option: widget-push-button-suffix
670      String to suffix push buttons.
671
672 \1f
673 File: widget.info,  Node: editable-field,  Next: text,  Prev: push-button,  Up: Basic Types
674
675 The `editable-field' Widget
676 ---------------------------
677
678    Syntax:
679
680      TYPE ::= (editable-field [KEYWORD ARGUMENT]... [ VALUE ])
681
682    The VALUE, if present, is used to initialize the `:value' property.
683 The value should be a string, which will be inserted in field.  This
684 widget will match all string values.
685
686    The following extra properties are recognized.
687
688 `:size'
689      The minimum width of the editable field.
690      By default the field will reach to the end of the line.  If the
691      content is too large, the displayed representation will expand to
692      contain it.  The content is not truncated to size.
693
694 `:value-face'
695      Face used for highlighting the editable field.  Default is
696      `widget-field-face'.
697
698 `:secret'
699      Character used to display the value.  You can set this to e.g. `?*'
700      if the field contains a password or other secret information.  By
701      default, the value is not secret.
702
703 `:valid-regexp'
704      By default the `:validate' function will match the content of the
705      field with the value of this attribute.  The default value is `""'
706      which matches everything.
707
708 `:keymap'
709      Keymap used in the editable field.  The default value is
710      `widget-field-keymap', which allows you to use all the normal
711      editing commands, even if the buffer's major mode suppress some of
712      them.  Pressing return invokes the function specified by `:action'.
713
714 \1f
715 File: widget.info,  Node: text,  Next: menu-choice,  Prev: editable-field,  Up: Basic Types
716
717 The `text' Widget
718 -----------------
719
720    This is just like `editable-field', but intended for multiline text
721 fields.  The default `:keymap' is `widget-text-keymap', which does not
722 rebind the return key.
723
724 \1f
725 File: widget.info,  Node: menu-choice,  Next: radio-button-choice,  Prev: text,  Up: Basic Types
726
727 The `menu-choice' Widget
728 ------------------------
729
730    Syntax:
731
732      TYPE ::= (menu-choice [KEYWORD ARGUMENT]... TYPE ... )
733
734    The TYPE argument represents each possible choice.  The widget's
735 value will be that of the chosen TYPE argument.  This widget will match
736 any value matching at least one of the specified TYPE arguments.
737
738 `:void'
739      Widget type used as a fallback when the value does not match any
740      of the specified TYPE arguments.
741
742 `:case-fold'
743      Set this to nil if you don't want to ignore case when prompting
744      for a choice through the minibuffer.
745
746 `:children'
747      A list whose car is the widget representing the currently chosen
748      type in the buffer.
749
750 `:choice'
751      The current chosen type
752
753 `:args'
754      The list of types.
755
756 \1f
757 File: widget.info,  Node: radio-button-choice,  Next: item,  Prev: menu-choice,  Up: Basic Types
758
759 The `radio-button-choice' Widget
760 --------------------------------
761
762    Syntax:
763
764      TYPE ::= (radio-button-choice [KEYWORD ARGUMENT]...  TYPE ... )
765
766    The TYPE argument represents each possible choice.  The widget's
767 value will be that of the chosen TYPE argument.  This widget will match
768 any value matching at least one of the specified TYPE arguments.
769
770    The following extra properties are recognized.
771
772 `:entry-format'
773      This string will be inserted for each entry in the list.  The
774      following `%' escapes are available:
775     `%v'
776           Replaced with the buffer representation of the TYPE widget.
777
778     `%b'
779           Replace with the radio button.
780
781     `%%'
782           Insert a literal `%'.
783
784 `button-args'
785      A list of keywords to pass to the radio buttons.  Useful for
786      setting e.g. the `:help-echo' for each button.
787
788 `:buttons'
789      The widgets representing the radio buttons.
790
791 `:children'
792      The widgets representing each type.
793
794 `:choice'
795      The current chosen type
796
797 `:args'
798      The list of types.
799
800    You can add extra radio button items to a `radio-button-choice'
801 widget after it has been created with the function
802 `widget-radio-add-item'.
803
804  - Function: widget-radio-add-item widget type
805      Add to `radio-button-choice' widget WIDGET a new radio button item
806      of type TYPE.
807
808    Please note that such items added after the `radio-button-choice'
809 widget has been created will *not* be properly destructed when you call
810 `widget-delete'.
811
812 \1f
813 File: widget.info,  Node: item,  Next: choice-item,  Prev: radio-button-choice,  Up: Basic Types
814
815 The `item' Widget
816 -----------------
817
818    Syntax:
819
820      ITEM ::= (item [KEYWORD ARGUMENT]... VALUE)
821
822    The VALUE, if present, is used to initialize the `:value' property.
823 The value should be a string, which will be inserted in the buffer.
824 This widget will only match the specified value.
825
826 \1f
827 File: widget.info,  Node: choice-item,  Next: toggle,  Prev: item,  Up: Basic Types
828
829 The `choice-item' Widget
830 ------------------------
831
832    Syntax:
833
834      ITEM ::= (choice-item [KEYWORD ARGUMENT]... VALUE)
835
836    The VALUE, if present, is used to initialize the `:value' property.
837 The value should be a string, which will be inserted in the buffer as a
838 button.  Activating the button of a `choice-item' is equivalent to
839 activating the parent widget.  This widget will only match the
840 specified value.
841
842 \1f
843 File: widget.info,  Node: toggle,  Next: checkbox,  Prev: choice-item,  Up: Basic Types
844
845 The `toggle' Widget
846 -------------------
847
848    Syntax:
849
850      TYPE ::= (toggle [KEYWORD ARGUMENT]...)
851
852    The widget has two possible states, `on' and `off', which correspond
853 to a `t' or `nil' value respectively.
854
855    The following extra properties are recognized.
856
857 `:on'
858      String representing the `on' state.  By default the string `on'.
859
860 `:off'
861      String representing the `off' state.  By default the string `off'.
862
863 `:on-glyph'
864      Name of a glyph to be used instead of the `:on' text string, on
865      emacsen that supports it.
866
867 `:off-glyph'
868      Name of a glyph to be used instead of the `:off' text string, on
869      emacsen that supports it.
870
871 \1f
872 File: widget.info,  Node: checkbox,  Next: checklist,  Prev: toggle,  Up: Basic Types
873
874 The `checkbox' Widget
875 ---------------------
876
877    The widget has two possible states, `selected' and `unselected',
878 which corresponds to a `t' or `nil' value.
879
880    Syntax:
881
882      TYPE ::= (checkbox [KEYWORD ARGUMENT]...)
883
884 \1f
885 File: widget.info,  Node: checklist,  Next: editable-list,  Prev: checkbox,  Up: Basic Types
886
887 The `checklist' Widget
888 ----------------------
889
890    Syntax:
891
892      TYPE ::= (checklist [KEYWORD ARGUMENT]...  TYPE ... )
893
894    The TYPE arguments represents each checklist item.  The widget's
895 value will be a list containing the values of all ticked TYPE
896 arguments.  The checklist widget will match a list whose elements all
897 match at least one of the specified TYPE arguments.
898
899    The following extra properties are recognized.
900
901 `:entry-format'
902      This string will be inserted for each entry in the list.  The
903      following `%' escapes are available:
904     `%v'
905           Replaced with the buffer representation of the TYPE widget.
906
907     `%b'
908           Replace with the checkbox.
909
910     `%%'
911           Insert a literal `%'.
912
913 `:greedy'
914      Usually a checklist will only match if the items are in the exact
915      sequence given in the specification.  By setting `:greedy' to
916      non-nil, it will allow the items to appear in any sequence.
917      However, if you extract the values they will be in the sequence
918      given in the checklist.  I.e. the original sequence is forgotten.
919
920 `button-args'
921      A list of keywords to pass to the checkboxes.  Useful for setting
922      e.g. the `:help-echo' for each checkbox.
923
924 `:buttons'
925      The widgets representing the checkboxes.
926
927 `:children'
928      The widgets representing each type.
929
930 `:args'
931      The list of types.
932
933 \1f
934 File: widget.info,  Node: editable-list,  Next: group,  Prev: checklist,  Up: Basic Types
935
936 The `editable-list' Widget
937 --------------------------
938
939    Syntax:
940
941      TYPE ::= (editable-list [KEYWORD ARGUMENT]... TYPE)
942
943    The value is a list, where each member represents one widget of type
944 TYPE.
945
946    The following extra properties are recognized.
947
948 `:entry-format'
949      This string will be inserted for each entry in the list.  The
950      following `%' escapes are available:
951     `%v'
952           This will be replaced with the buffer representation of the
953           TYPE widget.
954
955     `%i'
956           Insert the [INS] button.
957
958     `%d'
959           Insert the [DEL] button.
960
961     `%%'
962           Insert a literal `%'.
963
964 `:insert-button-args'
965      A list of keyword arguments to pass to the insert buttons.
966
967 `:delete-button-args'
968      A list of keyword arguments to pass to the delete buttons.
969
970 `:append-button-args'
971      A list of keyword arguments to pass to the trailing insert button.
972
973 `:buttons'
974      The widgets representing the insert and delete buttons.
975
976 `:children'
977      The widgets representing the elements of the list.
978
979 `:args'
980      List whose car is the type of the list elements.
981
982 \1f
983 File: widget.info,  Node: group,  Prev: editable-list,  Up: Basic Types
984
985 The `group' Widget
986 ------------------
987
988    This widget simply group other widget together.
989
990    Syntax:
991
992      TYPE ::= (group [KEYWORD ARGUMENT]... TYPE...)
993
994    The value is a list, with one member for each TYPE.
995
996 \1f
997 File: widget.info,  Node: Sexp Types,  Next: Widget Properties,  Prev: Basic Types,  Up: Top
998
999 Sexp Types
1000 ==========
1001
1002    A number of widgets for editing s-expressions (lisp types) are also
1003 available.  These basically fall in the following categories.
1004
1005 * Menu:
1006
1007 * constants::
1008 * generic::
1009 * atoms::
1010 * composite::
1011
1012 \1f
1013 File: widget.info,  Node: constants,  Next: generic,  Prev: Sexp Types,  Up: Sexp Types
1014
1015 The Constant Widgets.
1016 ---------------------
1017
1018    The `const' widget can contain any lisp expression, but the user is
1019 prohibited from editing edit it, which is mainly useful as a component
1020 of one of the composite widgets.
1021
1022    The syntax for the `const' widget is
1023
1024      TYPE ::= (const [KEYWORD ARGUMENT]...  [ VALUE ])
1025
1026    The VALUE, if present, is used to initialize the `:value' property
1027 and can be any s-expression.
1028
1029  - Widget: const
1030      This will display any valid s-expression in an immutable part of
1031      the buffer.
1032
1033    There are two variations of the `const' widget, namely
1034 `variable-item' and `function-item'.  These should contain a symbol
1035 with a variable or function binding.  The major difference from the
1036 `const' widget is that they will allow the user to see the variable or
1037 function documentation for the symbol.
1038
1039  - Widget: variable-item
1040      An immutable symbol that is bound as a variable.
1041
1042  - Widget: function-item
1043      An immutable symbol that is bound as a function.
1044
1045 \1f
1046 File: widget.info,  Node: generic,  Next: atoms,  Prev: constants,  Up: Sexp Types
1047
1048 Generic Sexp Widget.
1049 --------------------
1050
1051    The `sexp' widget can contain any lisp expression, and allows the
1052 user to edit it inline in the buffer.
1053
1054    The syntax for the `sexp' widget is
1055
1056      TYPE ::= (sexp [KEYWORD ARGUMENT]...  [ VALUE ])
1057
1058  - Widget: sexp
1059      This will allow you to edit any valid s-expression in an editable
1060      buffer field.
1061
1062      The `sexp' widget takes the same keyword arguments as the
1063      `editable-field' widget.
1064
1065 \1f
1066 File: widget.info,  Node: atoms,  Next: composite,  Prev: generic,  Up: Sexp Types
1067
1068 Atomic Sexp Widgets.
1069 --------------------
1070
1071    The atoms are s-expressions that does not consist of other
1072 s-expressions.  A string is an atom, while a list is a composite type.
1073 You can edit the value of an atom with the following widgets.
1074
1075    The syntax for all the atoms are
1076
1077      TYPE ::= (NAME [KEYWORD ARGUMENT]...  [ VALUE ])
1078
1079    The VALUE, if present, is used to initialize the `:value' property
1080 and must be an expression of the same type as the widget.  I.e. the
1081 string widget can only be initialized with a string.
1082
1083    All the atom widgets take the same keyword arguments as the
1084 `editable-field' widget.
1085
1086  - Widget: string
1087      Allows you to edit a string in an editable field.
1088
1089  - Widget: regexp
1090      Allows you to edit a regular expression in an editable field.
1091
1092  - Widget: character
1093      Allows you to enter a character in an editable field.
1094
1095  - Widget: file
1096      Allows you to edit a file name in an editable field.  If you invoke
1097      the tag button, you can edit the file name in the mini-buffer with
1098      completion.
1099
1100      Keywords:
1101     `:must-match'
1102           If this is set to non-nil, only existing file names will be
1103           allowed in the minibuffer.
1104
1105  - Widget: directory
1106      Allows you to edit a directory name in an editable field.  Similar
1107      to the `file' widget.
1108
1109  - Widget: symbol
1110      Allows you to edit a lisp symbol in an editable field.
1111
1112  - Widget: function
1113      Allows you to edit a lambda expression, or a function name with
1114      completion.
1115
1116  - Widget: variable
1117      Allows you to edit a variable name, with completion.
1118
1119  - Widget: integer
1120      Allows you to edit an integer in an editable field.
1121
1122  - Widget: number
1123      Allows you to edit a number in an editable field.
1124
1125  - Widget: boolean
1126      Allows you to edit a boolean.  In lisp this means a variable which
1127      is either nil meaning false, or non-nil meaning true.
1128
1129 \1f
1130 File: widget.info,  Node: composite,  Prev: atoms,  Up: Sexp Types
1131
1132 Composite Sexp Widgets.
1133 -----------------------
1134
1135    The syntax for the composite are
1136
1137      TYPE ::= (NAME [KEYWORD ARGUMENT]...  COMPONENT...)
1138
1139    Where each COMPONENT must be a widget type.  Each component widget
1140 will be displayed in the buffer, and be editable to the user.
1141
1142  - Widget: cons
1143      The value of a `cons' widget is a cons-cell where the car is the
1144      value of the first component and the cdr is the value of the second
1145      component.  There must be exactly two components.
1146
1147  - Widget: list
1148      The value of a `list' widget is a list containing the value of
1149      each of its component.
1150
1151  - Widget: vector
1152      The value of a `vector' widget is a vector containing the value of
1153      each of its component.
1154
1155    The above suffice for specifying fixed size lists and vectors.  To
1156 get variable length lists and vectors, you can use a `choice', `set' or
1157 `repeat' widgets together with the `:inline' keywords.  If any
1158 component of a composite widget has the `:inline' keyword set, its
1159 value must be a list which will then be spliced into the composite.
1160 For example, to specify a list whose first element must be a file name,
1161 and whose remaining arguments should either by the symbol `t' or two
1162 files, you can use the following widget specification:
1163
1164      (list file
1165            (choice (const t)
1166                    (list :inline t
1167                          :value ("foo" "bar")
1168                          string string)))
1169
1170    The value of a widget of this type will either have the form `(file
1171 t)' or `(file string string)'.
1172
1173    This concept of inline is probably hard to understand.  It was
1174 certainly hard to implement so instead of confusing you more by trying
1175 to explain it here, I'll just suggest you meditate over it for a while.
1176
1177  - Widget: choice
1178      Allows you to edit a sexp which may have one of a fixed set of
1179      types.  It is currently implemented with the `choice-menu' basic
1180      widget, and has a similar syntax.
1181
1182  - Widget: set
1183      Allows you to specify a type which must be a list whose elements
1184      all belong to given set.  The elements of the list is not
1185      significant.  This is implemented on top of the `checklist' basic
1186      widget, and has a similar syntax.
1187
1188  - Widget: repeat
1189      Allows you to specify a variable length list whose members are all
1190      of the same type.  Implemented on top of the `editable-list' basic
1191      widget, and has a similar syntax.
1192
1193 \1f
1194 File: widget.info,  Node: Widget Properties,  Next: Defining New Widgets,  Prev: Sexp Types,  Up: Top
1195
1196 Properties
1197 ==========
1198
1199    You can examine or set the value of a widget by using the widget
1200 object that was returned by `widget-create'.
1201
1202  - Function: widget-value widget
1203      Return the current value contained in WIDGET.  It is an error to
1204      call this function on an uninitialized widget.
1205
1206  - Function: widget-value-set widget value
1207      Set the value contained in WIDGET to VALUE.  It is an error to
1208      call this function with an invalid VALUE.
1209
1210    *Important:* You _must_ call `widget-setup' after modifying the
1211 value of a widget before the user is allowed to edit the widget again.
1212 It is enough to call `widget-setup' once if you modify multiple
1213 widgets.  This is currently only necessary if the widget contains an
1214 editing field, but may be necessary for other widgets in the future.
1215
1216    If your application needs to associate some information with the
1217 widget objects, for example a reference to the item being edited, it
1218 can be done with `widget-put' and `widget-get'.  The property names
1219 must begin with a `:'.
1220
1221  - Function: widget-put widget property value
1222      In WIDGET set PROPERTY to VALUE.  PROPERTY should be a symbol,
1223      while VALUE can be anything.
1224
1225  - Function: widget-get widget property
1226      In WIDGET return the value for PROPERTY.  PROPERTY should be a
1227      symbol, the value is what was last set by `widget-put' for
1228      PROPERTY.
1229
1230  - Function: widget-member widget property
1231      Non-nil if WIDGET has a value (even nil) for property PROPERTY.
1232
1233    Occasionally it can be useful to know which kind of widget you have,
1234 i.e. the name of the widget type you gave when the widget was created.
1235
1236  - Function: widget-type widget
1237      Return the name of WIDGET, a symbol.
1238
1239    Widgets can be in two states: active, which means they are
1240 modifiable by the user, or inactive, which means they cannot be
1241 modified by the user.  You can query or set the state with the
1242 following code:
1243
1244      ;; Examine if WIDGET is active or not.
1245      (if (widget-apply WIDGET :active)
1246          (message "Widget is active.")
1247        (message "Widget is inactive.")
1248      
1249      ;; Make WIDGET inactive.
1250      (widget-apply WIDGET :deactivate)
1251      
1252      ;; Make WIDGET active.
1253      (widget-apply WIDGET :activate)
1254
1255    A widget is inactive if itself or any of its ancestors (found by
1256 following the `:parent' link) have been deactivated.  To make sure a
1257 widget is really active, you must therefore activate both itself and
1258 all its ancestors.
1259
1260      (while widget
1261        (widget-apply widget :activate)
1262        (setq widget (widget-get widget :parent)))
1263
1264    You can check if a widget has been made inactive by examining the
1265 value of the `:inactive' keyword.  If this is non-nil, the widget itself
1266 has been deactivated.  This is different from using the `:active'
1267 keyword, in that the latter tells you if the widget *or* any of its
1268 ancestors have been deactivated.  Do not attempt to set the `:inactive'
1269 keyword directly.  Use the `:activate' `:deactivate' keywords instead.
1270
1271 \1f
1272 File: widget.info,  Node: Defining New Widgets,  Next: Widget Browser,  Prev: Widget Properties,  Up: Top
1273
1274 Defining New Widgets
1275 ====================
1276
1277    You can define specialized widgets with `define-widget'.  It allows
1278 you to create a shorthand for more complex widgets.  This includes
1279 specifying component widgets and new default values for the keyword
1280 arguments.
1281
1282  - Function: widget-define name class doc &rest args
1283      Define a new widget type named NAME from `class'.
1284
1285      NAME and class should both be symbols, `class' should be one of
1286      the existing widget types.
1287
1288      The third argument DOC is a documentation string for the widget.
1289
1290      After the new widget has been defined the following two calls will
1291      create identical widgets:
1292
1293         *      (widget-create NAME)
1294
1295         *      (apply widget-create CLASS ARGS)
1296
1297
1298    Using `widget-define' just stores the definition of the widget type
1299 in the `widget-type' property of NAME, which is what `widget-create'
1300 uses.
1301
1302    If you just want to specify defaults for keywords with no complex
1303 conversions, you can use `identity' as your conversion function.
1304
1305    The following additional keyword arguments are useful when defining
1306 new widgets:
1307 `:convert-widget'
1308      Function to convert a widget type before creating a widget of that
1309      type.  It takes a widget type as an argument, and returns the
1310      converted widget type.  When a widget is created, this function is
1311      called for the widget type and all the widget's parent types, most
1312      derived first.
1313
1314      The following predefined functions can be used here:
1315
1316       - Function: widget-types-convert-widget widget
1317           Convert `:args' as widget types in WIDGET.
1318
1319       - Function: widget-value-convert-widget widget
1320           Initialize `:value' from `:args' in WIDGET.
1321
1322 `:value-to-internal'
1323      Function to convert the value to the internal format.  The function
1324      takes two arguments, a widget and an external value.  It returns
1325      the internal value.  The function is called on the present `:value'
1326      when the widget is created, and on any value set later with
1327      `widget-value-set'.
1328
1329 `:value-to-external'
1330      Function to convert the value to the external format.  The function
1331      takes two arguments, a widget and an internal value, and returns
1332      the internal value.  The function is called on the present `:value'
1333      when the widget is created, and on any value set later with
1334      `widget-value-set'.
1335
1336 `:create'
1337      Function to create a widget from scratch.  The function takes one
1338      argument, a widget type, and creates a widget of that type,
1339      inserts it in the buffer, and returns a widget object.
1340
1341 `:delete'
1342      Function to delete a widget.  The function takes one argument, a
1343      widget, and should remove all traces of the widget from the buffer.
1344
1345 `:value-create'
1346      Function to expand the `%v' escape in the format string.  It will
1347      be called with the widget as its argument and should insert a
1348      representation of the widget's value in the buffer.
1349
1350 `:value-delete'
1351      Should remove the representation of the widget's value from the
1352      buffer.  It will be called with the widget as its argument.  It
1353      doesn't have to remove the text, but it should release markers and
1354      delete nested widgets if such have been used.
1355
1356      The following predefined function can be used here:
1357
1358       - Function: widget-children-value-delete widget
1359           Delete all `:children' and `:buttons' in WIDGET.
1360
1361 `:value-get'
1362      Function to extract the value of a widget, as it is displayed in
1363      the buffer.
1364
1365      The following predefined function can be used here:
1366
1367       - Function: widget-value-value-get widget
1368           Return the `:value' property of WIDGET.
1369
1370 `:format-handler'
1371      Function to handle unknown `%' escapes in the format string.  It
1372      will be called with the widget and the escape character as
1373      arguments.  You can set this to allow your widget to handle
1374      non-standard escapes.
1375
1376      You should end up calling `widget-default-format-handler' to handle
1377      unknown escape sequences.  It will handle the `%h' and any future
1378      escape sequences as well as give an error for unknown escapes.
1379
1380 `:action'
1381      Function to handle user initiated events.  By default, `:notify'
1382      the parent.
1383
1384      The following predefined function can be used here:
1385
1386       - Function: widget-parent-action widget &optional event
1387           Tell `:parent' of WIDGET to handle the `:action'.
1388           Optional EVENT is the event that triggered the action.
1389
1390 `:prompt-value'
1391      Function to prompt for a value in the minibuffer.  The function
1392      should take four arguments, WIDGET, PROMPT, VALUE, and UNBOUND and
1393      should return a value for widget entered by the user.  PROMPT is
1394      the prompt to use.  VALUE is the default value to use, unless
1395      UNBOUND is non-nil.  In this case there is no default value.  The
1396      function should read the value using the method most natural for
1397      this widget and does not have to check whether it matches.
1398
1399    If you want to define a new widget from scratch, use the `default'
1400 widget as its base.
1401
1402  - Widget: default
1403      Widget used as a base for other widgets.
1404
1405      It provides most of the functionality that is referred to as "by
1406      default" in this text.
1407
1408 \1f
1409 File: widget.info,  Node: Widget Browser,  Next: Widget Minor Mode,  Prev: Defining New Widgets,  Up: Top
1410
1411 Widget Browser
1412 ==============
1413
1414    There is a separate package to browse widgets.  This is intended to
1415 help programmers who want to examine the content of a widget.  The
1416 browser shows the value of each keyword, but uses links for certain
1417 keywords such as `:parent', which avoids printing cyclic structures.
1418
1419  - Command: widget-browse WIDGET
1420      Create a widget browser for WIDGET.  When called interactively,
1421      prompt for WIDGET.
1422
1423  - Command: widget-browse-other-window WIDGET
1424      Create a widget browser for WIDGET and show it in another window.
1425      When called interactively, prompt for WIDGET.
1426
1427  - Command: widget-browse-at POS
1428      Create a widget browser for the widget at POS.  When called
1429      interactively, use the position of point.
1430
1431 \1f
1432 File: widget.info,  Node: Widget Minor Mode,  Next: Utilities,  Prev: Widget Browser,  Up: Top
1433
1434 Widget Minor Mode
1435 =================
1436
1437    There is a minor mode for manipulating widgets in major modes that
1438 doesn't provide any support for widgets themselves.  This is mostly
1439 intended to be useful for programmers doing experiments.
1440
1441  - Command: widget-minor-mode
1442      Toggle minor mode for traversing widgets.  With arg, turn widget
1443      mode on if and only if arg is positive.
1444
1445  - Variable: widget-minor-mode-keymap
1446      Keymap used in `widget-minor-mode'.
1447
1448 \1f
1449 File: widget.info,  Node: Utilities,  Next: Widget Wishlist,  Prev: Widget Minor Mode,  Up: Top
1450
1451 Utilities.
1452 ==========
1453
1454  - Function: widget-prompt-value widget prompt [ value unbound ]
1455      Prompt for a value matching WIDGET, using PROMPT.
1456      The current value is assumed to be VALUE, unless UNBOUND is
1457      non-nil.
1458
1459  - Function: widget-get-sibling widget
1460      Get the item WIDGET is assumed to toggle.
1461      This is only meaningful for radio buttons or checkboxes in a list.
1462
1463 \1f
1464 File: widget.info,  Node: Widget Wishlist,  Prev: Utilities,  Up: Top
1465
1466 Wishlist
1467 ========
1468
1469    * It should be possible to add or remove items from a list with `C-k'
1470      and `C-o' (suggested by RMS).
1471
1472    * The `[INS]' and `[DEL]' buttons should be replaced by a single
1473      dash (`-').  The dash should be a button that, when invoked, ask
1474      whether you want to add or delete an item (RMS wanted to git rid of
1475      the ugly buttons, the dash is my idea).
1476
1477    * The `menu-choice' tag should be prettier, something like the
1478      abbreviated menus in Open Look.
1479
1480    * Finish `:tab-order'.
1481
1482    * Make indentation work with glyphs and proportional fonts.
1483
1484    * Add commands to show overview of object and class hierarchies to
1485      the browser.
1486
1487    * Find a way to disable mouse highlight for inactive widgets.
1488
1489    * Find a way to make glyphs look inactive.
1490
1491    * Add `property-list' widget.
1492
1493    * Add `association-list' widget.
1494
1495    * Add `key-binding' widget.
1496
1497    * Add `widget' widget for editing widget specifications.
1498
1499    * Find clean way to implement variable length list.  See
1500      `TeX-printer-list' for an explanation.
1501
1502    * `C-h' in `widget-prompt-value' should give type specific help.
1503
1504    * A mailto widget.
1505
1506    * `C-e e' in a fixed size field should go to the end of the text in
1507      the field, not the end of the field itself.
1508
1509    * Use and overlay instead of markers to delimit the widget.  Create
1510      accessors for the end points.
1511
1512    * Clicking on documentation links should call `describe-function' or
1513      `widget-browse-other-window' and friends directly, instead of going
1514      through `apropos'.  If more than one function is valid for the
1515      symbol, it should pop up a menu.
1516
1517
1518
1519 \1f
1520 Tag Table:
1521 Node: Top\7f211
1522 Node: Introduction\7f591
1523 Node: User Interface\7f4075
1524 Node: Programming Example\7f8970
1525 Node: Setting Up the Buffer\7f13120
1526 Node: Basic Types\7f14837
1527 Node: link\7f20895
1528 Node: url-link\7f21409
1529 Node: info-link\7f21721
1530 Node: push-button\7f22012
1531 Node: editable-field\7f22585
1532 Node: text\7f24068
1533 Node: menu-choice\7f24366
1534 Node: radio-button-choice\7f25219
1535 Node: item\7f26786
1536 Node: choice-item\7f27174
1537 Node: toggle\7f27672
1538 Node: checkbox\7f28409
1539 Node: checklist\7f28715
1540 Node: editable-list\7f30159
1541 Node: group\7f31341
1542 Node: Sexp Types\7f31628
1543 Node: constants\7f31941
1544 Node: generic\7f33020
1545 Node: atoms\7f33553
1546 Node: composite\7f35500
1547 Node: Widget Properties\7f37970
1548 Node: Defining New Widgets\7f41035
1549 Node: Widget Browser\7f46335
1550 Node: Widget Minor Mode\7f47193
1551 Node: Utilities\7f47750
1552 Node: Widget Wishlist\7f48231
1553 \1f
1554 End Tag Table