From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot Date: Sun, 24 Mar 2019 17:06:04 -0700 (PDT) Message-ID: <1430c67b-c447-47b4-92b3-1cba335e8193@default> References: <87sgvcxpzh.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28668"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34975@debbugs.gnu.org To: Michael Heerdegen , Xu Chunyang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 25 01:18:29 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8DJr-0007I3-RT for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2019 01:18:27 +0100 Original-Received: from localhost ([127.0.0.1]:34202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8DJq-0001ra-QV for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2019 20:18:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8DIy-00016Y-9C for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 20:17:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8D8o-00043X-IV for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 20:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8D8o-00043R-Cf for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 20:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h8D8o-0008FV-2Y for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 20:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Mar 2019 00:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34975 X-GNU-PR-Package: emacs Original-Received: via spool by 34975-submit@debbugs.gnu.org id=B34975.155347237531657 (code B ref 34975); Mon, 25 Mar 2019 00:07:02 +0000 Original-Received: (at 34975) by debbugs.gnu.org; 25 Mar 2019 00:06:15 +0000 Original-Received: from localhost ([127.0.0.1]:57280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8D83-0008EX-Fj for submit@debbugs.gnu.org; Sun, 24 Mar 2019 20:06:15 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:38682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8D81-0008EJ-U6 for 34975@debbugs.gnu.org; Sun, 24 Mar 2019 20:06:14 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2ONwpxF178241; Mon, 25 Mar 2019 00:06:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=rfe1EDxPVqrT/L8L7kMfgPw01Rrx2l5yE5TnL4i1fBU=; b=rNMLpm1uf38pUz9tCfcTHgyDWsFWNzAApWeM7RJHhcQHGqLk/bkzyDp5ZfyFi+E0uVCv GLkqG+svO2/es3u8OGyxXzE6hcyVoNYHMOQvf5UYZ4RWsTDvJo4Q5eYpDIqJxvrnSOwj VTBp/CRDrnJCl/9hflw0kZK3hD6aMAJ1O4AoBgi1M0ft1+BuMqrfTT+yDbIpcqnlD1Qu +IE4/kcv0PlJqngU4Sg21IOBRe9UJy48nKLb6AtTXVHG+Io3/yfi1frIiJu0wO39qVpp y5NL2AL6lKkdcor+52bnZ432FROzS0kpI0o3XetZtMCnaDrbMoNAFURUpQ3ew6NUEKF9 Mg== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2re6dj153u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Mar 2019 00:06:07 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2P066I9001051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Mar 2019 00:06:06 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2P065VW003486; Mon, 25 Mar 2019 00:06:05 GMT In-Reply-To: <87sgvcxpzh.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4822.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9205 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=982 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903240184 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156728 Archived-At: > AFAIU ,. is a reader macro: (car (read ",.foo")) > =3D=3D> \,\. >=20 > I dunno or have forgotten for what it had been intended, there are no > real uses in the Emacs Elisp sources. >=20 > > (let ((.foo 42)) `(,.foo)) Yes, it's intended. It acts the same as ,@ I might use it instead of ,@ to convey (to a human) a connotation that what follows is not a proper list (or is not necessarily a proper list), whereas ,@ is typically thought of as splicing in a list of elements. (I don't in fact use it, apparently, but I thought I might have, and if I did use it instead of ,@ then it would no doubt be for that reason.) On the other hand, Common Lisp says that ,. has this difference in meaning from ,@: "Anywhere ``,@'' may be used, the syntax ``,.'' may be used instead to indicate that it is permissible to destroy the list produced by the form following the ``,.''; this may permit more efficient code, using nconc instead of append, for example." https://www.cs.cmu.edu/Groups/AI/util/html/cltl/clm/node190.html#BACKQUOTE =20 > You would have to write it differently, e.g. >=20 > (let ((.foo 42)) `((\, .foo))) > =3D=3D> (42) Yes.