unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Aligning text into neat columns
@ 2021-02-18  0:26 dick.r.chiang
  2021-02-18  0:41 ` Basil L. Contovounesios
  0 siblings, 1 reply; 3+ messages in thread
From: dick.r.chiang @ 2021-02-18  0:26 UTC (permalink / raw)
  To: Emacs developers

Seems like there ought to be facile way to take:

Fred (123) 456-7890
Alice (123) 456-7890
Mary-Anne (123) 456-7890

and realigns to:

Fred      (123) 456-7890
Alice     (123) 456-7890
Mary-Anne (123) 456-7890

Googling suggests libraries `align`, `tabulated-list`, and `table`, but none
of these got the job done for me.  I wrote my own, but it wasn't completely
trivial (40 slocs and a lil more than an hour of fiddling).



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

* Re: Aligning text into neat columns
@ 2021-02-18  0:40 dick.r.chiang
  0 siblings, 0 replies; 3+ messages in thread
From: dick.r.chiang @ 2021-02-18  0:40 UTC (permalink / raw)
  To: Emacs developers

Hmmm... for whatever reason C-u M-x align wasn't doing it for me, but now is.
Sorry for the noise.



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

* Re: Aligning text into neat columns
  2021-02-18  0:26 dick.r.chiang
@ 2021-02-18  0:41 ` Basil L. Contovounesios
  0 siblings, 0 replies; 3+ messages in thread
From: Basil L. Contovounesios @ 2021-02-18  0:41 UTC (permalink / raw)
  To: dick.r.chiang; +Cc: Emacs developers

dick.r.chiang@gmail.com writes:

> Seems like there ought to be facile way to take:
>
> Fred (123) 456-7890
> Alice (123) 456-7890
> Mary-Anne (123) 456-7890
>
> and realigns to:
>
> Fred      (123) 456-7890
> Alice     (123) 456-7890
> Mary-Anne (123) 456-7890
>
> Googling suggests libraries `align`, `tabulated-list`, and `table`, but none
> of these got the job done for me.

M-x align-regexp RET SPC RET is one possibility in this example;
there are probably others.

-- 
Basil



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

end of thread, other threads:[~2021-02-18  0:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  0:40 Aligning text into neat columns dick.r.chiang
  -- strict thread matches above, loose matches on Subject: below --
2021-02-18  0:26 dick.r.chiang
2021-02-18  0:41 ` Basil L. Contovounesios

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).