From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode Date: Fri, 16 Apr 2021 06:26:53 +0200 Message-ID: <87lf9isvle.fsf@web.de> References: <877dl36lpz.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22832"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47813@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 16 06:28:13 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 1lXG5V-0005q2-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Apr 2021 06:28:13 +0200 Original-Received: from localhost ([::1]:48788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXG5T-0000fc-RA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Apr 2021 00:28:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXG5K-0000fH-94 for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 00:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXG5K-00057r-1u for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 00:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXG5J-0006PC-TG for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 00:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 04:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47813 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161854722624558 (code B ref -1); Fri, 16 Apr 2021 04:28:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Apr 2021 04:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:39818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXG4P-0006O2-SQ for submit@debbugs.gnu.org; Fri, 16 Apr 2021 00:27:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXG4L-0006Nf-I3 for submit@debbugs.gnu.org; Fri, 16 Apr 2021 00:27:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXG4L-0000c9-7o for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 00:27:01 -0400 Original-Received: from mout.web.de ([212.227.15.14]:55857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXG4J-0004RR-HJ for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 00:27:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1618547214; bh=JE5t+3blO76HgI6OXARpZQ0JfIbIW//HyHccrZNEcvU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=rgbY7T5rW/nIB7/VktkkOUHBmXR9eed2Nd32Yg0f7xlzvHdyzU0OiKsl3QjLkwxMm tZDICW9WnIZ8T2K8/8jUhMtUjWdRAkh/0GgVjBvSYzrbdzAMuy37utDooM5m1KDw8Q 2wj14BGfACAwnveTW7HjyvSwaFUZYsRF0nmAw6Bo= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.96.191]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MUUAG-1l6xn41tAW-00QYba; Fri, 16 Apr 2021 06:26:54 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 15 Apr 2021 23:23:07 -0400") X-Provags-ID: V03:K1:c5ifqo3yQOUEoasqt4vzp/j37oa0hJQOxHg4b83p10p9iLw5WtY qSFKmue7LFFuZpxiONA/5ODv0Av/lBxgwy6SPBd7N8uqUGYljL02qb8C4DbCkFAvNotJ5c3 10r9WlUzwDs8kLsC/brIOkf4I759kOi/8Gb0I5ZvnaXdPgXI2UZjbfqdRangdRGKK06VS/e l5VRKqVwlAzt03g0u15Mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:/SChHEvI/CU=:mbfkTqSNE9aCD1zbpbNP2x AxX+/KYPjwJg+4clIAA1C/p3nQQKytntVoWtS2mH+9Thp+clK6ysRFsPYUd8hKLAAoEOG2b0c WH5SzIjJwFNSMAYMnISIw1utw9WCqt2UNq2gX/iENYyn8LWfvdnlC8LpltGi3Uz/epXpx/SWU 4p1UuSUmIvLgT9ttwahS9ODfAoz05RmB28fCqM8NrSQN1YdzLSxtTM3Dwj/ZBOw1v5FaH3Ufj fL3eN00+Wfue2iYeDmBxusbTA5f2zC2MVV2SRToAXbPKW3JOBZBO8FBBauLY2dgbVs1s6L+Op Diq+Kqnj790XZB7Fu3vn95PFMvtMdCT07FVz4mTd4KfriHyXo0JoQNdKogq8xm7DbRdpPUSGO xyAYpKcN6tQg8gWJNKGiraqHoRVQNOwImCVZYNxd+2yas3e/63WJTYNGQp/ekZn1++f7kW6Lg 8B5POH863TG1yhXJiyRoZ+dQjxGP1fYvfCdSJXCJQkT21EtcXN2eOmog89xJu1xqebRrc+nEi ZPOn2BmLlxZSmwe4pdNESTged24ii4yrgEkddWFWphFJPBqcGAqhYaIwUXRT/oiAlAjHWDgKf YuEgxw1FMdo78ef7+s+q5bhnIwiwi3X9QtxS8z71wrUrX2yU4mmfHpA2v1CuVO+DutwS3J56E 6hVyBAGbl5nevvU3he9jOEX1LX77U5PLNPd+yS+RgjdPWjh0JsbeI+yl2w5sAuG3w7rMzB+fg 3Q8pWXU7Ds0EulrnXbzJGuR4ga8eT0nUuCU6GJvNf4jQ2tqNr5dARefI3aXeinciLpGLYaiU Received-SPF: pass client-ip=212.227.15.14; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:204110 Archived-At: Stefan Monnier writes: > That's why I introduced the warning and changed the arglist: I realized > that even though I think the old convention is inconvenient and > confusing, it seems that a lot of code (even brand new code) follows the > old rather than the new convention, so we need to be more proactive to > get people to abandon the old convention so we can at some point in the > future accept code like the one above. Ok. My problem was: When compiling my init file (I have a lot of personal, quite trivial, minor modes) I got 20 warnings, a whole bulk, then I did what the warnings said and deleted all those nil's, and then everything was broken. It's now hard to find out how to get your code correct and warning free at all. Can we do something better to help people find the correct solution? Regards, Michael.