GNU bug report logs -
#76566
[PATCH] Implement display-line-numbers-spacing-width
Previous Next
Reported by: Miro Palmu <email <at> miropalmu.cc>
Date: Tue, 25 Feb 2025 19:44:02 UTC
Severity: wishlist
Tags: notabug, patch, wontfix
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Wed, 26 Feb 2025 09:32:19 +0200
> Cc: 76566 <at> debbugs.gnu.org
> From: Miro Palmu <email <at> miropalmu.cc>
>
> > Thanks, but I'm not sure I like this feature, especially when there
> > are no spaces.
> >
> > Why is this needed?
>
>
> I like to use relative numbering and maximize available room for text.
And you cannot achieve that by customizing the line-number face to use
a font where the SPC character is thin enough for your taste?
> Columns taken by line numbers go from 4 to 2 when the spacing is set to zero.
> Setting just display-line-numbers-width does not remove the spaces.
Completely removing the space will show the numbers as if they were
part of buffer test, which will be confusing. The space makes the
numbers stand out. AFAIK, all the other IDEs which show line numbers
also have some separators.
In any case, disabling the spaces and controlling how many spaces are
there are not the same: the former is just a boolean flag, whereas the
latter is more complex, and the code will be slower. This mode was
implemented in the display engine to solve the performance impact of
linum-mode, so I'm not very fond of adding hair to it and slowing it
down. People who want fancy customization of the line numbers can
simply use linum-mode.
This bug report was last modified 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.