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 07:50:36 +0000 Message-ID: <8735clp3n7.fsf@posteo.net> References: <166370103866.17769.3203831255447980421@vcs2.savannah.gnu.org> <20220920191039.C61BCC00874@vcs2.savannah.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="31331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 21 09:53:53 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 1oauYK-000822-QL for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 09:53:53 +0200 Original-Received: from localhost ([::1]:53954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oauYI-0005Bx-IN for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 03:53:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oauVK-0003GQ-Sp for emacs-devel@gnu.org; Wed, 21 Sep 2022 03:50:52 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:42395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oauVF-0000Zb-2h for emacs-devel@gnu.org; Wed, 21 Sep 2022 03:50:46 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9FE61240026 for ; Wed, 21 Sep 2022 09:50:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663746637; bh=ugqICaefU8l+kv3TT/l2qcj/oL8a+yXyFohJu+7t9Gs=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=cVE3xIa1zTlHNAWyymMklYhX+NJ2atKvh6yefgCHFOEGw9KT50RReXeud32R+0oMF fuIuZVK9X17OuU7TjZ1f+ZhcnFr2eLuzjzLpWabsRr3wkegAqVrYQBg4nfL/3KzNN8 i44pDQileNIPD6RhvCpmc2tXiPnCT/MxoM6bMbn8MX0BN5HbETz5NhiVVPC99C9Dkj YUKP7IduylX5kfgxYcKva5/I45bnLdpJCs4NequPSX85ccqnVn+f0k0GlkiiTn3Vl6 6rHjTJ+a6LT0j6u7Zb9Cfy1VTsqOkh6SrvwgZHVg8IfMj8yT3On4HOHleUvlZmyeqA fEiU343WunuHg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MXVvd0xYjz9rxF; Wed, 21 Sep 2022 09:50:37 +0200 (CEST) In-Reply-To: <20220920191039.C61BCC00874@vcs2.savannah.gnu.org> (Stefan Kangas's message of "Tue, 20 Sep 2022 15:10:39 -0400 (EDT)") 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.65; envelope-from=philipk@posteo.net; helo=mout01.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, 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:295868 Archived-At: Stefan Kangas writes: > branch: master > commit d506d91b1fa98b3868437e4d3638f606b4bd20a0 > Author: Stefan Kangas > Commit: Stefan Kangas > > Make linum.el obsolete > > * lisp/obsolete/linum.el: Add Obsolete-since. > * etc/NEWS: Announce obsoletion of linum.el. (Bug#57412) > > * doc/misc/efaq.texi (Displaying the current line or column): > * etc/TODO: > * lisp/faces.el: Don't mention linum.el. > --- > doc/misc/efaq.texi | 3 --- > etc/NEWS | 6 ++++++ > etc/TODO | 6 ------ > lisp/faces.el | 1 - > lisp/obsolete/linum.el | 8 ++++++++ > 5 files changed, 14 insertions(+), 10 deletions(-) > > diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi > index ccaca1d017..0da397919d 100644 > --- a/doc/misc/efaq.texi > +++ b/doc/misc/efaq.texi > @@ -1810,9 +1810,6 @@ optional display. Alternatively, you can use the > customize @code{display-line-numbers-type} with the same value as you > would use with @code{display-line-numbers}. > > -There is also the @samp{linum} package which will henceforth become > -obsolete. We recommend using @samp{display-line-numbers} instead. > - > @node Displaying the current file name in the titlebar > @section How can I modify the titlebar to contain the current file name? > @cindex Titlebar, displaying the current file name in > diff --git a/etc/NEWS b/etc/NEWS > index 5e34f43179..97174ba7a2 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -389,6 +389,12 @@ The user options 'url-gateway-rlogin-host', > 'url-gateway-rlogin-parameters', and 'url-gateway-rlogin-user-name' > are also obsolete. > > +--- > +** The linum.el library is now obsolete. > +We recommend using either the built-in `display-line-numbers-mode', or > +the `nlinum' package from GNU ELPA instead. The former has better > +performance, but the latter is closer to a drop-in replacement. If I try to load linum now, I just get a message that it is deprecated, but no hint to use `display-line-numbers-mode'. Can that be added? > --- > ** The autoarg.el library is now marked obsolete. > This library provides the 'autoarg-mode' and 'autoarg-kp-mode' minor > diff --git a/etc/TODO b/etc/TODO > index 5a89c47a9c..3e4979da8a 100644 > --- a/etc/TODO > +++ b/etc/TODO > @@ -1686,12 +1686,6 @@ and the one to use when terminating the selection. > More specifically do what's needed to make ibuffer.el the default, or > just an extension of buff-menu.el. > > -** Replace linum.el with nlinum.el > -https://lists.gnu.org/r/emacs-devel/2013-08/msg00379.html > - > -(Since Emacs 26 introduced native line numbers, this item is > -probably obsolete.) > - > ** Merge sendmail.el and messages.el > Probably not a complete merge, but at least arrange for messages.el to > be a derived mode of sendmail.el. Or arrange for messages.el to be > diff --git a/lisp/faces.el b/lisp/faces.el > index e171b32e31..ffdc391f66 100644 > --- a/lisp/faces.el > +++ b/lisp/faces.el > @@ -2548,7 +2548,6 @@ default." > :version "21.1" > :group 'basic-faces) > > -;; Definition stolen from linum.el. > (defface line-number > '((t :inherit (shadow default))) > "Face for displaying line numbers. > diff --git a/lisp/obsolete/linum.el b/lisp/obsolete/linum.el > index 1b897a2bd2..017c06e426 100644 > --- a/lisp/obsolete/linum.el > +++ b/lisp/obsolete/linum.el > @@ -6,6 +6,7 @@ > ;; Maintainer: emacs-devel@gnu.org > ;; Keywords: convenience > ;; Old-Version: 0.9x > +;; Obsolete-since: 29.1 > > ;; This file is part of GNU Emacs. > > @@ -24,6 +25,13 @@ > > ;;; Commentary: > > +;; NOTE: This library was made obsolete in Emacs 29.1. We recommend > +;; using either the built-in `display-line-numbers-mode', or the > +;; `nlinum' package from GNU ELPA instead. The former has better > +;; performance, but the latter is closer to a drop-in replacement. > +;; > +;; -------------------- > +;; > ;; Display line numbers for the current buffer. > ;; > ;; Toggle display of line numbers with M-x linum-mode. To enable