emacs/test/lisp/emacs-lisp
Lars Ingebrigtsen f2071b6de4 Add the new macro with-suppressed-warnings
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): New macro.

* doc/lispref/compile.texi (Compiler Errors): Document
with-suppressed-warnings and deemphasise with-no-warnings
slightly.

* lisp/emacs-lisp/bytecomp.el (byte-compile--suppressed-warnings):
New internal variable.
(byte-compile-warning-enabled-p): Heed
byte-compile--suppressed-warnings, bound via with-suppressed-warnings.
(byte-compile-initial-macro-environment): Provide a macro
expansion of with-suppressed-warnings.
(byte-compile-file-form-with-suppressed-warnings): New byte hunk
handler for the suppressed symbol machinery.
(byte-compile-suppressed-warnings): Ditto for the byteop.
(byte-compile-file-form-defmumble): Ditto.
(byte-compile-form, byte-compile-normal-call)
(byte-compile-normal-call, byte-compile-variable-ref)
(byte-compile-set-default, byte-compile-variable-set)
(byte-compile-function-form, byte-compile-set-default)
(byte-compile-warn-obsolete, byte-compile--declare-var): Pass the
symbol being warned in to byte-compile-warning-enabled-p.

* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): New
function.
(bytecomp-test--with-suppressed-warnings): Tests.
2019-06-12 15:59:19 +02:00
..
edebug-resources Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eieio-tests Merge from origin/emacs-26 2019-06-01 12:04:42 -07:00
faceup-resources Update more copyright years 2018-12-31 18:47:22 -08:00
faceup-tests Update more copyright years 2018-12-31 18:47:22 -08:00
package-resources Don't use IP 0.0.0.0 for package test server (Bug#22582) 2017-02-25 12:56:09 -05:00
shadow-resources Handle case-insensitive filenames for load-path shadows (Bug#5845) 2018-01-18 16:26:52 -05:00
testcover-resources Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
backtrace-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
benchmark-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
bytecomp-tests.el Add the new macro with-suppressed-warnings 2019-06-12 15:59:19 +02:00
cconv-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
checkdoc-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cl-extra-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cl-generic-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cl-lib-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
cl-macs-tests.el * cl-macs-tests.el (cl-macs-test--symbol-macrolet): New test 2019-05-16 17:16:36 -04:00
cl-preloaded-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
cl-print-tests.el Fix some ineffective backslashes in string literals 2019-03-16 11:38:58 -07:00
cl-seq-tests.el Fix cl-member' and cl-assoc' for bignums 2019-06-01 18:13:00 -07:00
cl-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
derived-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
edebug-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ert-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ert-x-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
generator-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gv-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
let-alist-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
lisp-mode-tests.el Be more careful about indent-sexp going over eol (Bug#35286) 2019-04-22 12:49:36 -04:00
lisp-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
map-tests.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
nadvice-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
package-tests.el * test/lisp/emacs-lisp/package-tests.el: Allow extra extras 2019-02-10 18:12:05 -05:00
pcase-tests.el Use memql instead of memq in pcase 2019-03-28 23:57:34 +01:00
pp-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
regexp-opt-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ring-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rmc-tests.el ; Fix read-multiple-choice test 2019-05-26 21:55:00 -04:00
rx-tests.el Allow zero-argument rx or' and seq' forms 2019-05-20 17:56:40 +02:00
seq-tests.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
shadow-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
subr-x-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tabulated-list-test.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
testcover-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
text-property-search-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
thunk-tests.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
timer-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00