diff options
author | Xuan Wang <code@wangxuan.name> | 2024-03-28 20:34:23 -0400 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-03-31 12:06:15 +0300 |
commit | 46b8746b38e26ae3f216f57f231f5fc8aec22873 (patch) | |
tree | 4d829619a889145f7398b0e19ab7f98c1ba61a54 /doc/misc | |
parent | 910ea5f1e55793fa29292730a59397867b4e868f (diff) | |
download | emacs-46b8746b38e26ae3f216f57f231f5fc8aec22873.tar.gz emacs-46b8746b38e26ae3f216f57f231f5fc8aec22873.tar.bz2 emacs-46b8746b38e26ae3f216f57f231f5fc8aec22873.zip |
Fix warning-suppress for list type "warning type"
Per the documentation of 'warning-suppress-types' and the
implementation of 'warning-suppress-p', a warning type can
be either a symbol or a list of symbols. The previous
implementation could generate wrong 'warning-suppress-types':
old behavior:
type warning-suppress-types
pkg -> '((pkg)) Correct
(pkg subtype) -> '(((pkg subtype))) Incorrect
Now we check whether type is a cons cell first. (Should not
use listp here, as listp returns t for nil.)
new behavior:
type warning-suppress-types
pkg -> '((pkg)) Correct
(pkg subtype) -> '((pkg subtype)) Correct
* lisp/emacs-lisp/warnings.el (warnings-suppress): Fix saving
warning types in 'warning-suppress-types'. (Bug#70063)
Copyright-paperwork-exempt: yes
Diffstat (limited to 'doc/misc')
0 files changed, 0 insertions, 0 deletions