Debbugs Internal Request <help-debbugs@HIDDEN>
to internal_control <at> debbugs.gnu.org
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 20:01:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 16:01:03 2023 Received: from localhost ([127.0.0.1]:34853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjPrD-0007cF-CR for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 16:01:03 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1qjPrA-0007bb-JP for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 16:01:02 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A77AC442B04; Thu, 21 Sep 2023 16:00:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1695326439; bh=Q6/EiQa3OY5efSKtiNEMtzLoZjvi+QGdRI0RoN/69l4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Y0LVSLL3wp5YcSbhbT1V2wE2QRsXW4ESpM1imM78STWklBBG3t4zfKKr1I9LpP7FK miYe8pXfIsA/i2cUgJ/3vEsx9HWic5H2lJK4AijhmcqfNLcuF7O3rX5EMHim9DapIz AZXvjE+4DyCxoaHXjMCVpYF46ZsuTapLZFLo8XHq8Fr3agCo2AKOn3ncyw88QyEYlo luUrGUVL0GOFkmIZBlpalUIb5Lpjh6799Dj43147UHzAVj7NRI9E+ea4foNGd9jcBD MrR4f+pfkVmLQo6gdXweyYYDbhVUyxT3wXMNz/5193n0nB/mXq3m1rc1Iump2SQ6ck C7kyYj+vqaRMQ== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 07A16442B02; Thu, 21 Sep 2023 16:00:39 -0400 (EDT) Received: from pastel (unknown [45.72.220.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BBE18120235; Thu, 21 Sep 2023 16:00:38 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Drew Adams <drew.adams@HIDDEN> Subject: Re: [External] : bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 In-Reply-To: <SJ0PR10MB5488C2F97677B6A107A900B3F3F8A@HIDDEN> (Drew Adams's message of "Thu, 21 Sep 2023 19:22:11 +0000") Message-ID: <jwvleczfgaw.fsf-monnier+emacs@HIDDEN> References: <ZPHyaErc3-n5Pa2h@ACM> <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> <ZQx4bskZ7fWGOwRL@ACM> <jwvjzsjh1lr.fsf-monnier+emacs@HIDDEN> <SJ0PR10MB5488C2F97677B6A107A900B3F3F8A@HIDDEN> Date: Thu, 21 Sep 2023 16:00:37 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.228 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65680 Cc: Alan Mackenzie <acm@HIDDEN>, "65680 <at> debbugs.gnu.org" <65680 <at> debbugs.gnu.org> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Not to muddy the waters too much, but FWIW: `cl-prin1' > is a far cry from an emulation of Common Lisp `prin1'. Please don't discuss Common Lisp here. This is a bug report bout Emacs Lisp. Stefan
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 19:22:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 15:22:34 2023 Received: from localhost ([127.0.0.1]:34842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjPFy-0006Zt-JR for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 15:22:34 -0400 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:4880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1qjPFt-0006Zg-6O for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 15:22:33 -0400 Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38LIsoUN009379; Thu, 21 Sep 2023 19:22:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=l826Db05ytTIj9xrrlU0RRaqc78DmWo0mttGFvM/wP8=; b=ZPxmoVI/cwy0dcYdKDPAxv2xOOgFDoiSa/p3lz2HsxK9OnRdeGPUVecognXt4Rio/hQp cqtFb4ZmM+AzNiQ2dwoZlecxMvoeL+wC15ILKj3GO4clNr9ptSsks9EhJIKVZ9aKILr/ QgLq4WDsx6FegK5iSJx+lE2+LuhrAMqeZsktbel6ahkRfx1eKng/CNCgJX40oHizNzdY w/0BrSqrOuZLMMBrVF/sVyCA1uSBFPvN4sxFlYEs1sGYLTBLW20OXjU9Ew/HoN48Wqtl Av0MjwmdttcEMAtdKo+RZFrRHeoEJhCJ+1W4zFQMlFWPJJfmXtzFAB1j77s52hDYNU+n /Q== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t8tsxr4ua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Sep 2023 19:22:17 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38LIsnst029773; Thu, 21 Sep 2023 19:22:16 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2044.outbound.protection.outlook.com [104.47.56.44]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t8uhbs1dm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Sep 2023 19:22:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OfrZSpLDGUeTZxV44EatHHY76YYw6oL1nf0uMuR20PdrMj3D4vold37ieJMImeINrAl0rJzfkKfhbXbuVpeXkALUp1N1HMzU0mzJG3HA6mqbA6zvgfZpKMvix4PkyaHbR1axZs/u8K+JBoNZGNwwzcODa8ErCAmlCTdBtOfkk1RAc2LN8Vd5gWZmDftB9H3vYqBskraZdieyhEkBqGWeDlCFzCgD32Offqq0Ue07zBoNpJQIeWc8TFrniuQPz1WsIVBXDsXSYU62aaVL5p/rNgF4NDlBSUedPuLYK+ClNLis9zts1Ru6yvxKxjV8xUov116bYq4SHjKWJ78ItqBJtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=l826Db05ytTIj9xrrlU0RRaqc78DmWo0mttGFvM/wP8=; b=YjIM8x/VfTXldaIm7kuPbeojYfl2Cv1stvTp8DPMLgBNjaNxZPoS185v0Bm4TvhvFt6eyQOchzTVXC+WaQM1UWTE6pYPDZFLetq2d7Vs1QC7lRvNmmB5WslS20/eSafjMHHWCgBNBSc8jJq1W+wID7kbCozNBd4mdThNJvFhmd4Qgv2A0YqeGOAF/6el27UInhNOVS4LI26AqNTGmBQukCBqZrc7ezoov2oFMWC5DZKOm6ZAV/5PRXlgJsqlsddLcon6jJelgr16IJv5Z1XJl8Sao8nIR2b60P5QFlLAkk4jjhXCTWRKQ3BvNLnYLDcksAIpsCxD+IBILWWR3rXiKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l826Db05ytTIj9xrrlU0RRaqc78DmWo0mttGFvM/wP8=; b=ViHcBpG6Piiifp/Fa1tKNqhoVMlmDH11rglRia31G0rPTOup7Ywe0QTFqBgADYQ85OFgL40Ku9ySgM/OGtw4gFAxTCIAHt3Q464N0K6xW3KTqarW00vbp6TX9XULyTjHWZ+OKGUWwTtAcWwsLEI06eM0ixn+Fwkza63eUfEC0mQ= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SA1PR10MB5711.namprd10.prod.outlook.com (2603:10b6:806:23e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.26; Thu, 21 Sep 2023 19:22:11 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3b:c5a0:5222:69a4]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3b:c5a0:5222:69a4%7]) with mapi id 15.20.6792.026; Thu, 21 Sep 2023 19:22:11 +0000 From: Drew Adams <drew.adams@HIDDEN> To: Stefan Monnier <monnier@HIDDEN>, Alan Mackenzie <acm@HIDDEN> Subject: RE: [External] : bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 Thread-Topic: [External] : bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 Thread-Index: AQHZ7LRXfSW2TJv2aEmUHf+LIFcvy7Alpc+w Date: Thu, 21 Sep 2023 19:22:11 +0000 Message-ID: <SJ0PR10MB5488C2F97677B6A107A900B3F3F8A@HIDDEN> References: <ZPHyaErc3-n5Pa2h@ACM> <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> <ZQx4bskZ7fWGOwRL@ACM> <jwvjzsjh1lr.fsf-monnier+emacs@HIDDEN> In-Reply-To: <jwvjzsjh1lr.fsf-monnier+emacs@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SA1PR10MB5711:EE_ x-ms-office365-filtering-correlation-id: 8dc0d272-1350-44ba-f387-08dbbad80dff x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6uAS8eKvSck6Q1dfIAmCSh0VEgS6pJmgcjS4lJ/5I01wtWKPxbznbnOTY16/ZiUuGqg3kqVonJCimWOyYBVLCANopN1ky11CAKRLOohDILKVxtUdUUr6RUwlw0ethvJTKGSWyvfl9yLr5Pv+iJY10OhazZEGSunr7LyXgNNKbYPCazUMCSPV/m4eDu/gklYgOmGVPbDcNHDVVNNv86x67xiBJFcDS131LA1yKm4fA0u3PX2Lq02wLtkb1ZJPX5tYSOtP8NHt1MI2/qyocyLRidQ34vNIrDLoBXnBcN9piWXiSazUwaaXnc6bkNXBwPA0Nowk7nPY4f/5fNLvVGA5GF95RcgbpZ8V+zdepUM114ts7Zl9PyUcCqqlnP3EwpSMUvFFsultVB2XIrb4AjEGybOaeXpnAECC1kY9l4WfczTnokRXd0SzoFMy+iIzmYNXXehxkKCtkKWybKGP1h6ePGvDjb8ubM3oOR9ZDkN9U2gLbQY6lMO5/D3EuK1sMKaaAvdT0LD45E5zwu3U9FKUN3Zt9HVpzyI73jTWoksqXBVnveF4itEWNe3DBMzegLh0IjcBEr33u/88fpUutnNVHmHcR+BngAOfnem+O1opHvHcd9FFJf3hpZMlCSYFEbjP x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(376002)(346002)(396003)(366004)(136003)(186009)(451199024)(1800799009)(478600001)(44832011)(55016003)(5660300002)(296002)(6506007)(7696005)(86362001)(110136005)(66556008)(9686003)(66946007)(38070700005)(41300700001)(38100700002)(66446008)(316002)(64756008)(66476007)(76116006)(71200400001)(8936002)(52536014)(26005)(33656002)(122000001)(8676002)(4326008)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?SNT0Fc0hI8ZiZU1A8B2LNeOXWVOQNHJ+CPb4oo3qJXwhFZoweVCms4Ix9b1d?= =?us-ascii?Q?ogpY+rDQsOXqrfKD6YRmW9SN8TwSljth02OSf+byR5yq01NKaJCekipnIP3C?= =?us-ascii?Q?DckJ7nsNoqbcX5w6Rj5kGlHXrGfYg0D6JBfsnS5r1VJF1AIehxnmZhvojOwX?= =?us-ascii?Q?XnGw8qztPxUN8u+F2Tuhy/bOHC7sqY0sWygIgJ7nuhd5/NxSdHZnTJbL4Wff?= =?us-ascii?Q?byUYR94hNxrU+/SNpQD7IKkehmgLDqK4+NiTSfYliHhoZ0GifDIhMsuuwkNN?= =?us-ascii?Q?RRPNllLQ8k954DlKjKyD7T/ob5QmUEIQq1DQC30RuQmsPHdKcRRxp86PPugD?= =?us-ascii?Q?2BoLnvgJyyfHKQ/Xq/VaWhsoegmQfa4WODu3fwi5P/6/HPjYZtCfAaHaX7ER?= =?us-ascii?Q?R+0pk8ZFcgzixmho7YZU8fLD24SNgT/GneOBi+dnXZhMjzdCaVTe2HfcVLrb?= =?us-ascii?Q?WVstxaSKL4byA1fPpfNaAcPEnGM+iaMAj0r8rS+nPHFwR07raGqxKlatN4sw?= =?us-ascii?Q?Kt67WccEC63WTyc8kIcG6U7fu56VfqgTx5sihLR5o70M88LpQC3XJH3Z7O48?= =?us-ascii?Q?vFyMld8j4YoqNvh5GSNmfL/NYUZlJVu5FhXnRPW1d8Zjxj7QYFa82uDCSdIy?= =?us-ascii?Q?Gzx/1j519Hth9u4F7CfKVN8CGaFAtR9hjZEDS7XJP9wTPVyyYGeMJYeTzcLI?= =?us-ascii?Q?DTvljCv9icHEgmMxhBLsmMca3sinpL6Nx3F3ZtWt10qjspblm59e7upHDlmL?= =?us-ascii?Q?yrTbdLiKzVVg0Xzh/OK42oQx/hoTutUMKLb4Bxf/gTSU5MpLvO5gvTNvmGXE?= =?us-ascii?Q?hFrAoPThECiez1QoHfejMzLXUkN8qJi532ekR0R6SarM6rvDwR1/3jBGV6BN?= =?us-ascii?Q?mrYWjvvnfU9I4UjcWJctk+9lCtOCgQTNbvGuHhL8DKfkXCBLnnNhD+2bjUKL?= =?us-ascii?Q?dO2MBLaMKkL4LVCXd8k0IWEZYfx8ahcmaMXJCyOHP6X8/SIhDurz4OiZJ2Za?= =?us-ascii?Q?lHPwTgDMhfhB1nEXKitIXGXSIpLV3MfkdUZc1eijVa8klTMvtvAJI20zKli3?= =?us-ascii?Q?rliKSDlICBskZFvNUxgakfiMbDjNSYSkVNvJyW9h/bc5pLRx9NSCSYO/bM6j?= =?us-ascii?Q?UQ/ll+3uF5JuwkjRUbAokg18sHtrIByQwT2MBPar1vKI9oCitjGeZJifcseN?= =?us-ascii?Q?20NBVKYgtc/ILZYT2dvd52h9RZ6CzCLSWsHtIEfiAGuIIgzdkTti9gFy+x44?= =?us-ascii?Q?0LBDyoxxfkL+owySmopdubtapwe2wj6hwilTh6xUM58hngkb+tk0A3e0c/9K?= =?us-ascii?Q?mzMAm8vggitN6KWI6ObHq+tM//P7KpE8hFQqD2EDMezYDwn3BJ98i3LKB+V+?= =?us-ascii?Q?0AtSVh+wIHtmcVk1kdgPxr8/TUqf6wnbxMXlTQ0edXjEqB60JvHMILXpDn9e?= =?us-ascii?Q?zXkfIOyeg1oirUdZ5u4CcY8440hCFiA2u2UNAmmhjWTLh4p/bL5G0QVrI2Xm?= =?us-ascii?Q?KCHdHJ8YkvpdOs6jve4m0psbpr1VV6+fxSl/Mz8bc+2uXjkG5Ko6uc1Pmhhe?= =?us-ascii?Q?b3RbKu2xEr/APwORDFjWISM5Y0Suwo++PoaUb8zT?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: e8Mn6AIVnaLdt36GBIWltHaQHiS10r+bOfy5IIdenijVVbznedOUMRbNrrVCrWfWz2GB2mtmtIVhUNtI6+19tQkuTyVC/CfHLGp5C2+3zevu0ZxWwU8nwmwVHBvX7nL+KdJfp/zFY4CWLJkiF16KLU7+f7bz9DJyYQJajF709hF/ElM2k/JeB+FpUy12QIpqCXU+imvdVHSTKFA8Yhj8N6AGUFhaLnL1eSussSOUM8ZoR791GlF8yIi0dMNkbjvxyfXCsa4VfWHLSJ/pc9Vp9ACc3fQpON7pQUorol1LkWfposuTaR0FCAvd8k5MJVOP6Ca18ivYUD/fvDuZrMu4BC2gwQ4X3zBi/FEss3Iql66XxeP9oWpUNUMgIHaxnj9xlnyP4kchLbiwOjuEerqQl0WvIi73srhGDJOFkRq82CBTimFlic/5/QXULV9Y5kdLSBpNwXCJGbNi83ywDr2rlAbjYtXtU2yM1Gc8YYIHX/CFiRsC2X/LAY+x/MsWl2lY5GLDefWejpJGDW8JVWhS5s2lHl9JtRyJKNb5J3OT56l6cQ/v097Tl+ujtgOwht9YmDNOaFEOqWBrgpP8r5xb7xI0Aw4khfgWAaK9nILVr/EQC+PcWaj59j9uS90yQypTSWbCRQjTvUwpT664N/+WDAvHZ0TjhQHdxGSBodm5ssYNejF5ve/oibifvwA2VWR5fThgtp8WwVNChYAbsPwOTZr8IOrtt8lpFRNsZCNtj8it0Ykxv83WCNLHKrr9krprDWA/vZAV2aiBMesXreq4FXJkxLFeeegw3GmyuTsxbmwAwazluJjVkGmOMtktPMxBI0IYKnhaFLm3fHs8UfV6ew== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8dc0d272-1350-44ba-f387-08dbbad80dff X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2023 19:22:11.3236 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wPODA/g8pWLPbZ7jZFrr6D0qlsCn7k7zmjO+7xLALBERmEYjE+encvv6S5r3qKViAdX8WCOI2KT+JOhR7oflCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB5711 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-21_16,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309210165 X-Proofpoint-ORIG-GUID: vtFyxBwkn60wtIrFC97IrajaS5Y9UyTh X-Proofpoint-GUID: vtFyxBwkn60wtIrFC97IrajaS5Y9UyTh X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65680 Cc: "65680 <at> debbugs.gnu.org" <65680 <at> debbugs.gnu.org> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > > I still believe that not truncating strings is better than truncating > > them to the minute length of 50. In fact, why truncate strings at all > > in cl-prin1? They're not truncated in prin1, etc. >=20 > The main purpose of `prin1` is to print Sexp in a way that can be > read back. I.e. for machine-consumption. > The main purpose of `cl-prin1` OTOH is for human consumption. > For this reason it started truncating strings while `prin1` doesn't > bother doing so. Not to muddy the waters too much, but FWIW: `cl-prin1' is a far cry from an emulation of Common Lisp `prin1'. (And for Common Lisp `prin1' there is _no_ truncation. That is, nothing in the standard allows for truncation. But _implementations_ could provide an option that allows for truncation, AFAICS.) > > It doesn't. String lengths are a completely different kettle of fish > > from list lengths. >=20 > Not completely: they're all concerned with truncating the output so the > human gets to see what comes afterwards, and to a large extent their > optimal value for any given string/list/vector is probably one that > corresponds more or less to the same output string length. FWIW: Common Lisp treats strings very differently from arrays, vectors, and lists. It specifically does not let variable `*print-length*' apply to strings (and there is no other var that does so). > > To solve this problem properly, we need, as Eli has > > suggested, a separate variable called something like > > print-string-length, to be set independently of > > print-length (and print-level). >=20 > Sounds good. Yes, that would be reasonable.
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 18:34:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 14:34:29 2023 Received: from localhost ([127.0.0.1]:34795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjOVQ-0005Gh-OX for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 14:34:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qjOVM-0005GT-F1 for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 14:34:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qjOUn-0002VG-Bz; Thu, 21 Sep 2023 14:33:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XR4k5uapzwLimPOZlPDxKZYFLrSk0pDD8auHnV8pO2o=; b=WepTDJ+bon8L DSZHH6zhQIjMrq7opB6h1dvRHplfGz/UvBQputEjwRtpSmjd+3HZLIqPukM97dM8v6gf+dSb8x2FK HCKTVr3OiAK2Wd0iUVgAzrwM/fWjK2SaBGeNJJrDUtw+pKciv5YBMEfdhWtuqa6ZIC44GyLNy1Bpm M1yVrOjw9YaJu3cHCiGQ489C99qe+OjtS15pnYVXBZmrEzyTTX4LsbX/RrgrhdltQ3lsrgOuTdpfz 8/5MhPJrFKsH5TqkbyPfU6/soZT7BJdYbj/aOzVw+CQkMJp0BCxMngdxh09LdS9g5M6Gon5eit1lh NA93bL4ikuM2jHanSvRC+A==; Date: Thu, 21 Sep 2023 21:33:53 +0300 Message-Id: <83il838jfy.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Alan Mackenzie <acm@HIDDEN> In-Reply-To: <ZQx4bskZ7fWGOwRL@ACM> (message from Alan Mackenzie on Thu, 21 Sep 2023 17:07:58 +0000) Subject: Re: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 References: <ZPHyaErc3-n5Pa2h@ACM> <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> <ZQx4bskZ7fWGOwRL@ACM> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65680 Cc: acm@HIDDEN, 65680 <at> debbugs.gnu.org, monnier@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: acm@HIDDEN, 65680 <at> debbugs.gnu.org > Date: Thu, 21 Sep 2023 17:07:58 +0000 > From: Alan Mackenzie <acm@HIDDEN> > > > [ IOW, I'm not happy with commit > > 761f8901fffdb155cbcc7f3b5a2329161c2c1826. ] > > Well I did post about it to emacs-devel on Sunday and Monday, asking if > anybody had any objection. Nobody, not even you, responded. TTTT, 2 days is too short a time to assume no one has anything to say about a change. I had a busy day and just couldn't get to it, before I saw you have already installed it. > To solve this problem properly, we need, as Eli has suggested, a separate > variable called something like print-string-length, to be set > independently of print-length (and print-level). A sensible value for > this variable in printing backtraces might be, say, 500. 500 is too large a value, my vote is for 200 at most.
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 17:51:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 13:51:38 2023 Received: from localhost ([127.0.0.1]:34778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjNpx-000482-VC for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 13:51:38 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1qjNps-00047k-Op for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 13:51:36 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C3811801BE; Thu, 21 Sep 2023 13:51:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1695318675; bh=C5dDXdEdNFLTkx6trS1Fngc1qbKpBTu3wwwDfRWUiJw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=d0ahxttVzQQhloDXfyU0k0QGqKc5c1LHApDS8d1QLNoYYmyPCttICKBZSgq2XDNx5 GKhnWvmb3l6uXo8IJchP40Fy9m/IjSG2clcdFPdxizIpzID6tfJSFAWShJVl08rVM4 63HOWInDFG6Puy710HtoiY/fKaXyP8YFYU9+xoFxJtbgiAC8QfgYUs1tPAAaiFLs8l XSWV3rJga9vwVyBTf3yHzZvAxgKWJ9NVYCYuUVCv/auTLLdplltt1d+cI1PLBqcBun tTYu+CGQAlQYFgAYmOVzzEXJWm3KNjmOEi+8psf1nGrxyrv5cV2lOr+g9FdnynFkMC z8Okivbamufjg== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 40F0A8014C; Thu, 21 Sep 2023 13:51:15 -0400 (EDT) Received: from pastel (unknown [45.72.220.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1BAC2120255; Thu, 21 Sep 2023 13:51:15 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Alan Mackenzie <acm@HIDDEN> Subject: Re: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 In-Reply-To: <ZQx4bskZ7fWGOwRL@ACM> (Alan Mackenzie's message of "Thu, 21 Sep 2023 17:07:58 +0000") Message-ID: <jwvjzsjh1lr.fsf-monnier+emacs@HIDDEN> References: <ZPHyaErc3-n5Pa2h@ACM> <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> <ZQx4bskZ7fWGOwRL@ACM> Date: Thu, 21 Sep 2023 13:51:14 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.244 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65680 Cc: 65680 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >> > .. 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. > > There is clearly no human-sized bound on string lengths, so they can > indeed be very long. Most of the time they're not. But they are very > frequently longer than 50 characters. Agreed. >> [ IOW, I'm not happy with commit >> 761f8901fffdb155cbcc7f3b5a2329161c2c1826. ] > > Well I did post about it to emacs-devel on Sunday and Monday, asking if > anybody had any objection. Nobody, not even you, responded. I'm not on `emacs-devel` nowadays :-) > I still believe that not truncating strings is better than truncating > them to the minute length of 50. In fact, why truncate strings at all in > cl-prin1? They're not truncated in prin1, etc. The main purpose of `prin1` is to print Sexp in a way that can be read back. I.e. for machine-consumption. The main purpose of `cl-prin1` OTOH is for human consumption. For this reason it started truncating strings while `prin1` doesn't bother doing so. > The reason for truncating lists and vectors is to prevent infinite > printing when there's a circular list or vector, something which > cannot happen with a string. Not really, no. It's rather for things like keeping the length of backtrace lines under control. > If somebody doesn't want a string longer that 50 to get printed, then she > shouldn't call cl-prin1 with it. You're arguing against the wrong guy: I filed bug#34183 because I found the (current implementation of) string truncation annoying. That doesn't mean it's always annoying. > The mistake in Emacs before my patch was a category error: wrongly > believing that print-length applies to a string length too. That's bug#34183, indeed. > It doesn't. String lengths are a completely different kettle of fish > from list lengths. Not completely: they're all concerned with truncating the output so the human gets to see what comes afterwards, and to a large extent their optimal value for any given string/list/vector is probably one that corresponds more or less to the same output string length. > To solve this problem properly, we need, as Eli has suggested, a separate > variable called something like print-string-length, to be set > independently of print-length (and print-level). Sounds good. > A sensible value for this variable in printing backtraces might be, > say, 500. 500 is "damn long" for a line in a backtrace, IMO. If I need to see that much of the string, I won't mind having to click the "..." to reveal it. I'd vote for a default limit somewhere between "one or two lines of 80 columns". FWIW, after filing bug#34183 I hacked my local Emacs to use (* 8 print-length) for max string length (leading to 96 chars by default, IIRC), thinking I'd tweak it later based on experience. I never felt like tweaking it, tho, so it looks like it's a good approximation of my ideal choice. We could make its default value dynamically computed from `print-length`, so things like `cl-print-to-string-with-limit` don't need to be adjusted. Stefan
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 17:08:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 13:08:23 2023 Received: from localhost ([127.0.0.1]:34752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjNA6-0002rW-NP for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 13:08:23 -0400 Received: from mail.muc.de ([193.149.48.3]:16078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <acm@HIDDEN>) id 1qjNA2-0002rD-3u for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 13:08:21 -0400 Received: (qmail 9173 invoked by uid 3782); 21 Sep 2023 19:08:01 +0200 Received: from acm.muc.de (p4fe15e82.dip0.t-ipconnect.de [79.225.94.130]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 21 Sep 2023 19:08:00 +0200 Received: (qmail 11046 invoked by uid 1000); 21 Sep 2023 17:07:58 -0000 Date: Thu, 21 Sep 2023 17:07:58 +0000 To: Stefan Monnier <monnier@HIDDEN> Subject: Re: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 Message-ID: <ZQx4bskZ7fWGOwRL@ACM> References: <ZPHyaErc3-n5Pa2h@ACM> <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie <acm@HIDDEN> X-Primary-Address: acm@HIDDEN X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65680 Cc: acm@HIDDEN, 65680 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello, Stefan. On Thu, Sep 21, 2023 at 12:16:57 -0400, Stefan Monnier wrote: > 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. There is clearly no human-sized bound on string lengths, so they can indeed be very long. Most of the time they're not. But they are very frequently longer than 50 characters. > [ IOW, I'm not happy with commit > 761f8901fffdb155cbcc7f3b5a2329161c2c1826. ] Well I did post about it to emacs-devel on Sunday and Monday, asking if anybody had any objection. Nobody, not even you, responded. I still believe that not truncating strings is better than truncating them to the minute length of 50. In fact, why truncate strings at all in cl-prin1? They're not truncated in prin1, etc. The reason for truncating lists and vectors is to prevent infinite printing when there's a circular list or vector, something which cannot happen with a string. If somebody doesn't want a string longer that 50 to get printed, then she shouldn't call cl-prin1 with it. The mistake in Emacs before my patch was a category error: wrongly believing that print-length applies to a string length too. It doesn't. String lengths are a completely different kettle of fish from list lengths. To solve this problem properly, we need, as Eli has suggested, a separate variable called something like print-string-length, to be set independently of print-length (and print-level). A sensible value for this variable in printing backtraces might be, say, 500. > Stefan -- Alan Mackenzie (Nuremberg, Germany).
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 16:37:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 12:37:17 2023 Received: from localhost ([127.0.0.1]:34722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjMfx-0001zG-PE for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 12:37:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qjMfr-0001yu-R1 for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 12:37:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qjMfc-0004Wy-7D; Thu, 21 Sep 2023 12:36:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=E4HMwWYjZVRW6MRRaiZs2fNugyHv9vpAX1A1j86AUi8=; b=D4LL8U/NB/L+ s2FE2o2rkkm5Brtw2A1Slv8cZB5E3cWaY4WNUbn6/bZlvseq0NlRDz/SYiqRvwEMKJ1u4EqYuay9A qlRroeuhVNrCJDFGv7i+LIZn5JivvAUZ4tE6MmU4odjkfdVERXd85ZMl/V33smMdBCsxHxTBQ2mIT UGRIWC2LtKEfb4rK/+dG9zb9HFH7ZCvqdMVYKjTGZl7i9hLsJ02/pxS0yFgj9Ety2HhnZOpw4thbk whyBh8h4R56MNYC1EnqeCUD5T1nXPrQLys7Krm3PJ381D9oOxTdJCrr3TdWV2B8bv2/YMj4WPXeTw kUijbMZkggMqkn4bOuFkGg==; Date: Thu, 21 Sep 2023 19:36:58 +0300 Message-Id: <83lecz8out.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefan Monnier <monnier@HIDDEN> In-Reply-To: <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 References: <ZPHyaErc3-n5Pa2h@ACM> <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65680 Cc: acm@HIDDEN, 65680 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 65680 <at> debbugs.gnu.org > Date: Thu, 21 Sep 2023 12:16:57 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > > .. 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. ] Then how about if we reinstate the limit, but with a larger limit for strings, in a separate variable? Do you have a suggestion for the value of such a limit?
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680) by debbugs.gnu.org; 21 Sep 2023 16:17:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 12:17:23 2023 Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qjMMi-0001ST-VZ for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 12:17:23 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1qjMMc-0001S5-Sw for 65680 <at> debbugs.gnu.org; Thu, 21 Sep 2023 12:17:18 -0400 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== 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) 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) From: Stefan Monnier <monnier@HIDDEN> To: Alan Mackenzie <acm@HIDDEN> Subject: Re: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 In-Reply-To: <ZPHyaErc3-n5Pa2h@ACM> (Alan Mackenzie's message of "Fri, 1 Sep 2023 14:17:12 +0000") Message-ID: <jwvpm2bh5bi.fsf-monnier+emacs@HIDDEN> References: <ZPHyaErc3-n5Pa2h@ACM> Date: Thu, 21 Sep 2023 12:16:57 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.417 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65680 Cc: 65680 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) 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
bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.Received: (at 65680-done) by debbugs.gnu.org; 19 Sep 2023 10:32:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 19 06:32:39 2023 Received: from localhost ([127.0.0.1]:55420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qiY23-0007ek-1t for submit <at> debbugs.gnu.org; Tue, 19 Sep 2023 06:32:39 -0400 Received: from mail.muc.de ([193.149.48.3]:26881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <acm@HIDDEN>) id 1qiY20-0007eR-AR for 65680-done <at> debbugs.gnu.org; Tue, 19 Sep 2023 06:32:37 -0400 Received: (qmail 95617 invoked by uid 3782); 19 Sep 2023 12:32:21 +0200 Received: from acm.muc.de (p4fe157a7.dip0.t-ipconnect.de [79.225.87.167]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 19 Sep 2023 12:32:20 +0200 Received: (qmail 19729 invoked by uid 1000); 19 Sep 2023 10:32:19 -0000 Date: Tue, 19 Sep 2023 10:32:19 +0000 To: 65680-done <at> debbugs.gnu.org Subject: Re: bug#65680: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 Message-ID: <ZQl4sy5khmGn3TzO@ACM> References: <ZPHyaErc3-n5Pa2h@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <ZPHyaErc3-n5Pa2h@ACM> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie <acm@HIDDEN> X-Primary-Address: acm@HIDDEN X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65680-done Cc: acm@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) The bug has been fixed. On Fri, Sep 01, 2023 at 14:17:12 +0000, Alan Mackenzie 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. > cl-print-to-string-with-limit is used by backtrace--print-to-string with > a LIMIT of 5000 to print the first line of a debug buffer. The error > message gets rudely truncated at 50 characters with an ellipsis, e.g.: > Debugger entered--Lisp error: (error "Invalid call to `edebug-before'. Is your debug sp...") > .. We shouldn't be doing this. It is irritating to the user. Correct > would be to print: > Debugger entered--Lisp error: (error "Invalid call to `edebug-before'. Is your debug spec correct?") > .. I propose fixing this bug by removing these limits on print-length and > print-level in cl-print-to-string-with-limit. -- Alan Mackenzie (Nuremberg, Germany).
Alan Mackenzie <acm@HIDDEN>
:Alan Mackenzie <acm@HIDDEN>
:Received: (at submit) by debbugs.gnu.org; 1 Sep 2023 14:17:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 01 10:17:50 2023 Received: from localhost ([127.0.0.1]:33562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qc4y6-0007KQ-KD for submit <at> debbugs.gnu.org; Fri, 01 Sep 2023 10:17:50 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <acm@HIDDEN>) id 1qc4y5-0007KC-0S for submit <at> debbugs.gnu.org; Fri, 01 Sep 2023 10:17:49 -0400 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 <acm@HIDDEN>) id 1qc4xq-0003CC-2K for bug-gnu-emacs@HIDDEN; Fri, 01 Sep 2023 10:17:34 -0400 Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <acm@HIDDEN>) id 1qc4xk-0001b3-7Q for bug-gnu-emacs@HIDDEN; Fri, 01 Sep 2023 10:17:33 -0400 Received: (qmail 69222 invoked by uid 3782); 1 Sep 2023 16:17:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=muc.de; i=@muc.de; q=dns/txt; s=default; t=1693577834; h=date : to : subject : message-id : mime-version : content-type : from : from; bh=t/le7ogOLLMzUKAurhdokvGsBgYCnyNiEq+YjK/Sqq0=; b=oG5mZktkpqC413gVXrau4GbplkX5bwAlmEBO7BePLUcIiibz1SV0OVTM8xXaveoNgmyl1 WAp7YR4b7GKK/tjuzjzlmYRbWah4OKouj1A0f9XTJ8hvM1j4DEp41dMmYcpyMMwQYbubewE 0ihX8Nv083cmumMCq5q+TyeofLdq5Taq7JRWxnw/XsWwnsGYIvYASeWaLQNH7Ka8CXvOK5Q ZOogSXbFKbn1ZW7p9ZWhmDmNCDHXqqDroq6G836O0ayemriEO2rVrTHaSCVVFLF/OB+9Xc5 dkkxvsh5xi/zxjnrZjFbFPyZiZwCVM/2pYRTd/aJaKe+uTpdmVMFY5O2hzbA== Received: from acm.muc.de (pd953a051.dip0.t-ipconnect.de [217.83.160.81]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 01 Sep 2023 16:17:12 +0200 Received: (qmail 18297 invoked by uid 1000); 1 Sep 2023 14:17:12 -0000 Date: Fri, 1 Sep 2023 14:17:12 +0000 To: bug-gnu-emacs@HIDDEN Subject: cl-print-to-string-with-limit erroneously imposes a maximum print-length of 50 Message-ID: <ZPHyaErc3-n5Pa2h@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie <acm@HIDDEN> X-Primary-Address: acm@HIDDEN Received-SPF: pass client-ip=193.149.48.3; envelope-from=acm@HIDDEN; helo=mail.muc.de X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.1 (/) 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. cl-print-to-string-with-limit is used by backtrace--print-to-string with a LIMIT of 5000 to print the first line of a debug buffer. The error message gets rudely truncated at 50 characters with an ellipsis, e.g.: Debugger entered--Lisp error: (error "Invalid call to `edebug-before'. Is your debug sp...") .. We shouldn't be doing this. It is irritating to the user. Correct would be to print: Debugger entered--Lisp error: (error "Invalid call to `edebug-before'. Is your debug spec correct?") .. I propose fixing this bug by removing these limits on print-length and print-level in cl-print-to-string-with-limit. -- Alan Mackenzie (Nuremberg, Germany).
Alan Mackenzie <acm@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#65680
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.