From 2a3f95f6154cad5f9372e8c6fe6b1d1120a0995a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 17 Aug 2019 15:59:47 -0400 Subject: [PATCH] Update line-number-display-width polyfill It takes one argument in later versions of Emacs. This file really shouldn't be visible to Emacs 25.x and earlier, but there has been one case of it being indexed by Doom's autoload scanner. Also marks the library with the new DEPRECATED tag. It will be removed once Doom removes 25.x support. --- core/autoload/line-numbers.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/autoload/line-numbers.el b/core/autoload/line-numbers.el index a926c0a2b..df144180a 100644 --- a/core/autoload/line-numbers.el +++ b/core/autoload/line-numbers.el @@ -1,9 +1,9 @@ ;;; core/autoload/line-numbers.el -*- lexical-binding: t; -*- ;;;###if (version< emacs-version "26.1") -;; This was lifted out of the display-line-numbers library in Emacs 26.1 and -;; modified to use nlinum for Emacs 25.x users. It should be removed should -;; Emacs 25 support be removed. +;; DEPRECATED This was lifted out of the display-line-numbers library in Emacs +;; 26.1 and modified to use nlinum for Emacs 25.x users. It should be removed +;; should Emacs 25 support be removed. ;;;###autoload (defvar display-line-numbers t @@ -52,7 +52,7 @@ to display all line numbers in the buffer." :type 'boolean) ;;;###autoload -(defun line-number-display-width () +(defun line-number-display-width (&optional _) "Return the width used for displaying line numbers in the selected window." (length (save-excursion (goto-char (point-max))