# HG changeset patch # User Stefan Monnier # Date 1132531273 0 # Node ID 005159df0f00fbbe78251193b1e6a79b090f8d9c # Parent 65266d675973d401fe0116b4fdfb760504617d68 (define-widget): Don't use declare for the doc-string-elt. diff -r 65266d675973 -r 005159df0f00 lisp/widget.el --- a/lisp/widget.el Mon Nov 21 00:01:06 2005 +0000 +++ b/lisp/widget.el Mon Nov 21 00:01:13 2005 +0000 @@ -71,6 +71,7 @@ ;; :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. @@ -85,7 +86,6 @@ * (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)