summaryrefslogtreecommitdiff
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-07-05 19:32:37 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-07-05 19:33:24 +0200
commit6d8638e5e494fb0ceafffe19bbf349fff643e12d (patch)
tree5516261421fca0015b97667f9caaa4573fb68b33 /lisp/wid-edit.el
parent99872bedf07315f642d143feaed9075a7ea20cba (diff)
downloademacs-6d8638e5e494fb0ceafffe19bbf349fff643e12d.tar.gz
Give a warning if setopt has been used with an invalid value
* lisp/cus-edit.el (setopt--set): Mark the variable for checking. * lisp/custom.el (custom-initialize-reset): Give a warning if the type is wrong (bug#56400). * lisp/wid-edit.el (widget-convert): Autoload.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 29b6e13bc60..53626182470 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -880,6 +880,7 @@ The child is converted, using the keyword arguments ARGS."
"Make a deep copy of WIDGET."
(widget-apply (copy-sequence widget) :copy))
+;;;###autoload
(defun widget-convert (type &rest args)
"Convert TYPE to a widget without inserting it in the buffer.
The optional ARGS are additional keyword arguments."