all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: roy@panix.com (Roy Smith)
Subject: Aligning colums
Date: 20 Jan 2005 10:46:49 -0500	[thread overview]
Message-ID: <csojp9$ccd$1@panix2.panix.com> (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.

             reply	other threads:[~2005-01-20 15:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-20 15:46 Roy Smith [this message]
2005-01-20 20:16 ` Aligning colums Stefan Reichör
2005-01-23  4:05 ` Alan Wehmann
2005-01-24 23:57 ` Peter Heslin

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='csojp9$ccd$1@panix2.panix.com' \
    --to=roy@panix.com \
    /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 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.