GNU bug report logs - #11496
24.1.50; Line numbers are not redrawn correctly in linum-mode

Previous Next

Package: emacs;

Reported by: Christoph Scholtes <cschol2112 <at> googlemail.com>

Date: Thu, 17 May 2012 01:47:02 UTC

Severity: normal

Merged with 12600

Found in versions 24.1.50, 24.2.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 11496 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Christoph Scholtes <cschol2112 <at> googlemail.com>, 11496 <at> debbugs.gnu.org
Subject: Re: bug#11496: 24.1.50;
	Line numbers are not redrawn correctly in linum-mode
Date: Thu, 17 May 2012 05:50:05 +0200
On Thu, May 17, 2012 at 4:40 AM, Stefan Monnier
<monnier <at> iro.umontreal.ca> 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




This bug report was last modified 12 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.