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#63861: [PATCH] pp.el: New "pretty printing" code Date: Fri, 09 Jun 2023 11:26:16 -0400 Message-ID: References: <83fs799jmi.fsf@gnu.org> <871qirdi3a.fsf@gmail.com> <87cz25b9rw.fsf@gmail.com> <871qikvfj8.fsf@localhost> 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="32570"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 63861@debbugs.gnu.org, Visuwesh To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 09 17:27:26 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 1q7e1N-0008Cq-Ck for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 17:27:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7e13-0002XR-4L; Fri, 09 Jun 2023 11:27:05 -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 1q7e11-0002WS-2Q for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 11:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7e10-0007dS-Qa for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 11:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7e10-0005QL-7U for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 11:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jun 2023 15:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63861 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63861-submit@debbugs.gnu.org id=B63861.168632438620790 (code B ref 63861); Fri, 09 Jun 2023 15:27:02 +0000 Original-Received: (at 63861) by debbugs.gnu.org; 9 Jun 2023 15:26:26 +0000 Original-Received: from localhost ([127.0.0.1]:60129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7e0Q-0005PG-6A for submit@debbugs.gnu.org; Fri, 09 Jun 2023 11:26:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:23922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7e0O-0005Oy-Kn for 63861@debbugs.gnu.org; Fri, 09 Jun 2023 11:26:25 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5AC124428FD; Fri, 9 Jun 2023 11:26:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 20FC84428F3; Fri, 9 Jun 2023 11:26:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1686324378; bh=eboyan05Pgx+u/6iiCgrksFBXF+3xQZw/zHY36kblWc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jqQYjSZ12Jm00pwyG5BXTRQzdwGWstVBowrwI3rNCs721HqJCPVdET0sSmTOylfoy NcLdc74SMkv7j83Xj2WAeBm8ItqwoMPFyyVYxFZ3AOSqPjDeqpRAoCvGINj/MFMVIc mc16zjS0RDtb87FlENnGLP/JNLnSPJ0xv7t7dESI1NQWBDUik1OBHBhWk4I94Y/zHL sOOkTWfoKf0nXAIi/8SWVlb+q5E7lyy+pVPO6r9TbyQG3iYX0Ce1UwPCvLYM4M2TL5 dTV4K0AorjpgKXPY7j4dKfKS4jAj4PisqH/MPmQ/JIeEc73QR2lUk0u4zO/R70k+0V XqP3N7BM1czuQ== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EDFC1120513; Fri, 9 Jun 2023 11:26:17 -0400 (EDT) In-Reply-To: <871qikvfj8.fsf@localhost> (Ihor Radchenko's message of "Fri, 09 Jun 2023 15:09:15 +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:263171 Archived-At: >> I haven't seen "really bizarre results" with `pp-region` yet, but >> I wouldn't be surprised if that can happen: I've been playing with >> various pretty-printing alternatives over the years and they all seem to >> suffer from weird behaviors occasionally, except for those that insert >> too many line breaks. > If algorithms that insert "too many" line breaks can be reasonably fast, > can they be executed first followed by merging the excessive lines back? Speed is definitely an issue in general, but the "behavior" I was alluding to above was not the performance but the end result (and I think the same was true for Visuwesh's comment). Stefan