From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#23417: 25.1.50; Elisp manual: document gotcha about new objects and quoting Date: Sun, 1 May 2016 14:09:05 -0700 (PDT) Message-ID: <20863a98-6b56-409a-9d77-842b39dfd39c@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462137104 4080 80.91.229.3 (1 May 2016 21:11:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 May 2016 21:11:44 +0000 (UTC) To: 23417@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 01 23:11:31 2016 Return-path: Envelope-to: geb-bug-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 1awyeI-0005wl-H4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 May 2016 23:11:30 +0200 Original-Received: from localhost ([::1]:34348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awyeE-0002PD-Co for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 May 2016 17:11:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awye5-0002CY-5C for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:11:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awydt-0000qn-Ao for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:11:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awydt-0000pS-7R for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:11:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awydp-0003TQ-TE for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2016 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23417 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146213702713309 (code B ref -1); Sun, 01 May 2016 21:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 May 2016 21:10:27 +0000 Original-Received: from localhost ([127.0.0.1]:32876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awydG-0003Sb-Ox for submit@debbugs.gnu.org; Sun, 01 May 2016 17:10:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awydE-0003SP-IK for submit@debbugs.gnu.org; Sun, 01 May 2016 17:10:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awycz-0000c6-Ov for submit@debbugs.gnu.org; Sun, 01 May 2016 17:10:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awycz-0000Yi-Mx for submit@debbugs.gnu.org; Sun, 01 May 2016 17:10:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awyce-0000NY-JQ for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:10:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awycQ-0000M6-FV for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:09:40 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:45611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awycQ-0000IG-6h for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 17:09:34 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u41L99Ur027927 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 1 May 2016 21:09:09 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u41L99JU031985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 1 May 2016 21:09:09 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u41L96Jb000697 for ; Sun, 1 May 2016 21:09:07 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:117549 Archived-At: In the Elisp manual, we do, in node `Rearrangement', point out the gotcha that a quoted list sexp does not necessarily return a new list (new cons) each time it occurs in code. However: 1. The gotcha is more general than the nconc context where it is presented. It is not limited to using a quoted constant list as a non-last arg to nconc. 2. The gotcha is not limited to quoted constant lists. It applies to #s also. 3. Please consider presenting the gotcha in general terms, somewhere. And that place can then be cross-referenced from relevant nodes (e.g. `Quoting' and `Creating Hash'). 4. Please correct misleading text, such as this from `Creating Hash', so as not to give the impression that you get a new object for each occurrence of a quoted constant. You can also create a new hash table using the printed representation for hash tables. Here is one example of confusion wrt the gotcha for #s: http://stackoverflow.com/q/36964728/729907 In GNU Emacs 25.1.50.1 (i686-pc-mingw32) of 2015-12-10 Repository revision: 6148555ee5a3d0139ae517803718b3e0357933c7 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dye= s --enable-check-lisp-object-type --without-compress-install 'CFLAGS=3D-Og -ggdb3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include''