
* 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.
7 lines
197 B
EmacsLisp
7 lines
197 B
EmacsLisp
;;; -*- lexical-binding: t -*-
|
|
|
|
(make-obsolete-variable 'bytecomp--tests-obsolete-var-2 nil "99.99")
|
|
|
|
(defun foo ()
|
|
(let ((bytecomp--tests-obsolete-var-2 2))
|
|
bytecomp--tests-obsolete-var-2))
|