From: Carlos Pita <carlosjosepita@gmail.com>
To: 31717@debbugs.gnu.org
Subject: bug#31717:
Date: Tue, 5 Jun 2018 00:30:10 -0300 [thread overview]
Message-ID: <CAELgYhfaQBWZELj+Mx6wpu2wOJDHU6WQkivOSOvtNP5P8RjtsA@mail.gmail.com> (raw)
In-Reply-To: <87vaaym04z.fsf@carlos.i-did-not-set--mail-host-address--so-tickle-me>
A little more experimentation with different windows sizes made me
realize that the <70 hard and fast rule doesn't exist. Now I see the
threshold indeed depends on the window size. But it is still too
conservative, leading to premature enlargement of the line number
space.
I suggest three optimizations in order of assumed (wild guessed)
ascending difficulty:
1. For relative/visual modes never reserve extra space.
2. If the lines in the file are < N never reserve extra space for >= N.
3. Take also into account the remaining window lines (I assume this is
not as easy as it sounds).
next prev parent reply other threads:[~2018-06-05 3:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 2:34 bug#31717: 26.1; display-line-numbers-mode enlarges indicator without need Carlos Pita
2018-06-05 2:54 ` bug#31717: Carlos Pita
2018-06-05 3:30 ` Carlos Pita [this message]
2018-06-05 14:22 ` bug#31717: 26.1; display-line-numbers-mode enlarges indicator without need Eli Zaretskii
2018-06-05 15:19 ` Carlos Pita
2018-06-05 15:44 ` Eli Zaretskii
2019-10-03 20:39 ` Stefan Kangas
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=CAELgYhfaQBWZELj+Mx6wpu2wOJDHU6WQkivOSOvtNP5P8RjtsA@mail.gmail.com \
--to=carlosjosepita@gmail.com \
--cc=31717@debbugs.gnu.org \
/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).