Subject: bug#11496: 24.1.50; Line numbers are not redrawn correctly in linum-mode

From: Juanma Barranquero <[email-masked]>
Date: Thu, 17 May 2012 05:50:05 +0200

On Thu, May 17, 2012 at 4:40 AM, Stefan Monnier
<[email-masked]> wrote:

> You may have more luck with my reimplementation of linum which uses
> jit-lock, which hopefully fixes those problems (tho it may come with
> others of course).

The first one is that it displays the line numbers using only as many
columns as needed for the largest line number it has already shown; it
does not take into account the number of lines in the buffer. This is
quite noticeable, for example, in

  emacs -Q -f view-emacs-news -f linum-mode

vs.

  emacs -Q -f view-emacs-mode -l nlinum -f nlinum-mode

Also, linum mode's linum-before-numbering-hook and linum-format are
quite useful for non-standard line numbering. Equivalent functionality
would be nice.

    Juanma