From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: print out all members of a list Date: Mon, 28 Feb 2011 18:50:29 +0200 Message-ID: <87hbbof6i2.fsf@mithlond.arda> References: <4D6BBD34.6050407@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298912054 32517 80.91.229.12 (28 Feb 2011 16:54:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 16:54:14 +0000 (UTC) Cc: GNU Emacs List To: gebser@mousecar.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 28 17:54:05 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu6MG-0002Nr-RX for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 17:54:05 +0100 Original-Received: from localhost ([127.0.0.1]:46030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu6MG-0005p6-6p for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 11:54:04 -0500 Original-Received: from [140.186.70.92] (port=39905 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu6J5-0003xS-8R for help-gnu-emacs@gnu.org; Mon, 28 Feb 2011 11:50:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu6J3-0003US-Lk for help-gnu-emacs@gnu.org; Mon, 28 Feb 2011 11:50:47 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:45478 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu6J3-0003RS-F5 for help-gnu-emacs@gnu.org; Mon, 28 Feb 2011 11:50:45 -0500 Original-Received: from mithlond.arda (84.251.132.215) by jenni2.inet.fi (8.5.133) id 4D061FFC037CECAA; Mon, 28 Feb 2011 18:50:34 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.69) (envelope-from ) id 1Pu6In-0001HJ-UT; Mon, 28 Feb 2011 18:50:29 +0200 In-Reply-To: <4D6BBD34.6050407@mousecar.com> (ken's message of "Mon, 28 Feb 2011 10:20:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79570 Archived-At: * 2011-02-28 10:20 (-0500), ken wrote: > (car '("one" "two" "three")) > > prints out "one" ... the first of the list. How to print out all > elements of the list (in order and with the double quotes around them? > I'm actually looking just to substitute something for "car" and not > write an entire function. Or is there no such thing? CAR doesn't print anything, it _returns_ a value. I'm not sure what you mean, maybe this: (identity '("one" "two" "three")) IDENTITY just returns its argument. If you need some kind of pretty-printing you could try PP function.