Improve documentation of 'with-suppressed-warnings'.

* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Refer to
'byte-compile-warnings' instead of 'byte-compile-warning-types', as
only the former variable documents the available warning types.
This commit is contained in:
Philipp Stephani 2020-05-08 22:12:07 +02:00
parent 4a895c1b26
commit a1cbd05f38

View file

@ -513,11 +513,12 @@ wrong number of parameters, say
(zot 1 2)) (zot 1 2))
The warnings that can be suppressed are a subset of the warnings The warnings that can be suppressed are a subset of the warnings
in `byte-compile-warning-types'; see this variable for a fuller in `byte-compile-warning-types'; see the variable
explanation of the warning types. The types that can be `byte-compile-warnings' for a fuller explanation of the warning
suppressed with this macro are `free-vars', `callargs', types. The types that can be suppressed with this macro are
`redefine', `obsolete', `interactive-only', `lexical', `mapcar', `free-vars', `callargs', `redefine', `obsolete',
`constants' and `suspicious'. `interactive-only', `lexical', `mapcar', `constants' and
`suspicious'.
For the `mapcar' case, only the `mapcar' function can be used in For the `mapcar' case, only the `mapcar' function can be used in
the symbol list. For `suspicious', only `set-buffer' can be used." the symbol list. For `suspicious', only `set-buffer' can be used."