From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70063: [PATCH] fix warning-suppress for list type "warning type" Date: Sun, 31 Mar 2024 12:10:50 +0300 Message-ID: <86edbqbwbp.fsf@gnu.org> References: <87zfuhu9pl.fsf@WX-Desktop.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27246"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70063-done@debbugs.gnu.org To: Xuan Wang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 31 11:12:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rqrEh-0006vG-5T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Mar 2024 11:12:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqrEP-0004iR-JT; Sun, 31 Mar 2024 05:12:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqrEO-0004i3-FS for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 05:12:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqrEO-0004RF-1h for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 05:12:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqrEQ-00078E-E0 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 05:12:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Mar 2024 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 70063 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 70063@debbugs.gnu.org, eliz@gnu.org, code@wangxuan.name Original-Received: via spool by 70063-done@debbugs.gnu.org id=D70063.171187626527157 (code D ref 70063); Sun, 31 Mar 2024 09:12:02 +0000 Original-Received: (at 70063-done) by debbugs.gnu.org; 31 Mar 2024 09:11:05 +0000 Original-Received: from localhost ([127.0.0.1]:46607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqrDU-00073m-GN for submit@debbugs.gnu.org; Sun, 31 Mar 2024 05:11:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqrDR-00072l-M6 for 70063-done@debbugs.gnu.org; Sun, 31 Mar 2024 05:11:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqrDJ-0004Gr-DT; Sun, 31 Mar 2024 05:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CBCvezEyaxn6TxvMX/1WnXBvpViCtoOcRSG6be7oD+A=; b=YBv2Wyk2iqHG 5thWTLYBzljEu3WZBslvrTP8YVU13HhcB49lSZ/QM4t0MDLnVVvZ4rKQuOPqxCSfNgJliUY01Rwoa ASEcFAU33Y+Wvraq3+g9Pa38x6B99d8W7ptBfLH+/aEeSfxqOR2WU4fYMcqewrDqM1Hu+mMcdwNq+ Mmx43d9tFbOHC5As6bIEokNot+20viyKzwjPKjy2gvlNkWOwGddCvlMbe8HCF4+x9vXtpb8OgYTjX MbXG8il7saL1b//AaLJBFAvYog56jwp7aYg1PDOdRlYmg2hmwlyj3St6UTLqHkbXUiq7GVO2EpGYy kkFAn/2sBqXudBA5sdppog==; In-Reply-To: <87zfuhu9pl.fsf@WX-Desktop.mail-host-address-is-not-set> (message from Xuan Wang on Thu, 28 Mar 2024 21:07:34 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282425 Archived-At: > From: Xuan Wang > Date: Thu, 28 Mar 2024 21:07:34 -0400 > > Bug report: > > In warnings.el, the function warning-suppress is supposed to save the > user's choice into variable warning-suppress-types or > warning-suppress-log-types. > > The type of a warning can be a simple symbol, or a list of symbols in > the format of '(warning-type subtype subsubtype). > > The change introduced by commit d5ee49c25c8f59ab17c40eebdf38a769c2f5588b > fixes the problem in situations where the warning type is a simple > symbol, but this commit's code saves wrong data if the warning type is a > list. Thanks, installed on the emacs-29 branch, and closing the bug.