all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Aligning colums
@ 2005-01-20 15:46 Roy Smith
  2005-01-20 20:16 ` Stefan Reichör
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roy Smith @ 2005-01-20 15:46 UTC (permalink / raw)


I've got a bunch of text that looks like this:

	 foo ("arg1", "xxxxxxxxxxxxxx", 1, "xxxx", 2)
	 foo ("arg1", "xxxxxxxxx", 1, "xxx", 2)
	 foo ("arg1", "xxxxxxxxxxx", 1, "xxxxxxxx", 2)
	 foo ("arg1", "xxxxxxxx", 1, "xxxxxx", 2)
	 foo ("arg1", "xxxxxxxxxx", 1, "xxxxxxx", 2)

I want to get the arguments lined up so it looks like:

	 foo ("arg1", "xxxxxxxxxxxxxx",  1, "xxxx",       2)
	 foo ("arg1", "xxxxxxxxx",       1, "xxx",        2)
	 foo ("arg1", "xxxxxxxxxxx",     1, "xxxxxxxx",   2)
	 foo ("arg1", "xxxxxxxx",        1, "xxxxxx",     2)
	 foo ("arg1", "xxxxxxxxxx",      1, "xxxxxxx",    2)

What's the best way to do that?  I suspect M-X align is what I want, I
can't make heads or tails out of the on-line help.

Note, the above text looks like C code, but I seem to run into things
like this is various languages, not just C, so I'm looking for a
general solution.

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

end of thread, other threads:[~2005-01-24 23:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 15:46 Aligning colums Roy Smith
2005-01-20 20:16 ` Stefan Reichör
2005-01-23  4:05 ` Alan Wehmann
2005-01-24 23:57 ` Peter Heslin

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.