From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 Date: Thu, 21 Sep 2023 12:16:57 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39801"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65680@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 18:18:10 2023 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 1qjMNW-000ABe-6A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 18:18:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjMNH-0001Ck-4d; Thu, 21 Sep 2023 12:17:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjMNE-0001C0-OU for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:17:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjMNE-0000s4-DF for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:17:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjMNN-0001Td-NB for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 12:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 16:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65680 X-GNU-PR-Package: emacs Original-Received: via spool by 65680-submit@debbugs.gnu.org id=B65680.16953130435616 (code B ref 65680); Thu, 21 Sep 2023 16:18:01 +0000 Original-Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 16:17:23 +0000 Original-Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMMi-0001ST-VZ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 12:17:23 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjMMc-0001S5-Sw for 65680@debbugs.gnu.org; Thu, 21 Sep 2023 12:17:18 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 19A101000E5; Thu, 21 Sep 2023 12:16:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1695313018; bh=Wugb+cG3SVB1Jefris/ejl7s3Ltjscn6lbK+Qxw5A6s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NIh+UimEwkP0LHYwnWeSK0pr0qr+YQJ3Zhv9d2XxhlEjHCgfiuog6hiDn07s41pjG EA9z9863255A1Qsb7HqFpQEBGZDVFKwy6723cwACSfPIGJiGivaDdvrSxpfQNSN0tE fqYClu/G5N1cqloAQAkRNN1vcqNH3aXakoj6Wtkf3Z3uXe1nY85RntTzxlMoNg7kGE b+dUvvrS/Oqr390n+zIcic+9hyUdMwUSedESBupZEWiWEGj7w3u2DGDTyZJmnJJjgT vJgJbt+c3K/AdFPiKbOJp6ZoG+ap3ER8orGxxopvA6fPnzaPtqxQICde/6DA2GpY08 raajFOfmFqL6Q== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 07DAF100064; Thu, 21 Sep 2023 12:16:58 -0400 (EDT) Original-Received: from pastel (unknown [45.72.220.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DDEE812031E; Thu, 21 Sep 2023 12:16:57 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Fri, 1 Sep 2023 14:17:12 +0000") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271001 Archived-At: Alan Mackenzie [2023-09-01 14:17:12] wrote: > Hello, Emacs. > > In cl-print-to-string-with-limit appears the following binding: > > (print-length (cond > ((null limit) nil) > ((eq limit t) print-length) > (t (min limit 50)))) > ^^^^^^^^^^^^ > > .. This has the effect of ignoring the parameter LIMIT (unless it is > very small) and instead truncating the printed size to 50. There is a > similar mechanism to limit print-level to 8. > > Although the doc string doesn't explicitly say it won't truncate like > this, it kind of implies that LIMIT is the size it will truncate to. > This excessive truncation is a bug. See also bug#34183. > .. I propose fixing this bug by removing these limits on print-length and > print-level in cl-print-to-string-with-limit. Sounds a bit drastic. Strings can be obnoxiously long, so it's important for cl-print to be able to truncate them. [ IOW, I'm not happy with commit 761f8901fffdb155cbcc7f3b5a2329161c2c1826. ] Stefan