From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel E. Doherty Subject: Re: Alignment Regexp Should Recognize Currencies Date: Sat, 22 Oct 2011 09:07:42 -0500 Message-ID: <87d3dpjf0x.wl%ded-law@ddoherty.net> References: <871uvp4v4v.wl%ded-law@ddoherty.net> <87ehy5gvbo.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHcF1-0007nY-P4 for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 10:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHcF0-0006gn-FT for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 10:08:03 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:44268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHcF0-0006gh-BM for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 10:08:02 -0400 Received: by ggnh4 with SMTP id h4so5412952ggn.0 for ; Sat, 22 Oct 2011 07:08:01 -0700 (PDT) In-Reply-To: <87ehy5gvbo.fsf@gnu.org> 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: Bastien Cc: Org-mode List Bastien, I thought this issue was going to die. Thanks for reviving it. I am still interested and would love to hear Carsten's views. Maybe numeric fields could have the grouping character (,) and currency symbols stripped before being used for coumputation? Regards, At Sat, 22 Oct 2011 12:43:55 +0200, bzg wrote: > > Hi Daniel, > > Daniel E. Doherty writes: > > > I noticed that the regular expression for recognizing what columns are > > numeric in a table for purposes of right-aligning does not pick up > > dollar values with commas. > > > > For example, $23,821,415.18 would be treated as "text" and left-aligned, > > which I don't believe is what one would expect. > > To me, values that are right-aligned are those who are ready for further > computation, and letting $3 be right-aligned would be confusing. > > But I understand your need. > > Carsten, what do you think? > > -- > Bastien