GNU bug report logs - #16006
24.3; *grep* fails to display line numbers with global-linum-mode

Previous Next

Package: emacs;

Reported by: mdl <at> alum.mit.edu

Date: Sat, 30 Nov 2013 01:14:01 UTC

Severity: minor

Found in version 24.3

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 16006-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Mark Lillibridge <mdl <at> alum.mit.edu>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 16006-done <at> debbugs.gnu.org
Subject: Re: bug#16006: 24.3;
 *grep* fails to display line numbers with global-linum-mode
Date: Wed, 12 Aug 2020 15:34:09 -0700
Mark Lillibridge <mdl <at> alum.mit.edu> writes:

> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>>  > Note that only the first four lines of the *grep* buffer have line
>>  > numbers when all the visible lines should have line numbers.  Switching
>>  > to the new *grep* buffer dones make the line numbers appear.
>>
>>  Indeed linum.el suffers from various corner case problems.  Maybe this
>>  one is fixed in Emacs trunk, or maybe it can be fixed.  But the
>>  implementation technique used by linum.el has proved over the years to
>>  lead to many such corner case issues.
>>
>>  I suggest you try out nlinum.el (available in GNU ELPA) which provides
>>  basically the same functionality as linum.el but using a different
>>  implementation approach, which is more robust.
>
>     Very nice!  Does not suffer from this bug.  I will play with it
> more.  Add the following in order to get a global mode:

So the solution here was to use nlinum instead of linum.  We now also
have display-numbers-mode.

Since there also have been no further updates here within 6 years, I'm
closing this bug now.

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 2 days ago.

Previous Next


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