From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How the backquote and the comma really work? Date: Fri, 26 Jun 2015 06:48:56 -0700 (PDT) Message-ID: <96022002-9a2a-4c6e-b52e-882634936a35@default> References: <87vbebg1fs.fsf@mbork.pl> <20150626073135.GA6552@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435326914 23450 80.91.229.3 (26 Jun 2015 13:55:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2015 13:55:14 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: tomas@tuxteam.de, Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 15:54:59 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z8U5p-0006lq-CL for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2015 15:54:57 +0200 Original-Received: from localhost ([::1]:60164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8U5o-0003zp-Ku for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2015 09:54:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8U09-0002lF-Up for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 09:49:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8U04-0002Wr-Lv for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 09:49:05 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:23879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8U04-0002Wi-Bx for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 09:49:00 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t5QDmvDT026054 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 26 Jun 2015 13:48:57 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t5QDmvsM026266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 26 Jun 2015 13:48:57 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t5QDmvFL028003; Fri, 26 Jun 2015 13:48:57 GMT In-Reply-To: <20150626073135.GA6552@tuxteam.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105191 Archived-At: > To put a slightly different slant than the other very good answers > on it, backquote is Lisp's take on the shell's, Perl's, Pythons > "variable interpolation". On those languages it operates on strings, > in Lisp it operates on S-expressions. Where in Perl you might say: > my $amount=3D200; > my $currency=3D"dollars"; > print("You owe me $amount $currency\n"); > =3D> You owe me 200 dollars >=20 > in Lisp you think in S-expressions. Somewhat equivalent would be > (setq amount 200) > (setq currency 'dollars) ; use a symbol, just for kicks > (print `(You owe me ,amount ,currency)) > =3D> (You owe me 200 dollars) Good explanation.