* Enhancement for Org-mode tables
@ 2006-09-27 16:51 Eddward DeVilla
2006-09-27 22:02 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Eddward DeVilla @ 2006-09-27 16:51 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Currently org-mode will adjust the justification in a column if it
thinks it is a numeric field. I use hexidecimal a lot and got some
wierd results. Eventually I found the option to adjust it and have
set my own RE of (org-table-number-regexp
"^\\([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%]*\\|\\(0[xX]\\)?[0-9a-fA-F][0-9a-fA-F]*\\)$").
I made it based on the general number RE in the code. Right now, I'm
just worried that some day the general number RE might become
better/more general and I might miss out.
Would it possible to add hex to the general number option, or to make
a general+hex option? If not, would there be a way I could do
something to say 'match general-numbers or my RE"?
This isn't a big deal. Just though I'd ask.
Thanks,
Edd
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Enhancement for Org-mode tables
2006-09-27 16:51 Enhancement for Org-mode tables Eddward DeVilla
@ 2006-09-27 22:02 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2006-09-27 22:02 UTC (permalink / raw)
To: Eddward DeVilla; +Cc: emacs-orgmode
Hi Eddward,
On Sep 27, 2006, at 18:51, Eddward DeVilla wrote:
> Hello,
>
> Currently org-mode will adjust the justification in a column if it
> thinks it is a numeric field. I use hexidecimal a lot and got some
> wierd results. Eventually I found the option to adjust it and have
> set my own RE of (org-table-number-regexp
> "^\\([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%]*\\|\\(0[xX]\\)?[0-9a-fA-
> F][0-9a-fA-F]*\\)$").
> I made it based on the general number RE in the code. Right now, I'm
> just worried that some day the general number RE might become
> better/more general and I might miss out.
>
> Would it possible to add hex to the general number option, or to make
> a general+hex option?
Sure, I will use your extended version as the future default, good
idea, thanks.
BTW, [0-9a-fA-F][0-9a-fA-F]* is the same as [0-9a-fA-F]+ in regular
expressions.
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-27 22:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 16:51 Enhancement for Org-mode tables Eddward DeVilla
2006-09-27 22:02 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.