Make with-suppressed-warnings work in cl-defmethod
* lisp/emacs-lisp/cl-generic.el (cl-defmethod): Pass the symbol name on to `byte-compile-warning-enabled-p' to make with-suppressed-warnings work in cl-defmethods, too.
This commit is contained in:
parent
1dfd6b4042
commit
5a35377fed
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ The set of acceptable TYPEs (also called \"specializers\") is defined
|
|||
`(progn
|
||||
,(and (get name 'byte-obsolete-info)
|
||||
(or (not (fboundp 'byte-compile-warning-enabled-p))
|
||||
(byte-compile-warning-enabled-p 'obsolete))
|
||||
(byte-compile-warning-enabled-p 'obsolete name))
|
||||
(let* ((obsolete (get name 'byte-obsolete-info)))
|
||||
(macroexp--warn-and-return
|
||||
(macroexp--obsolete-warning name obsolete "generic function")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue