aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Abrahamsen2003-10-26 13:31:34 +0000
committerPer Abrahamsen2003-10-26 13:31:34 +0000
commit1ded3d463e0a2a6d7438efded9ae01aeddbbd65c (patch)
tree4d5664cd8cf4653e02e56daa52fa4f57c9997351
parent7d9d1ab638d1fa64ea044618cef7b2c9598bbe3d (diff)
downloademacs-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/ChangeLog5
-rw-r--r--man/widget.texi21
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 @@
12003-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
12003-10-22 Miles Bader <miles@gnu.org> 62003-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.
1586Function to delete a widget. The function takes one argument, a widget, 1586Function to delete a widget. The function takes one argument, a widget,
1587and should remove all traces of the widget from the buffer. 1587and should remove all traces of the widget from the buffer.
1588 1588
1589The default value is:
1590
1591@defun widget-default-delete widget
1592Remove @var{widget} from the buffer.
1593Delete all @code{:children} and @code{:buttons} in @var{widget}.
1594@end defun
1595
1596In 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
1591Function to expand the @samp{%v} escape in the format string. It will 1601Function to expand the @samp{%v} escape in the format string. It will
1592be called with the widget as its argument and should insert a 1602be called with the widget as its argument and should insert a
1593representation of the widget's value in the buffer. 1603representation of the widget's value in the buffer.
1594 1604
1605Nested widgets should be listed in @code{:children} or @code{:buttons}
1606to 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
1597Should remove the representation of the widget's value from the buffer. 1610Should remove the representation of the widget's value from the buffer.
1598It will be called with the widget as its argument. It doesn't have to 1611It will be called with the widget as its argument. It doesn't have to
1599remove the text, but it should release markers and delete nested widgets 1612remove the text, but it should release markers and delete nested widgets
1600if such have been used. 1613if these are not listed in @code{:children} or @code{:buttons}.
1601
1602The following predefined function can be used here:
1603
1604@defun widget-children-value-delete widget
1605Delete 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