From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: master d506d91b1f 2/2: Make linum.el obsolete Date: Wed, 21 Sep 2022 12:43:48 +0000 Message-ID: <87pmfonbi3.fsf@posteo.net> References: <166370103866.17769.3203831255447980421@vcs2.savannah.gnu.org> <20220920191039.C61BCC00874@vcs2.savannah.gnu.org> <8735clp3n7.fsf@posteo.net> <87v8phnjqx.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 21 15:23:38 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oazhR-0001t5-3L for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 15:23:37 +0200 Original-Received: from localhost ([::1]:60394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oazhP-0005cL-SR for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 09:23:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaz51-00040h-To for emacs-devel@gnu.org; Wed, 21 Sep 2022 08:43:57 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:36421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaz4z-00057I-GU for emacs-devel@gnu.org; Wed, 21 Sep 2022 08:43:55 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7D74B240105 for ; Wed, 21 Sep 2022 14:43:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663764231; bh=J6MFiSmSj+nLX7ntI0WCih3Szr9YuHMhhW0hHLTqm7o=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=B1jWI41VpFqzcLP51W8eQRjV5wX+HDGKFRc589VZwKV9c6z6IEYnzxO3jSaVaCAdi 2Mf3pYtvDvkTlY8Am8nizsg+Vml8cdj/6zqJZUXDA61rFeevbL3Wo6sPzvEII9quLb UWRRpdz963ePgAq9VLissQw6QdaEft5w6B6aV3+rVcDfrmxoqoiRJCYiVsugyb9/fg mTIkjmZ42nPitco6ULxapXCiJic9ZxGbgWvNEZmn1WEPrpmIHiMO/cMcq5CRYhOvCX 7pEDJSICdRzdparovURHN5kvj9lkcEw6z+ZqPCFFr9zy/pWr6kMX3k0lQ92bs2AUUi vdI8tVyEZbqrg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MXdPz0blhz9rxH; Wed, 21 Sep 2022 14:43:48 +0200 (CEST) In-Reply-To: (Stefan Kangas's message of "Wed, 21 Sep 2022 05:35:06 -0700") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295905 Archived-At: Stefan Kangas writes: > Philip Kaludercic writes: > >> I'm not sure what you mean. Are we talking about the usage of >> "deprecated" vs. "obsolete"? > > Yes, the directory is called "lisp/obsolete" after all. I don't know if there are strict definitions, but to me these two are de facto synonyms. >> Another idea might be to explicitly mark `linum-mode' as obsolete and >> recommend using `display-line-numbers-mode' when it is enabled. > > Yes, indeed. I've now made that change on master. 1+ >> Though the issue here is probably that most people who use linum >> enable it on startup and might miss the message. > > True. Maybe we could think about ways to make the message more visible. > > We do have this comment in `do-after-load-evaluation': > > ;; Maybe we should just use display-warning? This seems yucky... It is a tricky question. The question is will (most) people notice the deprecation message before linum is removed from emacs.git/the release that does so is distributed. I am guessing this could take a few years to happen, then maybe 2-3 years until the release until whatever version of Emacs that ends up being is even distributed by stable distribution channels. That might be long enough to notice a warning and fix it, or they will start up Emacs one day after an update an encounter a void function error. Perhaps, when it comes to this, it might be enough to add a legacy alias and make `linum-mode' invoke `display-line-numbers-mode', doing the same for `global-linum-mode' and `global-display-line-numbers-mode'. A more general idea might be to have some kind of init.el-health-checker command that could detect and propose to fix simple issues like these. But then again, will those who never pay attention notice this?