all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* aligning numbers
@ 2004-10-28 20:38 Roland Winkler
  2004-10-29  3:57 ` Peter Lee
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Winkler @ 2004-10-28 20:38 UTC (permalink / raw)


I just started to use align for the first time. But somehow it does
not (yet) work as desired. I started in text mode with the lines

0    5.35 11.4
25     4.91 10.6
50   4.52 9.8

When I type C-u M-x align (with the active region being the above
three lines) I get (emacs 21.3.1)

0                       5.35    11.4
                        25      4.91    10.6
                        50      4.52    9.8

What happened with the first line? What determines the indentation?

Instead, I would like to get something like

0   5.35  11.4
25  4.91  10.6
50  4.52  9.8

What do I need to align numbers by the decimal point? Has anybody a
smart regexp for that?

Thanks a lot,

Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: aligning numbers
  2004-10-28 20:38 aligning numbers Roland Winkler
@ 2004-10-29  3:57 ` Peter Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Lee @ 2004-10-29  3:57 UTC (permalink / raw)


>>>> Roland Winkler writes:

    Roland> What do I need to align numbers by the decimal point? Has anybody a
    Roland> smart regexp for that?

M-x align-regexp

with a "space" as the regexp seems to work.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-29  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-28 20:38 aligning numbers Roland Winkler
2004-10-29  3:57 ` Peter Lee

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.