From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#27776: 26.0.50; `print-gensym' doesn't work as advertised Date: Fri, 21 Jul 2017 03:17:50 +0200 Message-ID: <87eftaegg1.fsf@drachen> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500599953 11504 195.159.176.226 (21 Jul 2017 01:19:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 01:19:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27776@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 21 03:19:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYMaw-0002Vs-7P for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 03:19:06 +0200 Original-Received: from localhost ([::1]:40540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYMb1-0003jz-Em for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jul 2017 21:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYMaw-0003je-1E for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 21:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYMas-0000Ei-Si for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 21:19:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYMas-0000Ea-O4 for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 21:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dYMas-0005jQ-6X for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 21:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jul 2017 01:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27776 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27776-submit@debbugs.gnu.org id=B27776.150059988421967 (code B ref 27776); Fri, 21 Jul 2017 01:19:02 +0000 Original-Received: (at 27776) by debbugs.gnu.org; 21 Jul 2017 01:18:04 +0000 Original-Received: from localhost ([127.0.0.1]:50159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYMZw-0005iF-1c for submit@debbugs.gnu.org; Thu, 20 Jul 2017 21:18:04 -0400 Original-Received: from mout.web.de ([212.227.15.3]:57956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYMZt-0005he-Gi for 27776@debbugs.gnu.org; Thu, 20 Jul 2017 21:18:02 -0400 Original-Received: from drachen.dragon ([178.0.9.210]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Ls9JH-1dkqPI1loV-013t2p; Fri, 21 Jul 2017 03:17:53 +0200 In-Reply-To: (Philipp Stephani's message of "Thu, 20 Jul 2017 21:46:16 +0000") X-Provags-ID: V03:K0:sHSJFvecbw4ywl8YabQ2X3FV60MIZwQZSdV/GqWaCznrZfePzld IOvd0ofJtHy38qCV/ig0wEdtTzF4cbM+TaFVI5uCqqDI4p9Yj+Dx5MoYJRNjNCLb3BJ4PYf xTpBR6GEnuM9IiMHpM+qZgNo+lflE9SYsUpfSWCBHUEXk6SzuWNDEE2zSjGJjVvvOD3PPQN yaglRz1VYCqnvBrHx7oSA== X-UI-Out-Filterresults: notjunk:1;V01:K0:cQx43+aJC80=:9ZboVfVHVC4polSOnueZG8 VB9k/GP01RxvR9gCd5uppmJcwnP30VoD9YQl47PB/Yh9GFAgDLn+5AGgCyONWPMH8Ljhsxfpn cnqgHkOa5OIpo21ZLHiRi+ROL8h7mwoVCfZ3oX71aMpPYrmYILMMvdiouHFgEYV5dNIXFbUJn AIBq2GzFpHse8uFo3Bl+qYzUpiCsLurQT0Dhc6G4oguqlLROx8Ny6ckakosIOHM+NKYssXp8y 74hWVCUm+V5h6dnrD7xtyI9TMAAKeuXFut+QSsilkdVDGzT4gviRRNLZneRLT4eY7KF1bCbgP ewYjjrMsGhv3m0NcxRqgQbGoIH37tGM5ywTcd7IUlZPFpJpvbBLqQyurNGWYHBmJ2eah1nfU6 hBhiGYYv7mOX/hD13HF0G52oN/tkQrjpWoQHmc770bx1VeuBtIa0ggliZkP8ALqgNFE1jrmQv U8kib4oj7XLfbvkEx3sqnEczsauU4FoECZy3zC74pfcQBDbZpMxP4JDoe20X76sdXHkOB4Xzb ESkylwv1cNBChU7Pn0b6KrPzj4XyHZXq+KF9U7bVPF8s6oyYg9g1NEjq2WJfYzGz9L1O2hEkL rpnG0M6DftwfN6E6uqsyKMndRKdqrKJVV+bje+BGSsTaLI2gKPHUe7LP/LG2OjboFzzWNabSK KtWnHsB5KIRRiNL3bVkNz40Tp9A5IA1Fe8EyHO4nWXieCTfon9a7ChsVvQQFXl4MenCFTO/DR BSdcz3K9QEvYkflLTWAYWfELRG1t+aYJ37/BMTpsbIyXjSea9FYUyq8JH1J9YZ3ubTF85zEn 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:134804 Archived-At: Philipp Stephani writes: > The docstring of `print-gensym' says: > > When the uninterned symbol appears within a recursive data structure, > and the symbol appears more than once, in addition use the #N# and #N= > constructs as needed, so that multiple references to the same symbol are > shared once again when the text is read back. > > OK, so you could read this as "the numbering is only used for > recursive data structures". But I don't understand why; it seems > equally appropriate for non-recursive data structures. AFAICT...I think the docstring of `print-gensym' just fails to say that you get that behavior only with print-circle bound non-nil. The second problem is that docs speak about recursive data structures when they mean data structures with shared parts. `print-circle' is not (only) about recursive (cyclic) structures. In your example, it doesn't make a difference whether the list is actually really recursive or not, as long as the same uninterned symbol appears more than once in it. Michael.