unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: stefan@marxist.se, paaguti@gmail.com, 43949@debbugs.gnu.org
Subject: bug#43949: Strange behaviour for linum-mode
Date: Tue, 13 Oct 2020 18:06:06 +0200	[thread overview]
Message-ID: <m27drukt5d.fsf@gmail.com> (raw)
In-Reply-To: <83sgai163v.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Oct 2020 18:46:28 +0300")

>>>>> 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	other threads:[~2020-10-13 16:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-12 11:48 bug#43949: Strange behaviour for linum-mode Pedro Andres Aranda Gutierrez
2020-10-12 13:00 ` Stefan Kangas
2020-10-12 17:11   ` Pedro Andres Aranda Gutierrez
2020-10-12 17:24     ` Robert Pluim
2020-10-13  5:33       ` Pedro Andres Aranda Gutierrez
2020-10-13  7:30         ` Robert Pluim
2020-10-13 15:46           ` Eli Zaretskii
2020-10-13 16:06             ` Robert Pluim [this message]
2020-10-13 16:19               ` Eli Zaretskii
2020-10-13 16:39                 ` Robert Pluim
2020-10-13 16:58                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m27drukt5d.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=43949@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=paaguti@gmail.com \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).