From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: googleartist@yahoo.com (Artist) Newsgroups: gmane.emacs.help Subject: Re: List into Columns Date: 24 Jun 2004 08:09:53 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <877jtynt0o.fsf@wivenhoe.staff8.ul.ie> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088538352 26196 80.91.224.253 (29 Jun 2004 19:45:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:45:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:45:43 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfOY3-00008A-00 for ; Tue, 29 Jun 2004 21:45:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOZj-0004JB-Ed for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:47:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews2.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 216.27.253.8 Original-X-Trace: posting.google.com 1088089800 8854 127.0.0.1 (24 Jun 2004 15:10:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 24 Jun 2004 15:10:00 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:123934 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19294 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19294 Brendan Halpin 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