Re: [PATCH] emacs: fix author field width with double-width chars

Subject: Re: [PATCH] emacs: fix author field width with double-width chars

Date: Wed, 02 Jul 2025 08:19:38 -0300

To: 赵一开

Cc: notmuch@notmuchmail.org

From: David Bremner


赵一开 <yikai@z1k.dev> writes:

> Hi,
>
> This can be easily reproduced if some emails have a long non-ascii
> sender name. See attached for such one. (You may need to install a
> Chinese font. e.g. Noto CJK font).
>

Thank you for the test data. For me your fix works in "emacs -nw", but
not in the emacs gtk GUI frame. In that case it seems to truncate more
than needed (see figure at the end). I am using emacs-30.1 on Debian.
I don't know very much about CJK fonts, but according to emacs, the font
for the Chinese characters is

  ftcrhb:-GOOG-Noto Sans CJK KR-regular-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x2509)

It seems odd to me that emacs would choose a "Korean" font, maybe that
is the problem? I checked and I have the Debian packages
"fonts-noto-cjk" and "fonts-noto-cjk-extra" installed.

I tested in ./devel/try-notmuch-mua -Q

emacs-gtk.png
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: