From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Re: double-width characters in tables Date: Wed, 13 Feb 2013 12:42:55 +0100 Message-ID: <87wqucwkwp.fsf@bzg.ath.cx> References: <878v6tdcmm.fsf@ericabrahamsen.net> <87vc9xixze.fsf@bzg.ath.cx> <87vc9x4jwq.fsf@ericabrahamsen.net> <877gmdcqzd.fsf@Rainer.invalid> <87a9r93s0o.fsf@ericabrahamsen.net> <87621x3qaj.fsf_-_@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Zry-00009h-Ns for emacs-orgmode@gnu.org; Wed, 13 Feb 2013 05:47:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5Zrp-0006aA-A5 for emacs-orgmode@gnu.org; Wed, 13 Feb 2013 05:47:18 -0500 Received: from wi-in-x0229.1e100.net ([2a00:1450:400c:c05::229]:44100 helo=mail-wi0-x229.google.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Zrp-0006Zh-2S for emacs-orgmode@gnu.org; Wed, 13 Feb 2013 05:47:09 -0500 Received: by mail-wi0-f169.google.com with SMTP id l13so5709181wie.0 for ; Wed, 13 Feb 2013 02:47:07 -0800 (PST) In-Reply-To: <87621x3qaj.fsf_-_@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 13 Feb 2013 10:23:32 +0800") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Hi Eric, Eric Abrahamsen writes: > - l (max 1 (- (match-end 0) (match-beginning 0) 3)) > + l (max 1 > + (- (org-string-width > + (buffer-substring > + (match-end 0) (match-beginning 0))) 3)) (Why not just (org-string-width (match-string 0))?) Let me know when you're done with extensive testing for this! Thanks, -- Bastien