+2005-11-20 Martin Rudalics <rudalics@gmx.at> (tiny change)
+
+ * custom.el (defgroup): Add doc-string-elt info.
+
+ * widget.el (define-widget): Don't use declare for the doc-string-elt.
+
2005-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
* newcomment.el (comment-enter-backward): Fix last fix.
;; :button-face-get :button-face :value-face :keymap :entry-from
;; :entry-to :help-echo :documentation-property :tab-order)
+(put 'define-widget 'doc-string-elt 3) ;`declare' doesn't work in functions.
(defun define-widget (name class doc &rest args)
"Define a new widget type named NAME from CLASS.
* (apply 'widget-create CLASS ARGS)
The third argument DOC is a documentation string for the widget."
- (declare (doc-string 3))
(put name 'widget-type (cons class args))
(put name 'widget-documentation doc)
name)