all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: emacs-devel@gnu.org
Subject: Re: Line Numbering -- remove leading space; and, customize trailing character.
Date: Fri, 23 Aug 2019 11:23:37 +0300	[thread overview]
Message-ID: <83h868b88m.fsf@gnu.org> (raw)
In-Reply-To: <BE452553-90A0-4CBB-844C-3A0F26DAE68F@lawlist.com> (message from Keith David Bershatsky on Thu, 22 Aug 2019 18:53:58 -0700)

> From: Keith David Bershatsky <esq@lawlist.com>
> Date: Thu, 22 Aug 2019 18:53:58 -0700
> 
> All of that got me thinking ... how would it look if I removed the leading space and changed the trailing space into a "|" symbol?  Attached is a screenshot of what this looks like ...
> 
> Have there been some requests to customize the leading/trailing spaces, and, if so, what was the consensus?  If not, then it may be something worth considering ....  I think the attached screenshot looks kind of nifty, and saves me 11 pixels of screen real estate after eliminating one character (the space) on the left, which happens to be my frame-char-width ...

The leading space that looks "useless" to you makes the display of
line numbers in R2L text as efficient as in L2R text, for somewhat
complicated technical reasons (I can explain if someone _really_ wants
to know, but believe me: you don't ;-).  I bet people who wonder about
those "wasted" few pixels never use R2L or bidirectional text, but we
cannot do anything in Emacs these days on such assumptions.

So yes, this single space is there to stay, at least for now.  The
only compromise we could perhaps consider is replacing the ASCII space
with a thinner non-ASCII space character (on both sides of the
number), although this would get us into the mess of how to detect if
the face's font has a glyph for that, and what to do if it doesn't.
Which is already an expensive complication.

Bottom line: with today's wide hi-res screens, I really cannot
understand why half a dozen pixels "wasted" on that space could make a
difference important enough to complicate the heck out of this
feature.



      reply	other threads:[~2019-08-23  8:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23  1:53 Line Numbering -- remove leading space; and, customize trailing character Keith David Bershatsky
2019-08-23  8:23 ` Eli Zaretskii [this message]

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

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

  git send-email \
    --in-reply-to=83h868b88m.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=esq@lawlist.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.