diff options
| author | Per Abrahamsen | 2003-10-26 13:31:34 +0000 |
|---|---|---|
| committer | Per Abrahamsen | 2003-10-26 13:31:34 +0000 |
| commit | 1ded3d463e0a2a6d7438efded9ae01aeddbbd65c (patch) | |
| tree | 4d5664cd8cf4653e02e56daa52fa4f57c9997351 | |
| parent | 7d9d1ab638d1fa64ea044618cef7b2c9598bbe3d (diff) | |
| download | emacs-1ded3d463e0a2a6d7438efded9ae01aeddbbd65c.tar.gz emacs-1ded3d463e0a2a6d7438efded9ae01aeddbbd65c.zip | |
2003-10-26 Per Abrahamsen <abraham@dina.kvl.dk>
* widget.texi (Defining New Widgets): Document new beavior of
:buttons and :children keywords.
| -rw-r--r-- | man/ChangeLog | 5 | ||||
| -rw-r--r-- | man/widget.texi | 21 |
2 files changed, 19 insertions, 7 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index 64331fba676..328b63e74ba 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-10-26 Per Abrahamsen <abraham@dina.kvl.dk> | ||
| 2 | |||
| 3 | * widget.texi (Defining New Widgets): Document new beavior of | ||
| 4 | :buttons and :children keywords. | ||
| 5 | |||
| 1 | 2003-10-22 Miles Bader <miles@gnu.org> | 6 | 2003-10-22 Miles Bader <miles@gnu.org> |
| 2 | 7 | ||
| 3 | * Makefile.in (info): Move before $(top_srcdir)/info. | 8 | * Makefile.in (info): Move before $(top_srcdir)/info. |
diff --git a/man/widget.texi b/man/widget.texi index 49c6e0e33c5..3a30f56c814 100644 --- a/man/widget.texi +++ b/man/widget.texi | |||
| @@ -1586,24 +1586,31 @@ in the buffer, and returns a widget object. | |||
| 1586 | Function to delete a widget. The function takes one argument, a widget, | 1586 | Function to delete a widget. The function takes one argument, a widget, |
| 1587 | and should remove all traces of the widget from the buffer. | 1587 | and should remove all traces of the widget from the buffer. |
| 1588 | 1588 | ||
| 1589 | The default value is: | ||
| 1590 | |||
| 1591 | @defun widget-default-delete widget | ||
| 1592 | Remove @var{widget} from the buffer. | ||
| 1593 | Delete all @code{:children} and @code{:buttons} in @var{widget}. | ||
| 1594 | @end defun | ||
| 1595 | |||
| 1596 | In most cases you should not change this value, but instead use | ||
| 1597 | @code{:value-delete} to make any additional cleanup. | ||
| 1598 | |||
| 1589 | @vindex value-create@r{ keyword} | 1599 | @vindex value-create@r{ keyword} |
| 1590 | @item :value-create | 1600 | @item :value-create |
| 1591 | Function to expand the @samp{%v} escape in the format string. It will | 1601 | Function to expand the @samp{%v} escape in the format string. It will |
| 1592 | be called with the widget as its argument and should insert a | 1602 | be called with the widget as its argument and should insert a |
| 1593 | representation of the widget's value in the buffer. | 1603 | representation of the widget's value in the buffer. |
| 1594 | 1604 | ||
| 1605 | Nested widgets should be listed in @code{:children} or @code{:buttons} | ||
| 1606 | to make sure they are automatically deleted. | ||
| 1607 | |||
| 1595 | @vindex value-delete@r{ keyword} | 1608 | @vindex value-delete@r{ keyword} |
| 1596 | @item :value-delete | 1609 | @item :value-delete |
| 1597 | Should remove the representation of the widget's value from the buffer. | 1610 | Should remove the representation of the widget's value from the buffer. |
| 1598 | It will be called with the widget as its argument. It doesn't have to | 1611 | It will be called with the widget as its argument. It doesn't have to |
| 1599 | remove the text, but it should release markers and delete nested widgets | 1612 | remove the text, but it should release markers and delete nested widgets |
| 1600 | if such have been used. | 1613 | if these are not listed in @code{:children} or @code{:buttons}. |
| 1601 | |||
| 1602 | The following predefined function can be used here: | ||
| 1603 | |||
| 1604 | @defun widget-children-value-delete widget | ||
| 1605 | Delete all @code{:children} and @code{:buttons} in @var{widget}. | ||
| 1606 | @end defun | ||
| 1607 | 1614 | ||
| 1608 | @vindex value-get@r{ keyword} | 1615 | @vindex value-get@r{ keyword} |
| 1609 | @item :value-get | 1616 | @item :value-get |