From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: how to embed the current buffer name into the compile-comand Date: Sat, 04 Aug 2007 12:44:24 +0300 Message-ID: References: <1186117201.185805.170150@i13g2000prf.googlegroups.com> <1186189408.182208.108870@i38g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1186220711 3075 80.91.229.12 (4 Aug 2007 09:45:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2007 09:45:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 04 11:45:08 2007 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.50) id 1IHGC2-0003BK-1t for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Aug 2007 11:45:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHGC0-0004EK-62 for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Aug 2007 05:45:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHGBe-0004EC-Pi for help-gnu-emacs@gnu.org; Sat, 04 Aug 2007 05:44:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHGBa-0004Dv-Ef for help-gnu-emacs@gnu.org; Sat, 04 Aug 2007 05:44:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHGBa-0004Ds-2t for help-gnu-emacs@gnu.org; Sat, 04 Aug 2007 05:44:38 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IHGBY-0008Pe-8T for help-gnu-emacs@gnu.org; Sat, 04 Aug 2007 05:44:36 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-243-182.inter.net.il [84.228.243.182]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id DGZ05902 (AUTH halo1); Sat, 4 Aug 2007 12:44:24 +0300 (IDT) In-reply-to: <1186189408.182208.108870@i38g2000prf.googlegroups.com> (message from sunway on Fri, 03 Aug 2007 18:03:28 -0700) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:46315 Archived-At: > From: sunway > Date: Fri, 03 Aug 2007 18:03:28 -0700 > > (setq compile-command (concat (concat "g++ -Wall " (buffer-file-name)) > " &&./a.out")) There's no need for nested `concat' invocations: `concat' accepts any number of arguments, not just 2. See the doc string of `concat' for more details.