GNU bug report logs - #76566
[PATCH] Implement display-line-numbers-spacing-width

Previous Next

Package: emacs;

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


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

From: Miro Palmu <email <at> miropalmu.cc>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76566 <at> debbugs.gnu.org
Subject: Re: bug#76566: [PATCH] Implement display-line-numbers-spacing-width
Date: Wed, 26 Feb 2025 09:32:19 +0200
> 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.
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.


Here is Emacs stackexchange question asking the same thing,
which motivated me to try to implement the feature:
https://emacs.stackexchange.com/q/52269

So, there is desire to customize or at least remove the spaces.
However, the approach of `display-line-numbers-spacing-width'
might not be the best one. It was one that was easy to implement.

Also, I noticed that my doc string has mistake. It says:

> Any other value than non-negative integer is treated as 1.

but it should be:

> Negative values are treated as zero.


Miro Palmu





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.