unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: emacs-devel@gnu.org
Cc: Stefan Kangas <stefankangas@gmail.com>
Subject: Re: master d506d91b1f 2/2: Make linum.el obsolete
Date: Wed, 21 Sep 2022 07:50:36 +0000	[thread overview]
Message-ID: <8735clp3n7.fsf@posteo.net> (raw)
In-Reply-To: <20220920191039.C61BCC00874@vcs2.savannah.gnu.org> (Stefan Kangas's message of "Tue, 20 Sep 2022 15:10:39 -0400 (EDT)")

Stefan Kangas <stefankangas@gmail.com> writes:

> branch: master
> commit d506d91b1fa98b3868437e4d3638f606b4bd20a0
> Author: Stefan Kangas <stefankangas@gmail.com>
> Commit: Stefan Kangas <stefankangas@gmail.com>
>
>     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



       reply	other threads:[~2022-09-21  7:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <166370103866.17769.3203831255447980421@vcs2.savannah.gnu.org>
     [not found] ` <20220920191039.C61BCC00874@vcs2.savannah.gnu.org>
2022-09-21  7:50   ` Philip Kaludercic [this message]
2022-09-21  8:37     ` master d506d91b1f 2/2: Make linum.el obsolete Stefan Kangas
2022-09-21  9:45       ` Philip Kaludercic
2022-09-21 12:35         ` Stefan Kangas
2022-09-21 12:43           ` Philip Kaludercic
2022-09-21 13:58             ` Stefan Kangas
2022-09-21 16:13               ` [External] : " Drew Adams
2022-09-21 16:36                 ` Stefan Kangas
2022-09-21 18:26               ` Philip Kaludercic
2022-09-21 19:19                 ` Stefan Kangas
2022-09-22  2:59               ` Po Lu
2022-09-22 11:01                 ` Stefan Kangas
2022-09-22 11:50                   ` Po Lu
2022-09-22 13:31                     ` Stefan Monnier
2022-09-22 14:01                       ` Stefan Kangas
2022-09-22 14:15                         ` Stefan Monnier
2022-09-21 16:17             ` chad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735clp3n7.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).