diff options
Diffstat (limited to 'lisp/linum.el')
-rw-r--r-- | lisp/linum.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/linum.el b/lisp/linum.el index f9761d22c6e..c78f596d768 100644 --- a/lisp/linum.el +++ b/lisp/linum.el @@ -31,9 +31,6 @@ ;;; Code: -(defconst linum-version "0.9x") -(make-obsolete-variable 'linum-version nil "28.1") - (defvar-local linum-overlays nil "Overlays used in this buffer.") (defvar-local linum-available nil "Overlays available for reuse.") (defvar linum-before-numbering-hook nil @@ -222,7 +219,7 @@ Linum mode is a buffer-local minor mode." ;; update overlays on deletions, and after newlines are inserted (when (or (= beg end) (= end (point-max)) - (string-match-p "\n" (buffer-substring-no-properties beg end))) + (string-search "\n" (buffer-substring-no-properties beg end))) (linum-update-current))) (defun linum-after-scroll (win _start) @@ -244,6 +241,9 @@ Linum mode is a buffer-local minor mode." ;; continue standard unloading nil) +(defconst linum-version "0.9x") +(make-obsolete-variable 'linum-version 'emacs-version "28.1") + (provide 'linum) ;;; linum.el ends here |