GNU bug report logs -
#73463
[PATCH] Align columns with wide characters properly
Previous Next
Reported by: "Thomas Voss" <mail <at> thomasvoss.com>
Date: Wed, 25 Sep 2024 00:25:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73463 in the body.
You can then email your comments to 73463 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73463
; Package
emacs
.
(Wed, 25 Sep 2024 00:25:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Thomas Voss" <mail <at> thomasvoss.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 25 Sep 2024 00:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
For a while I’ve been bugged by some behaviour in Which-Key. My font of
choice is Iosevka — a font that is quite popular — and it chooses to make
the ellipsis character 2-columns wide. This is typically not a problem,
but it causes Which-Key columns to appear misaligned as it truncates long
descriptions with the ellipsis by default when the user configures it to
use Unicode (and I rather enjoy the ellipsis).
This happens despite the following being in my init.el:
(set-char-table-range char-width-table ?… 2)
After further investigation, this appears to be due to a simple usage of
‘length’ instead of ‘string-width’. The following trivial patch attached
to this email seems to have solved this issue.
--
— Thomas
[0001-Align-columns-with-wide-characters-properly.patch (text/x-patch, attachment)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Wed, 25 Sep 2024 11:58:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Thomas Voss" <mail <at> thomasvoss.com>
:
bug acknowledged by developer.
(Wed, 25 Sep 2024 11:58:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 73463-done <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 25 Sep 2024 02:23:29 +0200
> From: "Thomas Voss" via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> For a while I’ve been bugged by some behaviour in Which-Key. My font of
> choice is Iosevka — a font that is quite popular — and it chooses to make
> the ellipsis character 2-columns wide. This is typically not a problem,
> but it causes Which-Key columns to appear misaligned as it truncates long
> descriptions with the ellipsis by default when the user configures it to
> use Unicode (and I rather enjoy the ellipsis).
>
> This happens despite the following being in my init.el:
>
> (set-char-table-range char-width-table ?… 2)
>
> After further investigation, this appears to be due to a simple usage of
> ‘length’ instead of ‘string-width’. The following trivial patch attached
> to this email seems to have solved this issue.
Thanks, installed on the emacs-30 branch, and closing the bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 24 Oct 2024 11:24:19 GMT)
Full text and
rfc822 format available.
This bug report was last modified 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.