summaryrefslogtreecommitdiff
path: root/man/widget.texi
diff options
context:
space:
mode:
authorPer Abrahamsen <abraham@dina.kvl.dk>2003-10-26 13:31:34 +0000
committerPer Abrahamsen <abraham@dina.kvl.dk>2003-10-26 13:31:34 +0000
commit1ded3d463e0a2a6d7438efded9ae01aeddbbd65c (patch)
tree4d5664cd8cf4653e02e56daa52fa4f57c9997351 /man/widget.texi
parent7d9d1ab638d1fa64ea044618cef7b2c9598bbe3d (diff)
downloademacs-1ded3d463e0a2a6d7438efded9ae01aeddbbd65c.tar.gz
2003-10-26 Per Abrahamsen <abraham@dina.kvl.dk>
* widget.texi (Defining New Widgets): Document new beavior of :buttons and :children keywords.
Diffstat (limited to 'man/widget.texi')
-rw-r--r--man/widget.texi21
1 files changed, 14 insertions, 7 deletions
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.
Function to delete a widget. The function takes one argument, a widget,
and should remove all traces of the widget from the buffer.
+The default value is:
+
+@defun widget-default-delete widget
+Remove @var{widget} from the buffer.
+Delete all @code{:children} and @code{:buttons} in @var{widget}.
+@end defun
+
+In most cases you should not change this value, but instead use
+@code{:value-delete} to make any additional cleanup.
+
@vindex value-create@r{ keyword}
@item :value-create
Function to expand the @samp{%v} escape in the format string. It will
be called with the widget as its argument and should insert a
representation of the widget's value in the buffer.
+Nested widgets should be listed in @code{:children} or @code{:buttons}
+to make sure they are automatically deleted.
+
@vindex value-delete@r{ keyword}
@item :value-delete
Should remove the representation of the widget's value from the buffer.
It will be called with the widget as its argument. It doesn't have to
remove the text, but it should release markers and delete nested widgets
-if such have been used.
-
-The following predefined function can be used here:
-
-@defun widget-children-value-delete widget
-Delete all @code{:children} and @code{:buttons} in @var{widget}.
-@end defun
+if these are not listed in @code{:children} or @code{:buttons}.
@vindex value-get@r{ keyword}
@item :value-get