all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: help-gnu-emacs@gnu.org
Subject: Re: fill comma separated list
Date: Thu, 02 Jun 2016 12:41:11 -0400	[thread overview]
Message-ID: <87r3cf8rx4.fsf@yale.edu> (raw)
In-Reply-To: 31550a04-e2c8-4169-9818-b392379237af@googlegroups.com

papab writes:

> I have a whole bunch of sequences of numbers, like this:
>    5.1816,
>    -3.81,
>    4.8768,
>    5.1816,
>    -4.4196,
>    4.8768,
>    6.4008,
>    -4.4196,
>    5.48640,
>    6.4008,
>    -3.81,
>    5.486400;
>
> I'd like to be able to make it look like this easily:
>    5.1816, -3.81,  4.8768,
>    5.1816, -4.4196, 4.8768,
>    6.4008, -4.4196, 5.486400,
>    6.4008, -3.81,   5.48640
>
> 3 numbers per row.
> Suggestions?  Some variation of fill-paragraph?

Let's play emacs golf: (I assume no whitespace and cursor at the 
initial 5):

F3 C-e <space> C-d C-e <space> C-d C-e <backspace> C-n C-a F4 C-0 
F4
 
14 key strokes.
-- 
Jorge.




  parent reply	other threads:[~2016-06-02 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19 13:02 fill comma separated list papab
2016-05-19 13:12 ` Emanuel Berg
2016-06-02 16:08   ` Kaushal Modi
     [not found]   ` <mailman.702.1464883755.1216.help-gnu-emacs@gnu.org>
2016-06-02 17:11     ` Emanuel Berg
2016-06-02 16:41 ` Jorge A. Alfaro-Murillo [this message]
2016-06-02 17:47   ` Kaushal Modi
2016-06-02 18:36     ` Jorge A. Alfaro-Murillo
2016-06-02 18:50       ` Jorge A. Alfaro-Murillo
2016-06-02 19:06       ` Kaushal Modi

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=87r3cf8rx4.fsf@yale.edu \
    --to=jorge.alfaro-murillo@yale.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.