From unknown Sun Aug 17 04:15:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27776 <27776@debbugs.gnu.org> To: bug#27776 <27776@debbugs.gnu.org> Subject: Status: 26.0.50; `print-gensym' doesn't work as advertised Reply-To: bug#27776 <27776@debbugs.gnu.org> Date: Sun, 17 Aug 2025 11:15:51 +0000 retitle 27776 26.0.50; `print-gensym' doesn't work as advertised reassign 27776 emacs submitter 27776 Philipp severity 27776 minor tag 27776 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 20 17:31:02 2017 Received: (at submit) by debbugs.gnu.org; 20 Jul 2017 21:31:03 +0000 Received: from localhost ([127.0.0.1]:50090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJ2E-0000He-Hk for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:31:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJ2C-0000H9-5C for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:31:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYJ25-00065o-RW for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:30:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dYJ25-00065i-Ns for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:30:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYJ24-0002sc-DB for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 17:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYJ23-000652-33 for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 17:30:52 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:32906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYJ22-00064j-Rh for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 17:30:51 -0400 Received: by mail-wr0-x22b.google.com with SMTP id v105so45385008wrb.0 for ; Thu, 20 Jul 2017 14:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=RS8SWVNTeAohyGE50EOhYtGbZl2hoZlqF696zc6p3VY=; b=lrUnjBWhSgWkJKNGwFIZZQB2hE1L9xC366wlWUr39MLsFbGTPAqG+gj/3+rrRm2c6A 6nqfcCuV0xV8uDLxqOc5wZlAwhKBxGJv+fq3XxbgT9F6a8odgAhEDoHyVDShBpMzl/00 Jo/QMIrzUuXjU1zybFky0PmGrHab90hQv2DtkUmS6CxjB8ElNJ+3iUKqtN+lNlbNNLgX AB05lGlaCHo5cEq26oBcJrwQFH+/1bblxf6gORJ+Vs0y8c8VfClLWd8AizMnyn3WrY7z UaMxj4j9nzDww8D5rxrTdYhD7sfpOvf4lN5rK3sxgd+iXPkPYbiA5y6dDPM+npOm53tH myFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=RS8SWVNTeAohyGE50EOhYtGbZl2hoZlqF696zc6p3VY=; b=sy192IXRby/XR8cIp5wA99UNLKQB5CaDmz4ViDFrWRpYQEUAcE5OE/mT9E56DpeddH qtvDUBeSCooR+47aUXbVQ1uUz6KTYMomH/oVebBwujk2MT2ntpgfI78yQZLZrk4Tp2F0 fDGHjaksHnTQe2OatYvTjmynVukfZ8MA7kG1NioW3YRN1D4FaRUBUHXhkMHtGTlAXaAI zNxdhrsRd/bd+jwHPi8C84ubsJz3A3UQA8KzGphZnEzThIAh5mr8uAfBRyUwhpPQegaw fT9RTPxIYzx++5lVIy4LCIfUK4sdhdnzjMCQD+e2K4HpBto7RaAHtP+/yW2oy/E8BAmS uWOA== X-Gm-Message-State: AIVw113xpx89RVHi7cqTeCUZbK4Pta86fcULdwD7bzk3MBgtdxu3lyXL OFmh+mPlmFwYu+rlN9Y= X-Received: by 10.223.165.146 with SMTP id g18mr7408963wrc.167.1500586247888; Thu, 20 Jul 2017 14:30:47 -0700 (PDT) Received: from p ([2001:4c50:256:ae00:17b:60a8:c035:1ef6]) by smtp.gmail.com with ESMTPSA id s4sm1681807wmb.27.2017.07.20.14.30.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Jul 2017 14:30:46 -0700 (PDT) From: Philipp To: bug-gnu-emacs@gnu.org Subject: 26.0.50; `print-gensym' doesn't work as advertised Date: Thu, 20 Jul 2017 23:30:46 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) 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. However, that doesn't seem to be the case, e.g.: emacs -Q -batch -eval '(let ((print-gensym t)) (print (quote (let ((#1=#:a 1)) #1#))))' prints (let ((#:a 1)) #:a) In GNU Emacs 26.0.50 (build 73, x86_64-apple-darwin16.6.0, NS appkit-1504.83 Version 10.12.5 (Build 16F73)) of 2017-07-20 built on p Repository revision: 644cdd1aa0a10dbfffa3b9b4c7a97f8cddded0b8 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --without-xml2 --without-pop --with-mailutils --enable-gcc-warnings=yes MAKEINFO=/usr/local/opt/texinfo/bin/makeinfo 'CFLAGS=-O3 -g0' LDFLAGS=-O3' Configured features: DBUS NOTIFY ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 208472 8349) (symbols 48 20232 1) (miscs 40 33 159) (strings 32 29516 1081) (string-bytes 1 777795) (vectors 16 32977) (vector-slots 8 669903 8589) (floats 8 52 295) (intervals 56 189 0) (buffers 992 11)) From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 20 17:46:35 2017 Received: (at 27776) by debbugs.gnu.org; 20 Jul 2017 21:46:35 +0000 Received: from localhost ([127.0.0.1]:50108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJHH-0000eM-Ec for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:46:35 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:33969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJHF-0000e9-RD for 27776@debbugs.gnu.org; Thu, 20 Jul 2017 17:46:34 -0400 Received: by mail-oi0-f48.google.com with SMTP id q4so38161536oif.1 for <27776@debbugs.gnu.org>; Thu, 20 Jul 2017 14:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=S1rZRvKGy0g+wdtKDuf4vpD1iopkKYSvFNRgWAfH42k=; b=pzxJizRZtQNOFeAG1jQCVQDdh+mZX6fUc1Rd1r2QlojeWFFP1r2998oeU0x75K1Veq L91yzONG4kyNVK+qvedADz1pe9D6Ua19ZABlv6zEsBBOLLkSfdRlfkDccrH7Bau9rlpQ QIm38fo9wzvMCNFGfRdIh0SQtxtdfKD64Uv0yE7ylx5OLbdTwf+qeL5gJltbnTxAb3hZ oz/jlVocbFyX1kREGj4k78m+rn2dkLRfvxIwoRXmKy5WaszK6uN/HadHG1tNBgzWgyjt T1awAtsn0O5QGkIQVbCP1clRL/RgGRMsfXyHcoOJimS7meI+k2EDVQ0zMd4/OyI2lq5D ypww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=S1rZRvKGy0g+wdtKDuf4vpD1iopkKYSvFNRgWAfH42k=; b=lndXtKsstUBkSgXmTFdO99+DlmAdSJXtdhuUhij756LM93j0KW/IA1pGU5MOtWhrbI mnoIOce/P7MqU8AQTK1pT5qZ+BvXusKKoADSM9j1Gp/Pw0QZbq3EUKoL8LYr2FsNrOKL 9Wino2+gSw/WO8cmrfFqJWSYPNC/BjVuZjIJLw/S9Im+X5bWLY9ltzBptQQbzGk86Ceq 2cjEIGw8z+YP2toEgX+EvriUBFplg2ttbi/cUObEsm+kaQE5MYb43/TGlMUY0zjNA1fo EdxLaaCptXC21WeRPyJWaauLaW16nqG5MMgqSzfZHrkX+ZQEt5ywvE4/zMwJQ/GymX0t vnfg== X-Gm-Message-State: AIVw1111uMiuv9dzNWkpJSkAisTmqcmGQBAoI9qE8Dm8yHTffZAsg0fh QRju/J4QbDdLdeEW0p93eVnBBNvTAL+0 X-Received: by 10.202.82.76 with SMTP id g73mr491361oib.315.1500587187751; Thu, 20 Jul 2017 14:46:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Philipp Stephani Date: Thu, 20 Jul 2017 21:46:16 +0000 Message-ID: Subject: Re: bug#27776: 26.0.50; `print-gensym' doesn't work as advertised To: 27776@debbugs.gnu.org Content-Type: multipart/alternative; boundary="001a113d2cd847d0540554c6ae2d" X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 27776 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) --001a113d2cd847d0540554c6ae2d Content-Type: text/plain; charset="UTF-8" Philipp schrieb am Do., 20. Juli 2017 um 23:32 Uhr: > > 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. --001a113d2cd847d0540554c6ae2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Philip= p <p.stephani2@gmail.com>= ; schrieb am Do., 20. Juli 2017 um 23:32=C2=A0Uhr:

The docstring of `print-gensym' says:

=C2=A0 =C2=A0When the uninterned symbol appears within a recursive data str= ucture,
=C2=A0 =C2=A0and the symbol appears more than once, in addition use the #N#= and #N=3D
=C2=A0 =C2=A0constructs as needed, so that multiple references to the same = symbol are
=C2=A0 =C2=A0shared once again when the text is read back.

OK, so you could read this as "the nu= mbering is only used for recursive data structures". But I don't u= nderstand why; it seems equally appropriate for non-recursive data structur= es.=C2=A0
--001a113d2cd847d0540554c6ae2d-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 20 21:18:04 2017 Received: (at 27776) by debbugs.gnu.org; 21 Jul 2017 01:18:04 +0000 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 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 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 From: Michael Heerdegen To: Philipp Stephani Subject: Re: bug#27776: 26.0.50; `print-gensym' doesn't work as advertised References: Date: Fri, 21 Jul 2017 03:17:50 +0200 In-Reply-To: (Philipp Stephani's message of "Thu, 20 Jul 2017 21:46:16 +0000") Message-ID: <87eftaegg1.fsf@drachen> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/BMTpsbIyXjSea9FYUyq8JH1J9YZ3ubTF85zEng TlRa6QQ/uK0IAhFkhinL4toFT+xBjoBfBXbry7ADqCw3+By4BU= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27776 Cc: 27776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 20 22:19:57 2017 Received: (at 27776) by debbugs.gnu.org; 21 Jul 2017 02:19:57 +0000 Received: from localhost ([127.0.0.1]:50183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYNXp-00077C-5D for submit@debbugs.gnu.org; Thu, 20 Jul 2017 22:19:57 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:35596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYNXn-000770-9E for 27776@debbugs.gnu.org; Thu, 20 Jul 2017 22:19:55 -0400 Received: by mail-io0-f173.google.com with SMTP id m88so9410887iod.2 for <27776@debbugs.gnu.org>; Thu, 20 Jul 2017 19:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4zqNgVFzqJREh/70zbCcdWiWvr2S2k+ooJdV+/u6LwY=; b=MHgHB4tXH23vax/K/iAVdOb2o/Y4OC8QmBz5IgFlsIdgDtAZPsUnoBIvr1460MowTx B05l+FwPT8tPansaqUJfVbW2YYgCbhgq61z7WrNV/s7P+/A+93A18C4cFE+I9Otj2cKL C+yUESCPRt8Mhts6iDmJpXYx2nlxAyYMkQ0k+1D771gZu2ziYAgCyfOFMVWEZw26DA0A 9f3kCRR9rQeZ1FwrfdfeJ4vxg2Vwp4oSlstAImAB6o+WdIGPfTHxbyKqUNvf7eZkplX9 TjVlIvp2lxT1HKekOzCfs5r0PJTdo8Vneh0KhIn+Arp0vgdf83HBLDH2KggsVO0kjj2R wzCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=4zqNgVFzqJREh/70zbCcdWiWvr2S2k+ooJdV+/u6LwY=; b=pWdJCOH+V8hRITyCJ8bdRkD288StOzRmKZyQlkhrydjeJjn9iIXMaw4fgUldXpyA2r HObhbnjxLfQNpEChcl5Tl3enBz6oTC/E8JTsgA7P4us7G5Vd4sEBxsTvIZ8JNFW6PFV6 a8g9XgSo3ccSp7JkLIC2dLmxVZdKaVbE2ncj+KPx90ugGO5tQHZ28eVXz4TeWWOwFIjA 7ZPezrry8eKgaFjS52sj8u3mrWDnAx7y4je8l7qxyYmST2L0Z+D6AaFaREIczjJE11o6 mTUuT6U/cYO1/rNFTwZ0iBWSBRiA+T8PgQpfWpREw/MT3wwWvvdaAUzp/toDTZ7h88de fCCQ== X-Gm-Message-State: AIVw110YIU+IUSp4stU0cEIio7sQS3L9hasXQ0uKU4w7T3y0qy9bc020 ZZqUrgeOSJQqvtB0 X-Received: by 10.107.142.211 with SMTP id q202mr198978iod.100.1500603589523; Thu, 20 Jul 2017 19:19:49 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f22sm163839ita.35.2017.07.20.19.19.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Jul 2017 19:19:48 -0700 (PDT) From: npostavs@users.sourceforge.net To: Michael Heerdegen Subject: Re: bug#27776: 26.0.50; `print-gensym' doesn't work as advertised References: <87eftaegg1.fsf@drachen> Date: Thu, 20 Jul 2017 22:21:23 -0400 In-Reply-To: <87eftaegg1.fsf@drachen> (Michael Heerdegen's message of "Fri, 21 Jul 2017 03:17:50 +0200") Message-ID: <87o9sea5ss.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 27776 Cc: 27776@debbugs.gnu.org, Philipp Stephani X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Michael Heerdegen writes: > 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. I agree. Compare this note in cltl[1] Implementation note: Because the #: syntax does not intern the following symbol, it is necessary to use circular-list syntax if *print-circle* is not nil and the same uninterned symbol appears several times in an expression to be printed. For example, the result of (let ((x (make-symbol "FOO"))) (list x x)) would be printed as (#:foo #:foo) if *print-circle* were nil, but as (#1=#:foo #1#) if *print-circle* were not nil. [1]: https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node193.html From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 22:39:29 2018 Received: (at 27776) by debbugs.gnu.org; 31 Jan 2018 03:39:29 +0000 Received: from localhost ([127.0.0.1]:50124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egjFA-0003hA-W4 for submit@debbugs.gnu.org; Tue, 30 Jan 2018 22:39:29 -0500 Received: from mail-it0-f47.google.com ([209.85.214.47]:53144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egjF8-0003gp-QX; Tue, 30 Jan 2018 22:39:27 -0500 Received: by mail-it0-f47.google.com with SMTP id u62so3515922ita.2; Tue, 30 Jan 2018 19:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UWLj51YnwZEQuTLgeXFtymYpY601f2Kr8mpx5QYMLPQ=; b=cbPgVqMmzaTewD+Ghf31ATJFCHS2rLwoANBRN0QxfsmWK8tsSXibi9OkCBTq/eDuz4 ZBhXdz6G7In8zn1SmfH7Tqk1CUBQhQWzQZzlou7huN3vK82m1zdpYHRpKhXWnuDCngww 8UV+eXyLPltBTEq4u7SYlv1YFbWNGeg/kAy9yDwIU6wtnEuqbKIFwIlkiQ9JWt2+3+Ot ryzdjqnrtrcN2qeEhP7zH+A8G+Dr9NLrXdLwq+gHcx5rFmDctLOFgHue8nE9t8JPC+p2 6PsJmZ919BfDpoEe7ZXrNfaMYoURf+OOKiruw0sqfAqrPWL1EzZ1XtyDPpGwFOa2mM45 PgGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=UWLj51YnwZEQuTLgeXFtymYpY601f2Kr8mpx5QYMLPQ=; b=XRrr7ngGhKH5yClmdLju9m0EwvKrxC32U9iY9pOFo3PKVewYfjOsq2x5jg+R10Jr6X cKbL+U8L0579h+1AnZtrtOIhMcfNbDLO6+dLjTOvL5Tl356PgGQO4eQs39ybGzTGwmeX XGcQQkrhhJRbI9Vd2qSoIcT0R0YEUpvLlBsdPmmAQFhmBeCmhiYuH0yMgxxWHj/7ikep kbfDGvJttyR8TtA2lHcLG4Xrq9xy98tvO1XO9dDi2sRgVaiwColEMw9TrN7zQcF2lGBO VHik8G163oF17lbKtVErHOKtFtbjWzTkVqJJnT4EESmT5x44nU4H6YnSTThCrtIY3bOg RTVA== X-Gm-Message-State: AKwxytdrouemk9lQ5d4k8VVlDopr95F5N1AKce7ABAZwksjAkw7cAkl6 XejD6+yKdGibEtt/9wWQXUcslg== X-Google-Smtp-Source: AH8x227MI1/Tu9hnH1Kkbq7i4WoL20y3EBvbedf1aapl47iZ32pMImXI0j3RLaTOMgVGsIvHyGgIWQ== X-Received: by 10.36.23.78 with SMTP id 75mr33019319ith.24.1517369961175; Tue, 30 Jan 2018 19:39:21 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e18sm8489459itc.4.2018.01.30.19.39.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2018 19:39:20 -0800 (PST) From: Noam Postavsky To: Michael Heerdegen Subject: Re: bug#27776: 26.0.50; `print-gensym' doesn't work as advertised References: <87eftaegg1.fsf@drachen> <87o9sea5ss.fsf@users.sourceforge.net> Date: Tue, 30 Jan 2018 22:39:18 -0500 In-Reply-To: <87o9sea5ss.fsf@users.sourceforge.net> (npostavs's message of "Thu, 20 Jul 2017 22:21:23 -0400") Message-ID: <871si6itnd.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 27776 Cc: 27776@debbugs.gnu.org, Philipp Stephani X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) tags 27776 fixed close 27776 26.1 quit npostavs@users.sourceforge.net writes: > Michael Heerdegen writes: >> AFAICT...I think the docstring of `print-gensym' just fails to say that >> you get that behavior only with print-circle bound non-nil. > > I agree. Fixed in emacs-26. [1: 16022626ba]: 2018-01-30 22:14:02 -0500 Clarify effect of print-gensym (Bug#27776) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=16022626ba86eb96e12b7d919edfb50912cb26bd From unknown Sun Aug 17 04:15:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Feb 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator