From: Lars Ingebrigtsen Date: Mon, 17 Jun 2019 09:39:56 +0000 (+0200) Subject: Make with-suppressed-warnings work in cl-defmethod X-Git-Tag: emacs-27.0.90~2452 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a35377fedf0c80bddb7eabb44e94fcc754a25de;p=emacs.git 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. --- diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index 9013c1f0607..10190f49339 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el @@ -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")