summaryrefslogtreecommitdiff
path: root/doc/misc/widget.texi
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2019-10-16 15:39:42 +0200
committerJuanma Barranquero <lekktu@gmail.com>2019-10-16 15:39:42 +0200
commit4d65821bf016dff6a8b10578913970f854763346 (patch)
treeab1d98d2cdc3aeb2ddabc4707ed12bedd86fff8d /doc/misc/widget.texi
parentb70f885d582e9431ced5b1a07b526b720e70b7ba (diff)
downloademacs-4d65821bf016dff6a8b10578913970f854763346.tar.gz
emacs-4d65821bf016dff6a8b10578913970f854763346.tar.bz2
emacs-4d65821bf016dff6a8b10578913970f854763346.zip
Add/fix documentation for widget-apply
* doc/misc/widget.texi (Widget Properties): Document `widget-apply'. * src/fns.c (Fwidget_apply): Document return value (used in many places).
Diffstat (limited to 'doc/misc/widget.texi')
-rw-r--r--doc/misc/widget.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/misc/widget.texi b/doc/misc/widget.texi
index 6d94768644f..c1127a466a7 100644
--- a/doc/misc/widget.texi
+++ b/doc/misc/widget.texi
@@ -1446,6 +1446,12 @@ Non-@code{nil} if @var{widget} has a value (even @code{nil}) for
property @var{property}.
@end defun
+@defun widget-apply widget property &rest args
+Apply the value of @var{property} to @var{widget}, passing @var{args}
+as additional arguments to the function. Return the result of that
+function call.
+@end defun
+
Occasionally it can be useful to know which kind of widget you have,
i.e., the name of the widget type you gave when the widget was created.