From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhiwei Chen Newsgroups: gmane.emacs.bugs Subject: bug#50331: 28.0.50; Propose to obsolete cwarn.el Date: Thu, 02 Sep 2021 16:12:03 +0800 Message-ID: <87zgsvbdm4.fsf@gmail.com> References: <87y28fa3qj.fsf@gmail.com> <8335qnphc4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7281"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50331@debbugs.gnu.org, andlind@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 02 10:15:50 2021 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 1mLhsz-0001hQ-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 10:15:49 +0200 Original-Received: from localhost ([::1]:37838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLhsx-0002SN-CX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 04:15:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLhqI-0008WH-2F for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 04:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLhqH-0001Ja-Pz for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 04:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLhqH-0002jU-Lw for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 04:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zhiwei Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Sep 2021 08:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50331 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50331-submit@debbugs.gnu.org id=B50331.163057033510450 (code B ref 50331); Thu, 02 Sep 2021 08:13:01 +0000 Original-Received: (at 50331) by debbugs.gnu.org; 2 Sep 2021 08:12:15 +0000 Original-Received: from localhost ([127.0.0.1]:39697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLhpX-0002iU-DX for submit@debbugs.gnu.org; Thu, 02 Sep 2021 04:12:15 -0400 Original-Received: from mail-pf1-f174.google.com ([209.85.210.174]:33504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLhpV-0002iH-Kz for 50331@debbugs.gnu.org; Thu, 02 Sep 2021 04:12:14 -0400 Original-Received: by mail-pf1-f174.google.com with SMTP id u6so1059871pfi.0 for <50331@debbugs.gnu.org>; Thu, 02 Sep 2021 01:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MoF6z3Q8n98jVgRzPLRHE1ZZEP+Xt51DXDnl3JCPdO8=; b=kovOZwNyIUg3WaicSzXdFsY5sGQIzg5hlznTGnW7kLzDNF+js/PjiPyuuOWIh6DAHQ 7Iv1GtoeP2tEmd5pzxon9879/np8avqRXIVbhAchkwMmIki4fvdWlf9PTR2QtaN6cU45 A1JWEK3SlMWMl1pQgU3SdLbquTT1FdqlfrAwe5UdZb3hUes8e9ujHu/0sXV1bQRhnmCK x8d129X3oUMLyf8t8uXzaOozPb5qc3ABI5wgnO5yZHBFXPANb3PZoO1gZZvOd2IhsaZJ EWbszuZsnXJ7NlPiobGBQH0m8Hm1mlaHG+UApMiz1KqBKyqjslAhZC8l0JvbluZmRYNF DnFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MoF6z3Q8n98jVgRzPLRHE1ZZEP+Xt51DXDnl3JCPdO8=; b=AhgUnKg8skBJADMpoJk8y/0CkOxVGBCXhl4IzDs9bhUBHvvscJk6xWnz+rmb79X244 UUuK+e4QmTZHxCyJ10G9HS72s/iyJjyboXW/nDvSSvMVj4uSRl3fPp021rq8zHC80zSb 3pcD4LmSw5nTbNxT+GYCZhuzMP8N84JnvwgatQdxbMJHlTCZKtlde3FneeyRNnb7MOFd a7F4ZYHsSntzGcILX7yWKOgd4nwfDoPLQWf+lQo1tFIkBPgwHgWs4NM5xMWdjFmuw5CM yG13EM7aRHVE32KvZqMgL8+m/9/CPKNasrrqABB6Iscwh8893bGCWJ3WvRPtd4Y6uJgk HvDA== X-Gm-Message-State: AOAM532VUwai5R2KjJCfmlOkzJCyBsqCdvwPPvLzDaKkaaN42K4n1VSl hc4zhs2/WmLqTVVdYix5+WE= X-Google-Smtp-Source: ABdhPJyDrE2aAXejTNJ3o0AxgPN/OUjt0NOqoT83n2rUmfmiLw4YF3+J92cYCh+l/n4zKLo8/CetpQ== X-Received: by 2002:a05:6a00:16d2:b029:300:200b:6572 with SMTP id l18-20020a056a0016d2b0290300200b6572mr1999679pfc.62.1630570327824; Thu, 02 Sep 2021 01:12:07 -0700 (PDT) Original-Received: from Youmu (192.69.92.236.16clouds.com. [192.69.92.236]) by smtp.gmail.com with ESMTPSA id me10sm1309192pjb.51.2021.09.02.01.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 01:12:07 -0700 (PDT) In-Reply-To: <8335qnphc4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Sep 2021 10:27:55 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:213256 Archived-At: Eli Zaretskii writes: >> From: Zhiwei Chen >> Date: Thu, 02 Sep 2021 14:30:44 +0800 >> Cc: andlind@gmail.com >> >> # conclusion >> >> Since the first two cases are not existent, and the last one is false >> positive (IMO), I propose to obsolete cwarn. > > I don't understand how you arrived at that conclusion. cwarn provides > the diagnostics while you write the code, without any need to invoke > the compiler, and potentially long before you submit the code to the > compiler. Some people might prefer that, so why inconvenience them? Why would I like to obsolete cwarn? Actually, I'm making an introduction to Emacs builtin modes (in Chinese) to see how powerful the vanilla Emacs is. But I found, Emacs is not so orthogonal in functionality. e.g., `whitespace-mode' provides `whitespace-cleanup' while simple.el has `delete-trailing-whitespace'. Is it time to do subtraction for Emacs? There are too many packages merged into Emacs, but a few are removed from Emacs (to elpa maybe). The main reason for obsoleting cwarn is that its functionality can be superseded by flycheck/flymake. The result of https://grep.app/search?q=cwarn-mode shows that there are few users of cwarn. Of course this result may be wrong, after all https://grep.app/ only searches the git repo and all data on the Internet. The safe way to do this is to raise a poll and let the community decide if cwarn should be removed. Since Emacs is such a monster of 40yrs, the expected result is that most users never know there is a package named cwarn. [1]: https://emacs-china.org/t/emacs-builtin-mode/11937 -- Zhiwei Chen