mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/widget.el (define-widget): Use `declare' (which does work now).
(widget-plist-member): Mark as obsolete.
This commit is contained in:
parent
5e17f50911
commit
4121458245
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue