diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2016-05-23 19:57:46 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2016-05-23 19:57:46 -0400 |
commit | 41214582455a6ad08098df14a5febd769622aab4 (patch) | |
tree | 4d85da6d9006f61031c75966ac867a52931d9fcc /lisp/widget.el | |
parent | 5e17f509116e88998be5ac664907aa80ea39710a (diff) | |
download | emacs-41214582455a6ad08098df14a5febd769622aab4.tar.gz |
* lisp/widget.el (define-widget): Use `declare' (which does work now).
(widget-plist-member): Mark as obsolete.
Diffstat (limited to 'lisp/widget.el')
-rw-r--r-- | lisp/widget.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/widget.el b/lisp/widget.el index 2db645ab08d..1574fb265c6 100644 --- a/lisp/widget.el +++ b/lisp/widget.el @@ -68,7 +68,6 @@ ;; :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. @@ -80,9 +79,10 @@ create identical widgets: * (widget-create NAME) -* (apply \\='widget-create CLASS ARGS) +* (apply #\\='widget-create CLASS ARGS) The third argument DOC is a documentation string for the widget." + (declare (doc-string 3)) ;; (unless (or (null doc) (stringp doc)) (error "widget documentation must be nil or a string.")) @@ -91,7 +91,7 @@ The third argument DOC is a documentation string for the widget." name) ;; This is used by external widget code (in W3, at least). -(defalias 'widget-plist-member 'plist-member) +(define-obsolete-function-alias 'widget-plist-member #'plist-member "26.1") ;;; The End. |