From: Stefan Kangas Date: Wed, 21 Sep 2022 12:22:26 +0000 (+0200) Subject: ; Explicitly declare linum-mode obsolete X-Git-Tag: emacs-29.0.90~1856^2~326 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa37deba2eaca900fa3da6624c287ddec1fa61c4;p=emacs.git ; Explicitly declare linum-mode obsolete * lisp/obsolete/linum.el (linum-mode, global-linum-mode): Explicitly declare obsolete to warn the user, and recommend using 'display-line-numbers-mode' instead. Suggested by Philip Kaludercic . --- diff --git a/lisp/obsolete/linum.el b/lisp/obsolete/linum.el index 017c06e426e..c6ce3d6d115 100644 --- a/lisp/obsolete/linum.el +++ b/lisp/obsolete/linum.el @@ -248,6 +248,9 @@ Linum mode is a buffer-local minor mode." (defconst linum-version "0.9x") (make-obsolete-variable 'linum-version 'emacs-version "28.1") +(make-obsolete 'linum-mode #'display-line-numbers-mode "29.1") +(make-obsolete 'global-linum-mode #'global-display-line-numbers-mode "29.1") + (provide 'linum) ;;; linum.el ends here