XEmacs 21.2.22 "Mercedes".
[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 field 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 with the face specified by
448           `:sample-face'.
449
450     `%v'
451           This will be replaces with the buffer representation of the
452           widgets 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' escape in the format string.
494
495 `:tag'
496      The string inserted by the `%t' escape in the format string.
497
498 `:tag-glyph'
499      Name of image to use instead of the string specified by `:tag' on
500      Emacsen that supports it.
501
502 `:help-echo'
503      Message displayed whenever you move to the widget with either
504      `widget-forward' or `widget-backward'.
505
506 `:indent'
507      An integer indicating the absolute number of spaces to indent
508      children of this widget.
509
510 `:offset'
511      An integer indicating how many extra spaces to add to the widget's
512      grandchildren compared to this widget.
513
514 `:extra-offset'
515      An integer indicating how many extra spaces to add to the widget's
516      children compared to this widget.
517
518 `:notify'
519      A function called each time the widget or a nested widget is
520      changed.  The function is called with two or three arguments.  The
521      first argument is the widget itself, the second argument is the
522      widget that was changed, and the third argument is the event
523      leading to the change, if any.
524
525 `:menu-tag'
526      Tag used in the menu when the widget is used as an option in a
527      `menu-choice' widget.
528
529 `:menu-tag-get'
530      Function used for finding the tag when the widget is used as an
531      option in a `menu-choice' widget.  By default, the tag used will
532      be either the `:menu-tag' or `:tag' property if present, or the
533      `princ' representation of the `:value' property if not.
534
535 `:match'
536      Should be a function called with two arguments, the widget and a
537      value, and returning non-nil if the widget can represent the
538      specified value.
539
540 `:validate'
541      A function which takes a widget as an argument, and return nil if
542      the widgets current value is valid for the widget.  Otherwise, it
543      should return the widget containing the invalid data, and set that
544      widgets `:error' property to a string explaining the error.
545
546      The following predefined function can be used:
547
548       - Function: widget-children-validate widget
549           All the `:children' of WIDGET must be valid.
550
551 `:tab-order'
552      Specify the order in which widgets are traversed with
553      `widget-forward' or `widget-backward'.  This is only partially
554      implemented.
555
556        a. Widgets with tabbing order `-1' are ignored.
557
558        b. (Unimplemented) When on a widget with tabbing order N, go to
559           the next widget in the buffer with tabbing order N+1 or `nil',
560           whichever comes first.
561
562        c. When on a widget with no tabbing order specified, go to the
563           next widget in the buffer with a positive tabbing order, or
564           `nil'
565
566 `:parent'
567      The parent of a nested widget (e.g. a `menu-choice' item or an
568      element of a `editable-list' widget).
569
570 `:sibling-args'
571      This keyword is only used for members of a `radio-button-choice' or
572      `checklist'.  The value should be a list of extra keyword
573      arguments, which will be used when creating the `radio-button' or
574      `checkbox' associated with this item.
575
576  - User Option: widget-glyph-directory
577      Directory where glyphs are found.  Widget will look here for a
578      file with the same name as specified for the image, with either a
579      `.xpm' (if supported) or `.xbm' extension.
580
581  - User Option: widget-glyph-enable
582      If non-nil, allow glyphs to appear on displays where they are
583      supported.
584
585 * Menu:
586
587 * link::
588 * url-link::
589 * info-link::
590 * push-button::
591 * editable-field::
592 * text::
593 * menu-choice::
594 * radio-button-choice::
595 * item::
596 * choice-item::
597 * toggle::
598 * checkbox::
599 * checklist::
600 * editable-list::
601 * group::
602
603 \1f
604 File: widget.info,  Node: link,  Next: url-link,  Prev: Basic Types,  Up: Basic Types
605
606 The `link' Widget
607 -----------------
608
609    Syntax:
610
611      TYPE ::= (link [KEYWORD ARGUMENT]...  [ VALUE ])
612
613    The VALUE, if present, is used to initialize the `:value' property.
614 The value should be a string, which will be inserted in the buffer.
615
616    By default the link will be shown in brackets.
617
618  - User Option: widget-link-prefix
619      String to prefix links.
620
621  - User Option: widget-link-suffix
622      String to suffix links.
623
624 \1f
625 File: widget.info,  Node: url-link,  Next: info-link,  Prev: link,  Up: Basic Types
626
627 The `url-link' Widget
628 ---------------------
629
630    Syntax:
631
632      TYPE ::= (url-link [KEYWORD ARGUMENT]...  URL)
633
634    When this link is invoked, the WWW browser specified by
635 `browse-url-browser-function' will be called with URL.
636
637 \1f
638 File: widget.info,  Node: info-link,  Next: push-button,  Prev: url-link,  Up: Basic Types
639
640 The `info-link' Widget
641 ----------------------
642
643    Syntax:
644
645      TYPE ::= (info-link [KEYWORD ARGUMENT]...  ADDRESS)
646
647    When this link is invoked, the built-in info browser is started on
648 ADDRESS.
649
650 \1f
651 File: widget.info,  Node: push-button,  Next: editable-field,  Prev: info-link,  Up: Basic Types
652
653 The `push-button' Widget
654 ------------------------
655
656    Syntax:
657
658      TYPE ::= (push-button [KEYWORD ARGUMENT]...  [ VALUE ])
659
660    The VALUE, if present, is used to initialize the `:value' property.
661 The value should be a string, which will be inserted in the buffer.
662
663    By default the tag will be shown in brackets.
664
665  - User Option: widget-push-button-prefix
666      String to prefix push buttons.
667
668  - User Option: widget-push-button-suffix
669      String to suffix push buttons.
670
671 \1f
672 File: widget.info,  Node: editable-field,  Next: text,  Prev: push-button,  Up: Basic Types
673
674 The `editable-field' Widget
675 ---------------------------
676
677    Syntax:
678
679      TYPE ::= (editable-field [KEYWORD ARGUMENT]... [ VALUE ])
680
681    The VALUE, if present, is used to initialize the `:value' property.
682 The value should be a string, which will be inserted in field.  This
683 widget will match all string values.
684
685    The following extra properties are recognized.
686
687 `:size'
688      The width of the editable field.
689      By default the field will reach to the end of the line.
690
691 `:value-face'
692      Face used for highlighting the editable field.  Default is
693      `widget-field-face'.
694
695 `:secret'
696      Character used to display the value.  You can set this to e.g. `?*'
697      if the field contains a password or other secret information.  By
698      default, the value is not secret.
699
700 `:valid-regexp'
701      By default the `:validate' function will match the content of the
702      field with the value of this attribute.  The default value is `""'
703      which matches everything.
704
705 `:keymap'
706      Keymap used in the editable field.  The default value is
707      `widget-field-keymap', which allows you to use all the normal
708      editing commands, even if the buffers major mode suppress some of
709      them.  Pressing return invokes the function specified by `:action'.
710
711 \1f
712 File: widget.info,  Node: text,  Next: menu-choice,  Prev: editable-field,  Up: Basic Types
713
714 The `text' Widget
715 -----------------
716
717    This is just like `editable-field', but intended for multiline text
718 fields.  The default `:keymap' is `widget-text-keymap', which does not
719 rebind the return key.
720
721 \1f
722 File: widget.info,  Node: menu-choice,  Next: radio-button-choice,  Prev: text,  Up: Basic Types
723
724 The `menu-choice' Widget
725 ------------------------
726
727    Syntax:
728
729      TYPE ::= (menu-choice [KEYWORD ARGUMENT]... TYPE ... )
730
731    The TYPE arguments represents each possible choice.  The widgets
732 value of will be the value of the chosen TYPE argument.  This widget
733 will match any value that matches at least one of the specified TYPE
734 arguments.
735
736 `:void'
737      Widget type used as a fallback when the value does not match any
738      of the specified TYPE arguments.
739
740 `:case-fold'
741      Set this to nil if you don't want to ignore case when prompting
742      for a choice through the minibuffer.
743
744 `:children'
745      A list whose car is the widget representing the currently chosen
746      type in the buffer.
747
748 `:choice'
749      The current chosen type
750
751 `:args'
752      The list of types.
753
754 \1f
755 File: widget.info,  Node: radio-button-choice,  Next: item,  Prev: menu-choice,  Up: Basic Types
756
757 The `radio-button-choice' Widget
758 --------------------------------
759
760    Syntax:
761
762      TYPE ::= (radio-button-choice [KEYWORD ARGUMENT]...  TYPE ... )
763
764    The TYPE arguments represents each possible choice.  The widgets
765 value of will be the value of the chosen TYPE argument.  This widget
766 will match any value that matches at least one of the specified TYPE
767 arguments.
768
769    The following extra properties are recognized.
770
771 `:entry-format'
772      This string will be inserted for each entry in the list.  The
773      following `%' escapes are available:
774     `%v'
775           Replaced with the buffer representation of the TYPE widget.
776
777     `%b'
778           Replace with the radio button.
779
780     `%%'
781           Insert a literal `%'.
782
783 `button-args'
784      A list of keywords to pass to the radio buttons.  Useful for
785      setting e.g. the `:help-echo' for each button.
786
787 `:buttons'
788      The widgets representing the radio buttons.
789
790 `:children'
791      The widgets representing each type.
792
793 `:choice'
794      The current chosen type
795
796 `:args'
797      The list of types.
798
799    You can add extra radio button items to a `radio-button-choice'
800 widget after it has been created with the function
801 `widget-radio-add-item'.
802
803  - Function: widget-radio-add-item widget type
804      Add to `radio-button-choice' widget WIDGET a new radio button item
805      of type TYPE.
806
807    Please note that such items added after the `radio-button-choice'
808 widget has been created will *not* be properly destructed when you call
809 `widget-delete'.
810
811 \1f
812 File: widget.info,  Node: item,  Next: choice-item,  Prev: radio-button-choice,  Up: Basic Types
813
814 The `item' Widget
815 -----------------
816
817    Syntax:
818
819      ITEM ::= (item [KEYWORD ARGUMENT]... VALUE)
820
821    The VALUE, if present, is used to initialize the `:value' property.
822 The value should be a string, which will be inserted in the buffer.
823 This widget will only match the specified value.
824
825 \1f
826 File: widget.info,  Node: choice-item,  Next: toggle,  Prev: item,  Up: Basic Types
827
828 The `choice-item' Widget
829 ------------------------
830
831    Syntax:
832
833      ITEM ::= (choice-item [KEYWORD ARGUMENT]... VALUE)
834
835    The VALUE, if present, is used to initialize the `:value' property.
836 The value should be a string, which will be inserted in the buffer as a
837 button.  Activating the button of a `choice-item' is equivalent to
838 activating the parent widget.  This widget will only match the
839 specified value.
840
841 \1f
842 File: widget.info,  Node: toggle,  Next: checkbox,  Prev: choice-item,  Up: Basic Types
843
844 The `toggle' Widget
845 -------------------
846
847    Syntax:
848
849      TYPE ::= (toggle [KEYWORD ARGUMENT]...)
850
851    The widget has two possible states, `on' and `off', which
852 corresponds to a `t' or `nil' value.
853
854    The following extra properties are recognized.
855
856 `:on'
857      String representing the `on' state.  By default the string `on'.
858
859 `:off'
860      String representing the `off' state.  By default the string `off'.
861
862 `:on-glyph'
863      Name of a glyph to be used instead of the `:on' text string, on
864      emacsen that supports it.
865
866 `:off-glyph'
867      Name of a glyph to be used instead of the `:off' text string, on
868      emacsen that supports it.
869
870 \1f
871 File: widget.info,  Node: checkbox,  Next: checklist,  Prev: toggle,  Up: Basic Types
872
873 The `checkbox' Widget
874 ---------------------
875
876    The widget has two possible states, `selected' and `unselected',
877 which corresponds to a `t' or `nil' value.
878
879    Syntax:
880
881      TYPE ::= (checkbox [KEYWORD ARGUMENT]...)
882
883 \1f
884 File: widget.info,  Node: checklist,  Next: editable-list,  Prev: checkbox,  Up: Basic Types
885
886 The `checklist' Widget
887 ----------------------
888
889    Syntax:
890
891      TYPE ::= (checklist [KEYWORD ARGUMENT]...  TYPE ... )
892
893    The TYPE arguments represents each checklist item.  The widgets
894 value of will be a list containing the value of each ticked TYPE
895 argument.  The checklist widget will match a list whose elements all
896 matches at least one of the specified TYPE arguments.
897
898    The following extra properties are recognized.
899
900 `:entry-format'
901      This string will be inserted for each entry in the list.  The
902      following `%' escapes are available:
903     `%v'
904           Replaced with the buffer representation of the TYPE widget.
905
906     `%b'
907           Replace with the checkbox.
908
909     `%%'
910           Insert a literal `%'.
911
912 `:greedy'
913      Usually, a checklist will only match if the items are in the exact
914      sequence given in the specification.  By setting `:greedy' to
915      non-nil, it will allow the items to come in any sequence.
916      However, if you extract the value they will be in the sequence
917      given in the checklist. I.e. the original sequence is forgotten.
918
919 `button-args'
920      A list of keywords to pass to the checkboxes.  Useful for setting
921      e.g. the `:help-echo' for each checkbox.
922
923 `:buttons'
924      The widgets representing the checkboxes.
925
926 `:children'
927      The widgets representing each type.
928
929 `:args'
930      The list of types.
931
932 \1f
933 File: widget.info,  Node: editable-list,  Next: group,  Prev: checklist,  Up: Basic Types
934
935 The `editable-list' Widget
936 --------------------------
937
938    Syntax:
939
940      TYPE ::= (editable-list [KEYWORD ARGUMENT]... TYPE)
941
942    The value is a list, where each member represents one widget of type
943 TYPE.
944
945    The following extra properties are recognized.
946
947 `:entry-format'
948      This string will be inserted for each entry in the list.  The
949      following `%' escapes are available:
950     `%v'
951           This will be replaced with the buffer representation of the
952           TYPE widget.
953
954     `%i'
955           Insert the [INS] button.
956
957     `%d'
958           Insert the [DEL] button.
959
960     `%%'
961           Insert a literal `%'.
962
963 `:insert-button-args'
964      A list of keyword arguments to pass to the insert buttons.
965
966 `:delete-button-args'
967      A list of keyword arguments to pass to the delete buttons.
968
969 `:append-button-args'
970      A list of keyword arguments to pass to the trailing insert button.
971
972 `:buttons'
973      The widgets representing the insert and delete buttons.
974
975 `:children'
976      The widgets representing the elements of the list.
977
978 `:args'
979      List whose car is the type of the list elements.
980
981 \1f
982 File: widget.info,  Node: group,  Prev: editable-list,  Up: Basic Types
983
984 The `group' Widget
985 ------------------
986
987    This widget simply group other widget together.
988
989    Syntax:
990
991      TYPE ::= (group [KEYWORD ARGUMENT]... TYPE...)
992
993    The value is a list, with one member for each TYPE.
994
995 \1f
996 File: widget.info,  Node: Sexp Types,  Next: Widget Properties,  Prev: Basic Types,  Up: Top
997
998 Sexp Types
999 ==========
1000
1001    A number of widgets for editing s-expressions (lisp types) are also
1002 available.  These basically fall in the following categories.
1003
1004 * Menu:
1005
1006 * constants::
1007 * generic::
1008 * atoms::
1009 * composite::
1010
1011 \1f
1012 File: widget.info,  Node: constants,  Next: generic,  Prev: Sexp Types,  Up: Sexp Types
1013
1014 The Constant Widgets.
1015 ---------------------
1016
1017    The `const' widget can contain any lisp expression, but the user is
1018 prohibited from editing edit it, which is mainly useful as a component
1019 of one of the composite widgets.
1020
1021    The syntax for the `const' widget is
1022
1023      TYPE ::= (const [KEYWORD ARGUMENT]...  [ VALUE ])
1024
1025    The VALUE, if present, is used to initialize the `:value' property
1026 and can be any s-expression.
1027
1028  - Widget: const
1029      This will display any valid s-expression in an immutable part of
1030      the buffer.
1031
1032    There are two variations of the `const' widget, namely
1033 `variable-item' and `function-item'.  These should contain a symbol
1034 with a variable or function binding.  The major difference from the
1035 `const' widget is that they will allow the user to see the variable or
1036 function documentation for the symbol.
1037
1038  - Widget: variable-item
1039      An immutable symbol that is bound as a variable.
1040
1041  - Widget: function-item
1042      An immutable symbol that is bound as a function.
1043
1044 \1f
1045 File: widget.info,  Node: generic,  Next: atoms,  Prev: constants,  Up: Sexp Types
1046
1047 Generic Sexp Widget.
1048 --------------------
1049
1050    The `sexp' widget can contain any lisp expression, and allows the
1051 user to edit it inline in the buffer.
1052
1053    The syntax for the `sexp' widget is
1054
1055      TYPE ::= (sexp [KEYWORD ARGUMENT]...  [ VALUE ])
1056
1057  - Widget: sexp
1058      This will allow you to edit any valid s-expression in an editable
1059      buffer field.
1060
1061      The `sexp' widget takes the same keyword arguments as the
1062      `editable-field' widget.
1063
1064 \1f
1065 File: widget.info,  Node: atoms,  Next: composite,  Prev: generic,  Up: Sexp Types
1066
1067 Atomic Sexp Widgets.
1068 --------------------
1069
1070    The atoms are s-expressions that does not consist of other
1071 s-expressions.  A string is an atom, while a list is a composite type.
1072 You can edit the value of an atom with the following widgets.
1073
1074    The syntax for all the atoms are
1075
1076      TYPE ::= (NAME [KEYWORD ARGUMENT]...  [ VALUE ])
1077
1078    The VALUE, if present, is used to initialize the `:value' property
1079 and must be an expression of the same type as the widget.  I.e. the
1080 string widget can only be initialized with a string.
1081
1082    All the atom widgets take the same keyword arguments as the
1083 `editable-field' widget.
1084
1085  - Widget: string
1086      Allows you to edit a string in an editable field.
1087
1088  - Widget: regexp
1089      Allows you to edit a regular expression in an editable field.
1090
1091  - Widget: character
1092      Allows you to enter a character in an editable field.
1093
1094  - Widget: file
1095      Allows you to edit a file name in an editable field.  If you invoke
1096      the tag button, you can edit the file name in the mini-buffer with
1097      completion.
1098
1099      Keywords:
1100     `:must-match'
1101           If this is set to non-nil, only existing file names will be
1102           allowed in the minibuffer.
1103
1104  - Widget: directory
1105      Allows you to edit a directory name in an editable field.  Similar
1106      to the `file' widget.
1107
1108  - Widget: symbol
1109      Allows you to edit a lisp symbol in an editable field.
1110
1111  - Widget: function
1112      Allows you to edit a lambda expression, or a function name with
1113      completion.
1114
1115  - Widget: variable
1116      Allows you to edit a variable name, with completion.
1117
1118  - Widget: integer
1119      Allows you to edit an integer in an editable field.
1120
1121  - Widget: number
1122      Allows you to edit a number in an editable field.
1123
1124  - Widget: boolean
1125      Allows you to edit a boolean.  In lisp this means a variable which
1126      is either nil meaning false, or non-nil meaning true.
1127
1128 \1f
1129 File: widget.info,  Node: composite,  Prev: atoms,  Up: Sexp Types
1130
1131 Composite Sexp Widgets.
1132 -----------------------
1133
1134    The syntax for the composite are
1135
1136      TYPE ::= (NAME [KEYWORD ARGUMENT]...  COMPONENT...)
1137
1138    Where each COMPONENT must be a widget type.  Each component widget
1139 will be displayed in the buffer, and be editable to the user.
1140
1141  - Widget: cons
1142      The value of a `cons' widget is a cons-cell where the car is the
1143      value of the first component and the cdr is the value of the second
1144      component.  There must be exactly two components.
1145
1146  - Widget: list
1147      The value of a `list' widget is a list containing the value of
1148      each of its component.
1149
1150  - Widget: vector
1151      The value of a `vector' widget is a vector containing the value of
1152      each of its component.
1153
1154    The above suffice for specifying fixed size lists and vectors.  To
1155 get variable length lists and vectors, you can use a `choice', `set' or
1156 `repeat' widgets together with the `:inline' keywords.  If any
1157 component of a composite widget has the `:inline' keyword set, its
1158 value must be a list which will then be spliced into the composite.
1159 For example, to specify a list whose first element must be a file name,
1160 and whose remaining arguments should either by the symbol `t' or two
1161 files, you can use the following widget specification:
1162
1163      (list file
1164            (choice (const t)
1165                    (list :inline t
1166                          :value ("foo" "bar")
1167                          string string)))
1168
1169    The value of a widget of this type will either have the form `(file
1170 t)' or `(file string string)'.
1171
1172    This concept of inline is probably hard to understand.  It was
1173 certainly hard to implement so instead of confuse you more by trying to
1174 explain it here, I'll just suggest you meditate over it for a while.
1175
1176  - Widget: choice
1177      Allows you to edit a sexp which may have one of fixed set of
1178      types.  It is currently implemented with the `choice-menu' basic
1179      widget, and has a similar syntax.
1180
1181  - Widget: set
1182      Allows you to specify a type which must be a list whose elements
1183      all belong to given set.  The elements of the list is not
1184      significant.  This is implemented on top of the `checklist' basic
1185      widget, and has a similar syntax.
1186
1187  - Widget: repeat
1188      Allows you to specify a variable length list whose members are all
1189      of the same type.  Implemented on top of the `editable-list' basic
1190      widget, and has a similar syntax.
1191
1192 \1f
1193 File: widget.info,  Node: Widget Properties,  Next: Defining New Widgets,  Prev: Sexp Types,  Up: Top
1194
1195 Properties
1196 ==========
1197
1198    You can examine or set the value of a widget by using the widget
1199 object that was returned by `widget-create'.
1200
1201  - Function: widget-value widget
1202      Return the current value contained in WIDGET.  It is an error to
1203      call this function on an uninitialized widget.
1204
1205  - Function: widget-value-set widget value
1206      Set the value contained in WIDGET to VALUE.  It is an error to
1207      call this function with an invalid VALUE.
1208
1209    *Important:* You _must_ call `widget-setup' after modifying the
1210 value of a widget before the user is allowed to edit the widget again.
1211 It is enough to call `widget-setup' once if you modify multiple
1212 widgets.  This is currently only necessary if the widget contains an
1213 editing field, but may be necessary for other widgets in the future.
1214
1215    If your application needs to associate some information with the
1216 widget objects, for example a reference to the item being edited, it
1217 can be done with `widget-put' and `widget-get'.  The property names
1218 must begin with a `:'.
1219
1220  - Function: widget-put widget property value
1221      In WIDGET set PROPERTY to VALUE.  PROPERTY should be a symbol,
1222      while VALUE can be anything.
1223
1224  - Function: widget-get widget property
1225      In WIDGET return the value for PROPERTY.  PROPERTY should be a
1226      symbol, the value is what was last set by `widget-put' for
1227      PROPERTY.
1228
1229  - Function: widget-member widget property
1230      Non-nil if WIDGET has a value (even nil) for property PROPERTY.
1231
1232    Occasionally it can be useful to know which kind of widget you have,
1233 i.e. the name of the widget type you gave when the widget was created.
1234
1235  - Function: widget-type widget
1236      Return the name of WIDGET, a symbol.
1237
1238    Widgets can be in two states: active, which means they are
1239 modifiable by the user, or inactive, which means they cannot be
1240 modified by the user.  You can query or set the state with the
1241 following code:
1242
1243      ;; Examine if WIDGET is active or not.
1244      (if (widget-apply WIDGET :active)
1245          (message "Widget is active.")
1246        (message "Widget is inactive.")
1247      
1248      ;; Make WIDGET inactive.
1249      (widget-apply WIDGET :deactivate)
1250      
1251      ;; Make WIDGET active.
1252      (widget-apply WIDGET :activate)
1253
1254    A widget is inactive if itself, or any of its ancestors (found by
1255 following the `:parent' link) have been deactivated.  To make sure a
1256 widget is really active, you must therefore activate both itself, and
1257 all its ancestors.
1258
1259      (while widget
1260        (widget-apply widget :activate)
1261        (setq widget (widget-get widget :parent)))
1262
1263    You can check if a widget has been made inactive by examining the
1264 value of `:inactive' keyword.  If this is non-nil, the widget itself has
1265 been deactivated.  This is different from using the `:active' keyword,
1266 in that the later tell you if the widget *or* any of its ancestors have
1267 been deactivated.   Do not attempt to set the `:inactive' keyword
1268 directly.  Use the `:activate' `:deactivated' keywords instead.
1269
1270 \1f
1271 File: widget.info,  Node: Defining New Widgets,  Next: Widget Browser,  Prev: Widget Properties,  Up: Top
1272
1273 Defining New Widgets
1274 ====================
1275
1276    You can define specialized widgets with `define-widget'.  It allows
1277 you to create a shorthand for more complex widgets, including specifying
1278 component widgets and default new default values for the keyword
1279 arguments.
1280
1281  - Function: widget-define name class doc &rest args
1282      Define a new widget type named NAME from `class'.
1283
1284      NAME and class should both be symbols, `class' should be one of
1285      the existing widget types.
1286
1287      The third argument DOC is a documentation string for the widget.
1288
1289      After the new widget has been defined, the following two calls will
1290      create identical widgets:
1291
1292         *      (widget-create NAME)
1293
1294         *      (apply widget-create CLASS ARGS)
1295
1296
1297    Using `widget-define' does just store the definition of the widget
1298 type in the `widget-type' property of NAME, which is what
1299 `widget-create' uses.
1300
1301    If you just want to specify defaults for keywords with no complex
1302 conversions, you can use `identity' as your conversion function.
1303
1304    The following additional keyword arguments are useful when defining
1305 new widgets:
1306 `:convert-widget'
1307      Function to convert a widget type before creating a widget of that
1308      type.  It takes a widget type as an argument, and returns the
1309      converted widget type.  When a widget is created, this function is
1310      called for the widget type and all the widgets parent types, most
1311      derived first.
1312
1313      The following predefined functions can be used here:
1314
1315       - Function: widget-types-convert-widget widget
1316           Convert `:args' as widget types in WIDGET.
1317
1318       - Function: widget-value-convert-widget widget
1319           Initialize `:value' from `:args' in WIDGET.
1320
1321 `:value-to-internal'
1322      Function to convert the value to the internal format.  The function
1323      takes two arguments, a widget and an external value, and returns
1324      the internal value.  The function is called on the present `:value'
1325      when the widget is created, and on any value set later with
1326      `widget-value-set'.
1327
1328 `:value-to-external'
1329      Function to convert the value to the external format.  The function
1330      takes two arguments, a widget and an internal value, and returns
1331      the internal value.  The function is called on the present `:value'
1332      when the widget is created, and on any value set later with
1333      `widget-value-set'.
1334
1335 `:create'
1336      Function to create a widget from scratch.  The function takes one
1337      argument, a widget type, and create a widget of that type, insert
1338      it in the buffer, and return a widget object.
1339
1340 `:delete'
1341      Function to delete a widget.  The function takes one argument, a
1342      widget, and should remove all traces of the widget from the buffer.
1343
1344 `:value-create'
1345      Function to expand the `%v' escape in the format string.  It will
1346      be called with the widget as its argument.  Should insert a
1347      representation of the widgets value in the buffer.
1348
1349 `:value-delete'
1350      Should remove the representation of the widgets value from the
1351      buffer.  It will be called with the widget as its argument.  It
1352      doesn't have to remove the text, but it should release markers and
1353      delete nested widgets if such has been used.
1354
1355      The following predefined function can be used here:
1356
1357       - Function: widget-children-value-delete widget
1358           Delete all `:children' and `:buttons' in WIDGET.
1359
1360 `:value-get'
1361      Function to extract the value of a widget, as it is displayed in
1362      the buffer.
1363
1364      The following predefined function can be used here:
1365
1366       - Function: widget-value-value-get widget
1367           Return the `:value' property of WIDGET.
1368
1369 `:format-handler'
1370      Function to handle unknown `%' escapes in the format string.  It
1371      will be called with the widget and the escape character as
1372      arguments.  You can set this to allow your widget to handle
1373      non-standard escapes.
1374
1375      You should end up calling `widget-default-format-handler' to handle
1376      unknown escape sequences, which will handle the `%h' and any future
1377      escape sequences, as well as give an error for unknown escapes.
1378
1379 `:action'
1380      Function to handle user initiated events.  By default, `:notify'
1381      the parent.
1382
1383      The following predefined function can be used here:
1384
1385       - Function: widget-parent-action widget &optional event
1386           Tell `:parent' of WIDGET to handle the `:action'.
1387           Optional EVENT is the event that triggered the action.
1388
1389 `:prompt-value'
1390      Function to prompt for a value in the minibuffer.  The function
1391      should take four arguments, WIDGET, PROMPT, VALUE, and UNBOUND and
1392      should return a value for widget entered by the user.  PROMPT is
1393      the prompt to use.  VALUE is the default value to use, unless
1394      UNBOUND is non-nil in which case there are no default value.  The
1395      function should read the value using the method most natural for
1396      this widget, and does not have to check that it matches.
1397
1398    If you want to define a new widget from scratch, use the `default'
1399 widget as its base.
1400
1401  - Widget: default
1402      Widget used as a base for other widgets.
1403
1404      It provides most of the functionality that is referred to as "by
1405      default" in this text.
1406
1407 \1f
1408 File: widget.info,  Node: Widget Browser,  Next: Widget Minor Mode,  Prev: Defining New Widgets,  Up: Top
1409
1410 Widget Browser
1411 ==============
1412
1413    There is a separate package to browse widgets.  This is intended to
1414 help programmers who want to examine the content of a widget.  The
1415 browser shows the value of each keyword, but uses links for certain
1416 keywords such as `:parent', which avoids printing cyclic structures.
1417
1418  - Command: widget-browse WIDGET
1419      Create a widget browser for WIDGET.  When called interactively,
1420      prompt for WIDGET.
1421
1422  - Command: widget-browse-other-window WIDGET
1423      Create a widget browser for WIDGET and show it in another window.
1424      When called interactively, prompt for WIDGET.
1425
1426  - Command: widget-browse-at POS
1427      Create a widget browser for the widget at POS.  When called
1428      interactively, use the position of point.
1429
1430 \1f
1431 File: widget.info,  Node: Widget Minor Mode,  Next: Utilities,  Prev: Widget Browser,  Up: Top
1432
1433 Widget Minor Mode
1434 =================
1435
1436    There is a minor mode for manipulating widgets in major modes that
1437 doesn't provide any support for widgets themselves.  This is mostly
1438 intended to be useful for programmers doing experiments.
1439
1440  - Command: widget-minor-mode
1441      Toggle minor mode for traversing widgets.  With arg, turn widget
1442      mode on if and only if arg is positive.
1443
1444  - Variable: widget-minor-mode-keymap
1445      Keymap used in `widget-minor-mode'.
1446
1447 \1f
1448 File: widget.info,  Node: Utilities,  Next: Widget Wishlist,  Prev: Widget Minor Mode,  Up: Top
1449
1450 Utilities.
1451 ==========
1452
1453  - Function: widget-prompt-value widget prompt [ value unbound ]
1454      Prompt for a value matching WIDGET, using PROMPT.
1455      The current value is assumed to be VALUE, unless UNBOUND is
1456      non-nil.
1457
1458  - Function: widget-get-sibling widget
1459      Get the item WIDGET is assumed to toggle.
1460      This is only meaningful for radio buttons or checkboxes in a list.
1461
1462 \1f
1463 File: widget.info,  Node: Widget Wishlist,  Prev: Utilities,  Up: Top
1464
1465 Wishlist
1466 ========
1467
1468    * It should be possible to add or remove items from a list with `C-k'
1469      and `C-o' (suggested by RMS).
1470
1471    * The `[INS]' and `[DEL]' buttons should be replaced by a single
1472      dash (`-').  The dash should be a button that, when invoked, ask
1473      whether you want to add or delete an item (RMS wanted to git rid of
1474      the ugly buttons, the dash is my idea).
1475
1476    * The `menu-choice' tag should be prettier, something like the
1477      abbreviated menus in Open Look.
1478
1479    * Finish `:tab-order'.
1480
1481    * Make indentation work with glyphs and proportional fonts.
1482
1483    * Add commands to show overview of object and class hierarchies to
1484      the browser.
1485
1486    * Find a way to disable mouse highlight for inactive widgets.
1487
1488    * Find a way to make glyphs look inactive.
1489
1490    * Add `property-list' widget.
1491
1492    * Add `association-list' widget.
1493
1494    * Add `key-binding' widget.
1495
1496    * Add `widget' widget for editing widget specifications.
1497
1498    * Find clean way to implement variable length list.  See
1499      `TeX-printer-list' for an explanation.
1500
1501    * `C-h' in `widget-prompt-value' should give type specific help.
1502
1503    * A mailto widget.
1504
1505    * `C-e e' in a fixed size field should go to the end of the text in
1506      the field, not the end of the field itself.
1507
1508    * Use and overlay instead of markers to delimit the widget.  Create
1509      accessors for the end points.
1510
1511    * Clicking on documentation links should call `describe-function' or
1512      `widget-browse-other-window' and friends directly, instead of going
1513      through `apropos'.  If more than one function is valid for the
1514      symbol, it should pop up a menu.
1515
1516
1517
1518 \1f
1519 Tag Table:
1520 Node: Top\7f201
1521 Node: Introduction\7f581
1522 Node: User Interface\7f4064
1523 Node: Programming Example\7f8959
1524 Node: Setting Up the Buffer\7f12276
1525 Node: Basic Types\7f13993
1526 Node: link\7f20038
1527 Node: url-link\7f20552
1528 Node: info-link\7f20864
1529 Node: push-button\7f21155
1530 Node: editable-field\7f21728
1531 Node: text\7f23067
1532 Node: menu-choice\7f23365
1533 Node: radio-button-choice\7f24230
1534 Node: item\7f25809
1535 Node: choice-item\7f26197
1536 Node: toggle\7f26695
1537 Node: checkbox\7f27420
1538 Node: checklist\7f27726
1539 Node: editable-list\7f29170
1540 Node: group\7f30352
1541 Node: Sexp Types\7f30639
1542 Node: constants\7f30952
1543 Node: generic\7f32031
1544 Node: atoms\7f32564
1545 Node: composite\7f34511
1546 Node: Widget Properties\7f36977
1547 Node: Defining New Widgets\7f40040
1548 Node: Widget Browser\7f45340
1549 Node: Widget Minor Mode\7f46198
1550 Node: Utilities\7f46755
1551 Node: Widget Wishlist\7f47236
1552 \1f
1553 End Tag Table