From: Daniel E. Doherty <ded-law@ddoherty.net>
To: Org-mode List <emacs-orgmode@gnu.org>
Subject: Alignment Regexp Should Recognize Currencies
Date: Fri, 09 Sep 2011 10:01:52 -0500 [thread overview]
Message-ID: <871uvp4v4v.wl%ded-law@ddoherty.net> (raw)
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)
next reply other threads:[~2011-09-09 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-09 15:01 Daniel E. Doherty [this message]
2011-10-22 10:43 ` Alignment Regexp Should Recognize Currencies Bastien
2011-10-22 14:07 ` Daniel E. Doherty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871uvp4v4v.wl%ded-law@ddoherty.net \
--to=ded-law@ddoherty.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).