From: Eli Zaretskii <eliz@gnu.org>
To: Christophe Rhodes <csr21@cantab.net>
Cc: 26552@debbugs.gnu.org
Subject: bug#26552: [patch] nlinum margin width calculation (emacs <25)
Date: Tue, 18 Apr 2017 19:14:32 +0300 [thread overview]
Message-ID: <83mvbdd76f.fsf@gnu.org> (raw)
In-Reply-To: <8737d6pvxb.fsf@cantab.net> (message from Christophe Rhodes on Mon, 17 Apr 2017 22:26:56 +0100)
> From: Christophe Rhodes <csr21@cantab.net>
> Date: Mon, 17 Apr 2017 22:26:56 +0100
>
> I think the calculation that nlinum-mode does to guess the margin size
> in the absence of font width information (in emacs versions less than
> 25) uses the wrong bit of font information: the pixel size, rather than
> the font height. Trivial patch below, which fixes the problem for me.
Isn't it a mere coincidence that this fixes your problem? How can
height be a better approximation for width than size? What are the
actual numbers in your case?
next prev parent reply other threads:[~2017-04-18 16:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-17 21:26 bug#26552: [patch] nlinum margin width calculation (emacs <25) Christophe Rhodes
2017-04-18 16:14 ` Eli Zaretskii [this message]
2017-04-18 18:04 ` Christophe Rhodes
2017-04-22 8:33 ` Christophe Rhodes
2017-04-22 10:19 ` Eli Zaretskii
2017-04-23 13:38 ` Stefan Monnier
2017-11-04 14:39 ` Noam Postavsky
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=83mvbdd76f.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=26552@debbugs.gnu.org \
--cc=csr21@cantab.net \
/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.