]> git.eshelyaron.com Git - emacs.git/commit
Fix byte-compiler warning for failed uses of lexical vars
authorStefan Kangas <stefan@marxist.se>
Tue, 1 Dec 2020 12:34:17 +0000 (13:34 +0100)
committerStefan Kangas <stefan@marxist.se>
Tue, 1 Dec 2020 12:35:03 +0000 (13:35 +0100)
commitace6eba036e64ff9eee6965951c48d0634b9c696
tree70a26905403b702a68330faa12bfa720ce1fdb8f
parent8a27b0cad7dcffd0af9b3b38028ac12276a85c1b
Fix byte-compiler warning for failed uses of lexical vars

* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Fix byte-compiler
warning for failed uses of lexical vars.  (Bug#44980)
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp--define-warning-file-test): Don't prefix tests with
'warn'.
(bytecomp/error-lexical-var-with-add-hook\.el)
(bytecomp/error-lexical-var-with-remove-hook\.el)
(bytecomp/error-lexical-var-with-run-hook-with-args-until-failure\.el)
(bytecomp/error-lexical-var-with-run-hook-with-args-until-success\.el)
(bytecomp/error-lexical-var-with-run-hook-with-args\.el)
(bytecomp/error-lexical-var-with-symbol-value\.el): New tests.
* test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-symbol-value.el:
* test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el:
* test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args-until-success.el:
* test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args-until-failure.el:
* test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-remove-hook.el:
* test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el:
New files.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-remove-hook.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args-until-failure.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args-until-success.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-symbol-value.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-tests.el