]> git.eshelyaron.com Git - emacs.git/commit
Fix obsolete variable warnings about class names
authorMichael Heerdegen <michael_heerdegen@web.de>
Tue, 22 Dec 2020 04:44:47 +0000 (05:44 +0100)
committerMichael Heerdegen <michael_heerdegen@web.de>
Wed, 6 Jan 2021 09:51:28 +0000 (10:51 +0100)
commit96bbbaec5c1b2612946ff08abf9d43e7478e8c43
tree95d9e25909bc926b1cbe911d604393d88142d73b
parentba011e487d40b96691d3e7af917ff6ce9d7c7a00
Fix obsolete variable warnings about class names

* lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload): Try to make
the wording of the warning about the obsoleted variable less confusing.
* lisp/emacs-lisp/bytecomp.el (byte-compile-check-variable): Don't
warn for lexical variables (Bug#39169).  Fix spurious `or'.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp/warn-obsolete-variable-bound\.el): New test.
* test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el:
New file.
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/eieio-core.el
test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-tests.el