help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List into Columns


From: Artist
Subject: Re: List into Columns
Date: 24 Jun 2004 08:09:53 -0700

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 via email to

[Prev in Thread] Current Thread [Next in Thread]