From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Yasushi SHOJI <yashi@atmark-techno.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] org: Fix tag width calculation for multi-column chars
Date: Tue, 31 May 2016 22:02:58 +0200 [thread overview]
Message-ID: <87k2iaknbh.fsf@saiph.selenimh> (raw)
In-Reply-To: <87wpmar7b4.wl@dns1.atmark-techno.com> (Yasushi SHOJI's message of "Tue, 31 May 2016 16:25:42 +0900")
Hello,
Yasushi SHOJI <yashi@atmark-techno.com> 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
next prev parent reply other threads:[~2016-05-31 20:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 7:25 [PATCH] org: Fix tag width calculation for multi-column chars Yasushi SHOJI
2016-05-31 20:02 ` Nicolas Goaziou [this message]
2016-05-31 21:06 ` Samuel Wales
2016-06-01 5:57 ` Georgiy Tugai
2016-06-02 11:29 ` Yasushi SHOJI
2016-06-01 13:00 ` [PATCH] " Yasushi SHOJI
2016-06-01 14:27 ` Rasmus
2016-06-01 12:52 ` Yasushi SHOJI
2016-06-01 17:34 ` Nicolas Goaziou
2016-06-02 11:13 ` Yasushi SHOJI
2016-06-02 11:34 ` Nicolas Goaziou
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=87k2iaknbh.fsf@saiph.selenimh \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=yashi@atmark-techno.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.