unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: googleartist@yahoo.com (Artist)
Subject: Re: List into Columns
Date: 24 Jun 2004 08:09:53 -0700	[thread overview]
Message-ID: <de3ad953.0406240709.7ca53d73@posting.google.com> (raw)
In-Reply-To: 877jtynt0o.fsf@wivenhoe.staff8.ul.ie

Brendan Halpin <brendan.halpin@ul.ie> wrote in message news:<877jtynt0o.fsf@wivenhoe.staff8.ul.ie>...
> googleartist@yahoo.com (Artist) writes:
> 
> > How I can convert a list into columns , in the similar way `ls` does on unix.
> 
> Does this give you a clue?:
> 
> (setq mylist '("one" "two" "three and a half"))
> (dolist (element mylist) 
>         (insert (format "%s\n" element)))
> 
> If not, explain a bit more.
> 
> Brendan

It is actually divided into columns according to the width of the item
and width of the 'screen'.

Example:
ls -1 =>

a
b
b2222222222222222222222222222222222222
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
c
d
e


ls =>
a  b2222222222222222222222222222222222222        c  e
b  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb  d

  reply	other threads:[~2004-06-24 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-23 15:18 List into Columns Artist
2004-06-23 16:22 ` Brendan Halpin
2004-06-24 15:09   ` Artist [this message]
2004-06-25  8:32     ` Brendan Halpin
2004-06-25 17:14       ` Artist

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=de3ad953.0406240709.7ca53d73@posting.google.com \
    --to=googleartist@yahoo.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.
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).