From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 33232@debbugs.gnu.org
Subject: bug#33232: `gnus-summary-line-format' padding doesn’t work in gui when there are multiple-column-width characters
Date: Thu, 01 Nov 2018 16:52:32 -0700 [thread overview]
Message-ID: <87d0rojqyn.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87efc4idm4.fsf@gmail.com> (Noam Postavsky's message of "Thu, 01 Nov 2018 19:26:11 -0400")
On 11/01/18 19:26 PM, Noam Postavsky wrote:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> "Garreau, Alexandre" <galex-713@galex-713.eu> writes:
>>
>>> Given this (rectangular) excerpt from my bug-gnu-emacs summary:
>>>> …01-nov…[-> 33224@debbugs.gnu.org ] bug#33224: `message-simpli…
>>>> …01-nov…[Noam Postavsky ] bug#33225: [debbugs.el] Do…
>>>> …01-nov…[-> Noam Postavsky ] bug#33225: [debbugs.el] D…
>>>> …01-nov…[積丹尼 Dan Jacobson ] bug#33226: chromium, firef…
>>>
>>> On my system (Debian, with Xorg, i3, GUI Emacs), the last line has its
>>> “]” sooner than the others. This is because `gnus-correct-length'
>>> (along with `char-width') says each of the first three characters is
>>> two-columns wide: but under GUI, this is untrue, as these three
>>> collectively form exactely 5 columns (and not six, as would calculate
>>> `gnus-correct-length').
>>
>> Someone just reported something similar on the org list, that
>> `string-width' doesn't return the actual width occupied by the string,
>> which you'd think would be the whole point.
>
> See Bug#31588, the width of these characters depends on the font, so
> string-width (which works only on a string) can't give the right answer.
> Or, from another point of view, it's the font's fault for being too
> narrow on these characters.
Yeah, I figured it was probably a font issue, but still it's kind of
misleading to have a function that *sounds* like it's going to handle
the font issue, but doesn't.
>> (BTW, it looks like `gnus-correct-length' can be replaced by
>> `string-width'.)
>
> Yep.
Made a bug report.
next prev parent reply other threads:[~2018-11-01 23:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 21:58 bug#33232: `gnus-summary-line-format' padding doesn’t work in gui when there are multiple-column-width characters Garreau, Alexandre
2018-11-01 22:52 ` Eric Abrahamsen
2018-11-01 23:26 ` Noam Postavsky
2018-11-01 23:52 ` Eric Abrahamsen [this message]
2018-11-02 6:36 ` Eli Zaretskii
2018-11-02 19:15 ` Eric Abrahamsen
2018-11-02 6:43 ` Eli Zaretskii
2018-11-02 6:42 ` Eli Zaretskii
2019-06-22 13:19 ` Lars Ingebrigtsen
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=87d0rojqyn.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=33232@debbugs.gnu.org \
--cc=npostavs@gmail.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.