From: Lars Ingebrigtsen Date: Thu, 25 Aug 2022 12:54:49 +0000 (+0200) Subject: Fix warning about obsoleted generalized variables X-Git-Tag: emacs-29.0.90~1893^2~45 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b28b2cefaea0d7846ab9a45dc92f68ad00e92085;p=emacs.git Fix warning about obsoleted generalized variables * lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Autoload so that the call here from gv.el (about obsolete generalized variables) doesn't bug out (bug#57394). --- diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index c25250533a4..a16486dc31c 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1356,6 +1356,7 @@ FORMAT and ARGS are as in `byte-compile-warn'." (let ((byte-compile-form-stack (cons arg byte-compile-form-stack))) (apply #'byte-compile-warn format args))) +;;;###autoload (defun byte-compile-warn-obsolete (symbol type) "Warn that SYMBOL (a variable, function or generalized variable) is obsolete. TYPE is a string that say which one of these three types it is."