From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#55395: What does (1 2 3 . #2) mean? Date: Mon, 23 May 2022 16:59:57 +0200 Message-ID: <5EDC84C7-B886-4581-AE22-4DFA86DD1EE1@acm.org> References: <4B70C9BE-B784-4B74-A081-7A8B3F8D5136@acm.org> <87ilq931ay.fsf@gnus.org> <715F3D50-7D11-47CF-A34B-6532F1F508D7@acm.org> <86345ABE-C19C-4096-8550-05E5B78D6C3A@acm.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35815"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55395@debbugs.gnu.org, Lars Ingebrigtsen To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 23 17:02:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nt9Zz-00099e-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 17:02:43 +0200 Original-Received: from localhost ([::1]:33290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt9Zy-0002W3-PG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 11:02:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt9YM-0000x2-JW for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 11:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt9YM-0007mN-A7 for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nt9YM-0004Cz-5a for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 May 2022 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55395 X-GNU-PR-Package: emacs Original-Received: via spool by 55395-submit@debbugs.gnu.org id=B55395.165331801416096 (code B ref 55395); Mon, 23 May 2022 15:01:02 +0000 Original-Received: (at 55395) by debbugs.gnu.org; 23 May 2022 15:00:14 +0000 Original-Received: from localhost ([127.0.0.1]:49971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt9XZ-0004BW-NM for submit@debbugs.gnu.org; Mon, 23 May 2022 11:00:13 -0400 Original-Received: from mail153c50.megamailservers.eu ([91.136.10.163]:32912 helo=mail50c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt9XU-0004A7-KM for 55395@debbugs.gnu.org; Mon, 23 May 2022 11:00:12 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1653318006; bh=kuhR7Eqz7XVWWALLseTXsQGXx2xXfj4RAIvQxrM0uII=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=WYSHGLlZlbXjJbXFbX5v24uCEb9xE/UqpZWLOy8yMdDWzIgFkRWZ60XucDjOPCV+t 5GoulHdKlTdcy16gD6UokbKLLu7NRXvMUQabV+nkbfzui3HrLhBbS8DyDa1GtUE9hA 2EgDLJVnprfgkqZqECrQ/j54uAycM4oE0nus17Hw= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail50c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 24NExvib000902; Mon, 23 May 2022 15:00:05 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) X-CTCH-RefID: str=0001.0A742F1A.628BA176.006F, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-Origin-Country: SE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232973 Archived-At: 18 maj 2022 kl. 23.16 skrev Stefan Monnier : >=20 >> [(1 2 3 . #0)] >>=20 >> could mean either >>=20 >> [#1=3D(1 2 3 . #1#)] >>=20 >> or >>=20 >> #1=3D[(1 2 3 . #1#)] >=20 > AFAIK it *should* mean the latter (#0 is the root of the overall > printed object, not just the list). Yes, but the code was already a bit ambiguous in that respect. We don't = keep track of the cons-level depth when printing; print_depth treats = each list nesting as one step regardless of where in the list the = nesting occurs. I suppose this could be remedied but I'm not going to = work on it right now. The previously attached patch has been pushed to master, on the grounds = that it should be strictly better than what we had before; correctness = should be back at the level before the change in circularity detection = algorithm broke the tail index completely. > Yup. But we don't shy away from playing the fools. You know me, I don't even need to play one. It all comes natural.