diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-12-01 13:34:17 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-12-01 13:35:03 +0100 |
commit | ace6eba036e64ff9eee6965951c48d0634b9c696 (patch) | |
tree | 70a26905403b702a68330faa12bfa720ce1fdb8f /test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el | |
parent | 8a27b0cad7dcffd0af9b3b38028ac12276a85c1b (diff) | |
download | emacs-ace6eba036e64ff9eee6965951c48d0634b9c696.tar.gz emacs-ace6eba036e64ff9eee6965951c48d0634b9c696.tar.bz2 emacs-ace6eba036e64ff9eee6965951c48d0634b9c696.zip |
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.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el')
-rw-r--r-- | test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el b/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el new file mode 100644 index 00000000000..bb9101bd070 --- /dev/null +++ b/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args.el @@ -0,0 +1,3 @@ +;;; -*- lexical-binding: t; -*- +(let ((foo nil)) + (run-hook-with-args 'foo)) |