From mboxrd@z Thu Jan 1 00:00:00 1970 From: Taiki SUGAWARA Subject: Aligning table is incorrect when containing japanese character Date: Wed, 3 Feb 2010 03:58:30 +0900 Message-ID: <73f97e501002021058k6f2942c5t73fba841fd080373@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001485f8d1880a8969047ea2b0ed Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcNxK-0006MY-Kj for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 13:58:34 -0500 Received: from [199.232.76.173] (port=56455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcNxJ-0006MO-BF for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 13:58:33 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcNxI-0004GV-Ci for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 13:58:32 -0500 Received: from fg-out-1718.google.com ([72.14.220.153]:12381) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcNxH-0004G9-Gi for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 13:58:32 -0500 Received: by fg-out-1718.google.com with SMTP id e12so11207fga.12 for ; Tue, 02 Feb 2010 10:58:30 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --001485f8d1880a8969047ea2b0ed Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Hi, When I align table containing japanese character as following steps: 1. insert following table to buffer. | 日本語 | | | foo bar baz | | 2. move cursor to top-left corner of table. 3. Hit Tab, Tab Aligning table is incorrect as following: | 日本語 | | | foo bar baz | | I think, `org-table-justify-field-maybe' should use string width instead of buffer's point distance. I wrote attached patch to use string width. Would you review it? Regards, Taiki --001485f8d1880a8969047ea2b0ed Content-Type: application/octet-stream; name="org-table.el.patch" Content-Disposition: attachment; filename="org-table.el.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g571vv1q0 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLXRhYmxlLmVsIGIvbGlzcC9vcmctdGFibGUuZWwKaW5kZXgg NDljNTllMy4uMTczMjdhZiAxMDA2NDQKLS0tIGEvbGlzcC9vcmctdGFibGUuZWwKKysrIGIvbGlz cC9vcmctdGFibGUuZWwKQEAgLTgxNyw3ICs4MTcsNyBAQCBPcHRpb25hbCBhcmd1bWVudCBORVcg bWF5IHNwZWNpZnkgdGV4dCB0byByZXBsYWNlIHRoZSBjdXJyZW50IGZpZWxkIGNvbnRlbnQuIgog CSAgICAocHJvZ24KIAkgICAgICAoc2V0cSBzIChtYXRjaC1zdHJpbmcgMSkKIAkJICAgIG8gKG1h dGNoLXN0cmluZyAwKQotCQkgICAgbCAobWF4IDEgKC0gKG1hdGNoLWVuZCAwKSAobWF0Y2gtYmVn aW5uaW5nIDApIDMpKQorCQkgICAgbCAobWF4IDEgKC0gKHN0cmluZy13aWR0aCBvKSAzKSkKIAkJ ICAgIGUgKG5vdCAoPSAobWF0Y2gtYmVnaW5uaW5nIDIpIChtYXRjaC1lbmQgMikpKSkKIAkgICAg ICAoc2V0cSBmIChmb3JtYXQgKGlmIG51bSAiICUlJWRzICVzIiAiICUlLSVkcyAlcyIpCiAJCQkg ICAgICBsIChpZiBlICJ8IiAoc2V0cSBvcmctdGFibGUtbWF5LW5lZWQtdXBkYXRlIHQpICIiKSkK --001485f8d1880a8969047ea2b0ed Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --001485f8d1880a8969047ea2b0ed--