]> code.delx.au - gnu-emacs/blobdiff - lisp/linum.el
Fix display when a font claims large values of ascent and descent
[gnu-emacs] / lisp / linum.el
index de15274314cedee97cc8a7535d86da0e1ecb6b99..7b6a3ea4e42829bd19dfd9ff64eabd6dae41ea55 100644 (file)
@@ -62,7 +62,7 @@ See also `linum-before-numbering-hook'."
 
 (defcustom linum-eager t
   "Whether line numbers should be updated after each command.
-The conservative setting `nil' might miss some buffer changes,
+The conservative setting nil might miss some buffer changes,
 and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
   :group 'linum
   :type 'boolean)
@@ -138,6 +138,9 @@ Linum mode is a buffer-local minor mode."
       (mapc #'delete-overlay linum-available)
       (setq linum-available nil))))
 
+;; Behind display-graphic-p test.
+(declare-function font-info "font.c" (name &optional frame))
+
 (defun linum--face-width (face)
   (let ((info (font-info (face-font face)))
        width)