From unknown Sat Aug 16 18:09:56 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#16103 <16103@debbugs.gnu.org> To: bug#16103 <16103@debbugs.gnu.org> Subject: Status: 24.3.50; `read' and circular objects Reply-To: bug#16103 <16103@debbugs.gnu.org> Date: Sun, 17 Aug 2025 01:09:56 +0000 retitle 16103 24.3.50; `read' and circular objects reassign 16103 emacs submitter 16103 Drew Adams severity 16103 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 15:51:52 2013 Received: (at submit) by debbugs.gnu.org; 10 Dec 2013 20:51:52 +0000 Received: from localhost ([127.0.0.1]:42233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqUHX-0008KR-HN for submit@debbugs.gnu.org; Tue, 10 Dec 2013 15:51:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55702) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqUHU-0008KG-HW for submit@debbugs.gnu.org; Tue, 10 Dec 2013 15:51:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqUHK-00058j-7V for submit@debbugs.gnu.org; Tue, 10 Dec 2013 15:51:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqUHK-00058d-4v for submit@debbugs.gnu.org; Tue, 10 Dec 2013 15:51:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqUHB-0002By-9Z for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 15:51:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqUH2-000543-7j for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 15:51:29 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:45132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqUH2-00053x-1T for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2013 15:51:20 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBAKpIwv026851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 10 Dec 2013 20:51:19 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBAKpHu8028485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 10 Dec 2013 20:51:18 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBAKpHYW024612 for ; Tue, 10 Dec 2013 20:51:17 GMT MIME-Version: 1.0 Message-ID: Date: Tue, 10 Dec 2013 12:51:16 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `read' and circular objects X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) Dunno whether this is a bug. If it is not, I'd appreciate some help understanding it. (elisp) `Circular Objects' does not seem to cover it, AFAICT. This Lisp code is in a file: ((last-sort-comparer (bmkp-info-cp bmkp-gnus-cp bmkp-url-cp bmkp-local-file-type-cp) bmkp-alpha-p) (last-reverse-sort-p) (last-reverse-multi-sort-p) (last-latest-bookmark-alist #1=3D(#4=3D#("setq" 0 4 =09=09=09=09 (bmkp-full-record #1#)) =09=09=09=09 (filename . "~/.emacs") =09=09=09=09 (buffer-name . ".emacs") =09=09=09=09 (front-context-string . " (append (l") =09=09=09=09 (rear-context-string . "(setq load-path\n") =09=09=09=09 (front-context-region-string) =09=09=09=09 (rear-context-region-string) =09=09=09=09 (visits . 0) =09=09=09=09 (time . #2=3D(21158 44564 146055 551000)) =09=09=09=09 (created . #2#) =09=09=09=09 (position . 17))) (last-bmenu-omitted-bookmarks) (last-bmenu-marked-bookmarks) (last-bmenu-filter-function) (last-bmenu-filter-pattern . #3=3D"") (last-bmenu-title . #3#) (last-bmenu-bookmark . #4#) (last-specific-buffer . #3#) (last-specific-file . #3#) (last-bmenu-toggle-filenames . t) (last-bmenu-before-hide-marked-alist) (last-bmenu-before-hide-unmarked-alist) (last-bookmark-file . "/home/fcihh/.emacs.bmk")) With point at bob in the file, I do (read (current-buffer)), and this is the result: ((last-sort-comparer (bmkp-info-cp bmkp-gnus-cp bmkp-url-cp bmkp-local-file-type-cp) bmkp-alpha-p) (last-reverse-sort-p) (last-reverse-multi-sort-p) (last-latest-bookmark-alist (#("setq" 0 4 (bmkp-full-record #2)) (filename . "~/.emacs") (buffer-name . ".emacs") (front-context-string . " (append (l") (rear-context-string . "(setq load-path\n") (front-context-region-string) (rear-context-region-string) (visits . 0) (time 21158 44564 146055 551000) (created 21158 44564 146055 551000) (position . 17))) (last-bmenu-omitted-bookmarks) (last-bmenu-marked-bookmarks) (last-bmenu-filter-function) (last-bmenu-filter-pattern . "") (last-bmenu-title . "") (last-bmenu-bookmark . #("setq" 0 4 (bmkp-full-record (#2 (filename . "~/.emacs") (buffer-name . ".emacs") (front-context-string . " (append (l") (rear-context-string . "(setq load-path\n") (front-context-region-string) (rear-context-region-string) (visits . 0) (time 21158 44564 146055 551000) (created 21158 44564 146055 551000) (position . 17))))) (last-specific-buffer . "") (last-specific-file . "") (last-bmenu-toggle-filenames . t) (last-bmenu-before-hide-marked-alist) (last-bmenu-before-hide-unmarked-alist) (last-bookmark-file . "/home/fcihh/.emacs.bmk")) Notice the remaining #2 occurrences. I would have expected the above pp-written sexp to be similar to what was in the file: a representation of similar circular list structure. Or if not that, I would at least expect that all #-notation references to shared structure would be resolved, so that there are no orphaned references like #2. I would prefer to have `read' give me the (equivalent/similar) list structure, with circularities. But I could probably live with `read' giving me a tree with copies where there originally was shared structure (i.e., all # references resolved). What I'm seeing looks to me like a bug. Help understanding is appreciated. I write out a list structure that has circularities, and I want to `read' the result to get back a similar structure. What should I be doing differently, or what is it that I need to be aware of, that I'm currently missing? Thx. In GNU Emacs 24.3.50.2 (i686-pc-mingw32) of 2013-11-28 on LEG570 Bzr revision: 115271 rgm@gnu.org-20131128203155-qjc1xsp19z2k64b2 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG= =3D1' From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 17:47:34 2013 Received: (at 16103-done) by debbugs.gnu.org; 10 Dec 2013 22:47:34 +0000 Received: from localhost ([127.0.0.1]:42405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqW5V-0006K9-4U for submit@debbugs.gnu.org; Tue, 10 Dec 2013 17:47:33 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:46714) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqW5R-0006Jz-SB for 16103-done@debbugs.gnu.org; Tue, 10 Dec 2013 17:47:30 -0500 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3dfGcc4NDhz4KK4K; Tue, 10 Dec 2013 23:47:28 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3dfGcc44Mnzbbck; Tue, 10 Dec 2013 23:47:28 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id WOcZB7GqcUOD; Tue, 10 Dec 2013 23:47:27 +0100 (CET) X-Auth-Info: v7HEdW5GnD2XxiJNdK4nW60VPDr4dQxEuKAZxOCe2Ak= Received: from igel.home (ppp-46-244-235-149.dynamic.mnet-online.de [46.244.235.149]) by mail.mnet-online.de (Postfix) with ESMTPA; Tue, 10 Dec 2013 23:47:27 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 2E43B2C02B4; Tue, 10 Dec 2013 23:47:27 +0100 (CET) From: Andreas Schwab To: Drew Adams Subject: Re: bug#16103: 24.3.50; `read' and circular objects References: X-Yow: OKAY!! Turn on the sound ONLY for TRYNEL CARPETING, FULLY-EQUIPPED R.V.'S and FLOATATION SYSTEMS!! Date: Tue, 10 Dec 2013 23:47:27 +0100 In-Reply-To: (Drew Adams's message of "Tue, 10 Dec 2013 12:51:16 -0800 (PST)") Message-ID: <87txegjpc0.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16103-done Cc: 16103-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) You didn't set print-circle. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 18:05:04 2013 Received: (at 16103-done) by debbugs.gnu.org; 10 Dec 2013 23:05:04 +0000 Received: from localhost ([127.0.0.1]:42418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqWMR-0006mH-Rm for submit@debbugs.gnu.org; Tue, 10 Dec 2013 18:05:04 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:39793) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqWMO-0006lr-Sa for 16103-done@debbugs.gnu.org; Tue, 10 Dec 2013 18:05:01 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBAN4wSO022808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Dec 2013 23:04:59 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBAN4vih002971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Dec 2013 23:04:58 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBAN4vmI020354; Tue, 10 Dec 2013 23:04:57 GMT MIME-Version: 1.0 Message-ID: <94011d65-db0e-46b6-b426-86450dffff66@default> Date: Tue, 10 Dec 2013 15:04:57 -0800 (PST) From: Drew Adams To: Andreas Schwab Subject: RE: bug#16103: 24.3.50; `read' and circular objects References: <87txegjpc0.fsf@igel.home> In-Reply-To: <87txegjpc0.fsf@igel.home> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 16103-done Cc: 16103-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.5 (--) > You didn't set print-circle. Sorry, I don't understand. Why do you say that? Could you please elaborate? The code does set `print-circle' (to `t') when it writes the sexp using `pp'. The sexp in the file shows that, no? Do you see a problem with the sexp as printed in the file? From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 19:32:39 2013 Received: (at 16103-done) by debbugs.gnu.org; 11 Dec 2013 00:32:40 +0000 Received: from localhost ([127.0.0.1]:42487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqXjD-0000bB-03 for submit@debbugs.gnu.org; Tue, 10 Dec 2013 19:32:39 -0500 Received: from mout.web.de ([212.227.15.4]:53164) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqXjA-0000b2-B5 for 16103-done@debbugs.gnu.org; Tue, 10 Dec 2013 19:32:37 -0500 Received: from drachen.dragon ([90.187.152.56]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0LnjNH-1VLsOm3U59-00hzCy for <16103-done@debbugs.gnu.org>; Wed, 11 Dec 2013 01:32:34 +0100 From: Michael Heerdegen To: Drew Adams Subject: Re: bug#16103: 24.3.50; `read' and circular objects References: <87txegjpc0.fsf@igel.home> <94011d65-db0e-46b6-b426-86450dffff66@default> Date: Wed, 11 Dec 2013 01:32:28 +0100 In-Reply-To: <94011d65-db0e-46b6-b426-86450dffff66@default> (Drew Adams's message of "Tue, 10 Dec 2013 15:04:57 -0800 (PST)") Message-ID: <87wqjcw7kz.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:isUUBjEqek4jRgk2m4YJNReZunuJHhXCx7eMc0uJvgyf8Xm88Cf v1qYKKnjuusYucvzn2rVpn31nw17U94Z+5qN8FSmYzlVEOuI/Wp2ZdszV5PgB4LRsRJuroN dWww8b2RmW8WQ8RGcmvxgCNzzH9PXjhlc0EZPbe3MmTjahaz+R6yIf9Avh745erR0cMCjkU fVSft6fb6UXAZl5rcWdJQ== X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 16103-done Cc: 16103-done@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.2 (/) Drew Adams writes: > > You didn't set print-circle. > > Sorry, I don't understand. Why do you say that? I guess he meant the second action, when you did (read (current-buffer)) Did you have print-circle t there, too, when the result of `read' was printed? Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 20:22:11 2013 Received: (at 16103-done) by debbugs.gnu.org; 11 Dec 2013 01:22:11 +0000 Received: from localhost ([127.0.0.1]:42534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqYV9-0001vE-I1 for submit@debbugs.gnu.org; Tue, 10 Dec 2013 20:22:11 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:44959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqYV7-0001v5-0b for 16103-done@debbugs.gnu.org; Tue, 10 Dec 2013 20:22:09 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBB1M6Z3009173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Dec 2013 01:22:07 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBB1M52p023248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Dec 2013 01:22:06 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBB1M5Um023244; Wed, 11 Dec 2013 01:22:05 GMT MIME-Version: 1.0 Message-ID: Date: Tue, 10 Dec 2013 17:22:05 -0800 (PST) From: Drew Adams To: Michael Heerdegen Subject: RE: bug#16103: 24.3.50; `read' and circular objects References: <87txegjpc0.fsf@igel.home> <94011d65-db0e-46b6-b426-86450dffff66@default> <87wqjcw7kz.fsf@web.de> In-Reply-To: <87wqjcw7kz.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 16103-done Cc: 16103-done@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.5 (--) > > > You didn't set print-circle. > > > > Sorry, I don't understand. Why do you say that? >=20 > I guess he meant the second action, when you did > (read (current-buffer)) Did you have print-circle t there, > too, when the result of `read' was printed? Ah, right. I just used `pp-last-expression'. Thx, Michael. From unknown Sat Aug 16 18:09:56 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, 08 Jan 2014 12:24:03 +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