From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org: Fix tag width calculation for multi-column chars Date: Tue, 31 May 2016 22:02:58 +0200 Message-ID: <87k2iaknbh.fsf@saiph.selenimh> References: <87wpmar7b4.wl@dns1.atmark-techno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7psg-0005Yj-A3 for emacs-orgmode@gnu.org; Tue, 31 May 2016 16:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7psf-0005Mq-0P for emacs-orgmode@gnu.org; Tue, 31 May 2016 16:03:14 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:35748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7pse-0005MN-Pk for emacs-orgmode@gnu.org; Tue, 31 May 2016 16:03:12 -0400 In-Reply-To: <87wpmar7b4.wl@dns1.atmark-techno.com> (Yasushi SHOJI's message of "Tue, 31 May 2016 16:25:42 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Yasushi SHOJI Cc: emacs-orgmode@gnu.org Hello, Yasushi SHOJI 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] :=E6=97=A5=E6=9C=AC=E8=AA=9E: > ** child > 1234567890123456789012345678901234567890123456789012345678901234567890123= 4567890 > 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, --=20 Nicolas Goaziou