[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org: Fix tag width calculation for multi-column chars
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] org: Fix tag width calculation for multi-column chars |
Date: |
Tue, 31 May 2016 22:02:58 +0200 |
Hello,
Yasushi SHOJI <address@hidden> writes:
> Some characters have multiple column width. Calculating string width
> with points gives a wrong value than actual display width. Use
> `string-width' instead.
>
> Here is an ECM for this problem. `M-x org-update-statistics-cookies` or
> `C-c #` on bar moves the tag on the headline.
>
> * foo [0/0] :abc:
> ** child
> * bar [0/0] :日本語:
> ** child
> 12345678901234567890123456789012345678901234567890123456789012345678901234567890
> 1 2 3 4 5 6 7
> 8
>
> Simple test case is also included.
Thank you.
> Let me know if I miss something.
Could you send it again with an appropriate commit message and using git
format-patch?
Also, there is already a "Tags" section in "test-org.el". Could you add
your tests there instead of creating a new section?
Regards,
--
Nicolas Goaziou