From 6d8638e5e494fb0ceafffe19bbf349fff643e12d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 5 Jul 2022 19:32:37 +0200 Subject: 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. --- lisp/wid-edit.el | 1 + 1 file changed, 1 insertion(+) (limited to 'lisp/wid-edit.el') 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." -- cgit v1.2.1