emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: on helm substantial differences


From: Juri Linkov
Subject: Re: on helm substantial differences
Date: Sun, 22 Nov 2020 10:36:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> The result of char-width can only ever be 0, 1, or 2.  On GUI frames,
> it doesn't always return the exact value, because characters can be
> wider than 1, but narrower than 2.  But no character should be wider
> than 2 columns.  Which characters did you see that required the width
> of 3 or 4?

I tried to set tab-width to 4, and the first character
that doesn't fit to the 4-column tab stop is:

ഐ       MALAYALAM LETTER AI

But (char-width ?ഐ) returns 1.  Some examples of more 4-column wide
characters where char-width returns 1:

ை       TAMIL VOWEL SIGN AI
ෛ       SINHALA VOWEL SIGN KOMBU DEKA
꧅       JAVANESE PADA LUHUR
𒐫       CUNEIFORM NUMERIC SIGN NINE SHAR2


Maybe there is another function that could return the real number of
tab columns a character takes on the screen?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]