emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master d506d91b1f 2/2: Make linum.el obsolete


From: chad
Subject: Re: master d506d91b1f 2/2: Make linum.el obsolete
Date: Wed, 21 Sep 2022 12:17:56 -0400



On Wed, Sep 21, 2022 at 9:24 AM Philip Kaludercic <philipk@posteo.net> wrote:
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?

Perhaps a variant of the disabled-command machinery for replaced functionality? Something like:

 (put 'linum-mode 'replaced "This library was made obsolete in Emacs 29.1.  We recommend...")

If this need doesn't deserve a generalized approach, it looks like a one-off for linum based on #'command-query could work.

Hope this helps,
~Chad

reply via email to

[Prev in Thread] Current Thread [Next in Thread]