aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/widget.el
diff options
context:
space:
mode:
authorStefan Monnier2005-11-21 00:02:31 +0000
committerStefan Monnier2005-11-21 00:02:31 +0000
commit74b99d45fd43a12213709ffdbdbadab67b9fdfba (patch)
tree2359c36aff065710c3b48671a151363932b78640 /lisp/widget.el
parent45aacac640ec1f185b392254c43f8fc060a16495 (diff)
downloademacs-74b99d45fd43a12213709ffdbdbadab67b9fdfba.tar.gz
emacs-74b99d45fd43a12213709ffdbdbadab67b9fdfba.zip
(define-widget): Don't use declare for the doc-string-elt.
Diffstat (limited to 'lisp/widget.el')
-rw-r--r--lisp/widget.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/widget.el b/lisp/widget.el
index 1985efb7cd6..f99429b5910 100644
--- a/lisp/widget.el
+++ b/lisp/widget.el
@@ -71,6 +71,7 @@
71;; :button-face-get :button-face :value-face :keymap :entry-from 71;; :button-face-get :button-face :value-face :keymap :entry-from
72;; :entry-to :help-echo :documentation-property :tab-order) 72;; :entry-to :help-echo :documentation-property :tab-order)
73 73
74(put 'define-widget 'doc-string-elt 3) ;`declare' doesn't work in functions.
74(defun define-widget (name class doc &rest args) 75(defun define-widget (name class doc &rest args)
75 "Define a new widget type named NAME from CLASS. 76 "Define a new widget type named NAME from CLASS.
76 77
@@ -85,7 +86,6 @@ create identical widgets:
85* (apply 'widget-create CLASS ARGS) 86* (apply 'widget-create CLASS ARGS)
86 87
87The third argument DOC is a documentation string for the widget." 88The third argument DOC is a documentation string for the widget."
88 (declare (doc-string 3))
89 (put name 'widget-type (cons class args)) 89 (put name 'widget-type (cons class args))
90 (put name 'widget-documentation doc) 90 (put name 'widget-documentation doc)
91 name) 91 name)