From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: shorter form of frequently-seen lisp idiom? Date: Tue, 22 Feb 2005 09:44:46 -0500 Organization: Bell Sympatico Message-ID: <87y8dg64h3.fsf-monnier+gnu.emacs.help@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109083962 22275 80.91.229.2 (22 Feb 2005 14:52:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2005 14:52:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 15:52:41 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3bOs-0005tc-Gb for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 15:52:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3bg2-0007w8-RB for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 10:10:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!news-in.mts.net!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:IhajR0+VG9Bk46/8xE2bg4Fmsmk= Original-Lines: 11 Original-NNTP-Posting-Host: 67.68.218.40 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1109083485 67.68.218.40 (Tue, 22 Feb 2005 09:44:45 EST) Original-NNTP-Posting-Date: Tue, 22 Feb 2005 09:44:45 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:128709 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24247 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24247 > Is there a shorter way to concatenate a list of strings than this? > (eval (append (list 'concat) list-of-strings)) Rule of thumb: if your solution uses `eval' it's either buggy or clunky. Other than the best solution using `apply', you may also want to use `mapconcat', depending on the specific circumstance. Stefan