bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43949: Strange behaviour for linum-mode


From: Robert Pluim
Subject: bug#43949: Strange behaviour for linum-mode
Date: Tue, 13 Oct 2020 18:06:06 +0200

>>>>> On Tue, 13 Oct 2020 18:46:28 +0300, Eli Zaretskii <eliz@gnu.org> said:

    >> From: Robert Pluim <rpluim@gmail.com>
    >> Date: Tue, 13 Oct 2020 09:30:49 +0200
    >> Cc: Stefan Kangas <stefan@marxist.se>, 43949@debbugs.gnu.org
    >> 
    >> 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
-- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]