1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

; Fix previous commit

Functions prefixed with `turn-on-foo' are quite old, and in general
subsumed by the corresponding `foo-mode` command.
* lisp/display-line-numbers.el (turn-on-display-line-numbers-mode):
Rename with library prefix, mark as internal.  Nix autoload.
This commit is contained in:
Mark Oteiza 2017-07-24 20:17:50 -04:00
parent f23090d03b
commit 32daa3cb54

View File

@ -90,8 +90,7 @@ the mode is on, set `display-line-numbers' directly."
(remove-hook 'pre-command-hook #'display-line-numbers-update-width t)
(setq display-line-numbers nil)))
;;;###autoload
(defun turn-on-display-line-numbers-mode ()
(defun display-line-numbers--turn-on ()
"Turn on `display-line-numbers-mode'."
(unless (or (minibufferp)
;; taken from linum.el
@ -100,7 +99,7 @@ the mode is on, set `display-line-numbers' directly."
;;;###autoload
(define-globalized-minor-mode global-display-line-numbers-mode
display-line-numbers-mode turn-on-display-line-numbers-mode)
display-line-numbers-mode display-line-numbers--turn-on)
(provide 'display-line-numbers)