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 09:45:42 +0000 Message-ID: <87v8phnjqx.fsf@posteo.net> References: <166370103866.17769.3203831255447980421@vcs2.savannah.gnu.org> <20220920191039.C61BCC00874@vcs2.savannah.gnu.org> <8735clp3n7.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="25418"; 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 11:51:00 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 1oawNg-0006PE-25 for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 11:51:00 +0200 Original-Received: from localhost ([::1]:37360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oawNe-0001yf-Fk for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 05:50:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawIl-0000RQ-Pe for emacs-devel@gnu.org; Wed, 21 Sep 2022 05:45:56 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:35117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawIj-0003CF-Ml for emacs-devel@gnu.org; Wed, 21 Sep 2022 05:45:55 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B6A51240101 for ; Wed, 21 Sep 2022 11:45:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663753548; bh=d+z/SnobLjnNwW23bTfnBuXSQM1px7FVVCP8O8IeF4o=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=J3mIXNhATz6+rrVNMJbRBzWmvs/2KDaCKQDwB+wQZnsYyaPy0MdPfW3Um2BCgC4AB Eowe0Fqp4aulakXCZQBDfXqZj3M54nR6YYBm9mz2x0RZO5MrIiiAsSYncOE9Vi4XKt bCY4q4py1cihf5Rd1vgzKKg7hASe++69m0To/6aNe46clXfCJo5whyzWxBL159+slV NFlBCjifLPB898okjwvJhipnhjEte9FsYs9QyKnsSIQOPfrjInRnRl7XzoaQsJO53Z vpH7dWfayPwucM6ctkYnMkDLV2dCbsbRzvcJWU5gRVG9acUbf2faua47LsU37SXCat bqC95e0hdxBQg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MXYSX0sMqz6tmW; Wed, 21 Sep 2022 11:45:48 +0200 (CEST) In-Reply-To: (Stefan Kangas's message of "Wed, 21 Sep 2022 01:37:39 -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:295874 Archived-At: Stefan Kangas writes: > Philip Kaludercic writes: > >> If I try to load linum now, I just get a message that it is deprecated, > > That's weird, shouldn't that be > > diff --git a/lisp/subr.el b/lisp/subr.el > index 59f9308f31..7a0896e91e 100644 > --- a/lisp/subr.el > +++ b/lisp/subr.el > @@ -5557,7 +5557,7 @@ do-after-load-evaluation > (package (intern (substring file 0 > (string-match "\\.elc?\\>" file)) > obarray)) > - (msg (format "Package %s is deprecated" package)) > + (msg (format "Package %s is obsolete" package)) > (fun (lambda (msg) (message "%s" msg)))) > (when (or (not (fboundp 'byte-compile-warning-enabled-p)) > (byte-compile-warning-enabled-p 'obsolete package)) I'm not sure what you mean. Are we talking about the usage of "deprecated" vs. "obsolete"? >> but no hint to use `display-line-numbers-mode'. Can that be added? > > I don't think we have any way of displaying such messages. Maybe it > would be worth adding, though. Another idea might be to explicitly mark `linum-mode' as obsolete and recommend using `display-line-numbers-mode' when it is enabled. Though the issue here is probably that most people who use linum enable it on startup and might miss the message.