emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Alignment Regexp Should Recognize Currencies


From: Daniel E . Doherty
Subject: [O] Alignment Regexp Should Recognize Currencies
Date: Fri, 09 Sep 2011 10:01:52 -0500
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

All,

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.

It can be fixed by customizing the variable org-table-number-regexp,
like so:

^\([<>]?\(\$ *\)?[-+^.,0-9]*[0-9][-+^.0-9eEdDx()%:]*\| ... \)$
         ^^^^^^^^     ^
Adding the underlined parts.

My question is should this not be the default, perhaps with the Euro
symbol and other likely currency symbols added in?

Regards,
-- 


====================================================
Daniel E. Doherty

Up the airy mountain,
Down the rushy glen,
We daren't go a-hunting,
For fear of little men.
          --- William Allingham (Donegal, Ireland)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]