diff options
| author | Philipp Stephani | 2020-05-08 22:12:07 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2020-05-08 22:12:07 +0200 |
| commit | a1cbd05f3892fc86815f69bc50d8ab9175b7b082 (patch) | |
| tree | 52005b1889e001d3f90e40572877ad58d0be0ea1 | |
| parent | 4a895c1b2601150357d6523bb5121fb07a89701e (diff) | |
| download | emacs-a1cbd05f3892fc86815f69bc50d8ab9175b7b082.tar.gz emacs-a1cbd05f3892fc86815f69bc50d8ab9175b7b082.zip | |
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.
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 6a49c60099d..70fe06085dc 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -513,11 +513,12 @@ wrong number of parameters, say | |||
| 513 | (zot 1 2)) | 513 | (zot 1 2)) |
| 514 | 514 | ||
| 515 | The warnings that can be suppressed are a subset of the warnings | 515 | The warnings that can be suppressed are a subset of the warnings |
| 516 | in `byte-compile-warning-types'; see this variable for a fuller | 516 | in `byte-compile-warning-types'; see the variable |
| 517 | explanation of the warning types. The types that can be | 517 | `byte-compile-warnings' for a fuller explanation of the warning |
| 518 | suppressed with this macro are `free-vars', `callargs', | 518 | types. The types that can be suppressed with this macro are |
| 519 | `redefine', `obsolete', `interactive-only', `lexical', `mapcar', | 519 | `free-vars', `callargs', `redefine', `obsolete', |
| 520 | `constants' and `suspicious'. | 520 | `interactive-only', `lexical', `mapcar', `constants' and |
| 521 | `suspicious'. | ||
| 521 | 522 | ||
| 522 | For the `mapcar' case, only the `mapcar' function can be used in | 523 | For the `mapcar' case, only the `mapcar' function can be used in |
| 523 | the symbol list. For `suspicious', only `set-buffer' can be used." | 524 | the symbol list. For `suspicious', only `set-buffer' can be used." |