Subject: Re: bug#43949: Strange behaviour for linum-mode

From: Robert Pluim <[email-masked]>
Date: Tue, 13 Oct 2020 18:06:06 +0200

>>>>> On Tue, 13 Oct 2020 18:46:28 +0300, Eli Zaretskii <[email-masked]> said:

    >> From: Robert Pluim <[email-masked]>
    >> Date: Tue, 13 Oct 2020 09:30:49 +0200
    >> Cc: Stefan Kangas <[email-masked]>, [email-masked]
    >> 
    >> Having said that, eliminating that space seems to work, but it does
    >> make the display look very squashed. Eli, what do you think of
    >> a configuration variable allowing that space to be narrower?

    Eli> I'm not sure I understand what you have in mind, please elaborate.

Instead of this in xdisp.c:23046

  strcat (lnum_buf, " ");

use the equivalent of

(setq line-number-space-width 0.5)
(insert (propertize " " 'display '(space . line-number-space-width)))

and adjusting the x-coordinate of the glyphs after the space
appropriately.

Robert
--