From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: ndame Newsgroups: gmane.emacs.devel Subject: Re: Shouldn't emacs print long lists with newlines? Date: Wed, 7 Aug 2019 14:43:03 +0200 (CEST) Message-ID: References: <87muglxxns.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8838_1483698141.1565181755397" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="267341"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "emacs-devel@gnu.org" To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 07 14:43:21 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hvLHk-0017Rb-CL for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2019 14:43:20 +0200 Original-Received: from localhost ([::1]:40606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvLHj-0005u0-DV for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2019 08:43:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47198) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvLHe-0005th-Og for emacs-devel@gnu.org; Wed, 07 Aug 2019 08:43:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvLHd-0001Si-OO for emacs-devel@gnu.org; Wed, 07 Aug 2019 08:43:14 -0400 Original-Received: from fmfe09.onbox.hu ([46.107.16.202]:26731 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvLHd-0001KT-6n for emacs-devel@gnu.org; Wed, 07 Aug 2019 08:43:13 -0400 X-fm-smtp-source: yes Original-Received: from localhost (localhost [188.143.64.145]) by web-out.onbox.hu (Postfix) with SMTP id 463WPg6WB8zjw; Wed, 7 Aug 2019 14:43:03 +0200 (CEST) In-Reply-To: <87muglxxns.fsf@web.de> X-AccountId: 57978162 X-Originating-Ip: 188.143.64.145 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudduvddgheegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvkfgjfhfugggtihffsegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedukeekrddugeefrdeigedrudegheenucfrrghrrghmpehhvghloheppdhinhgvthepudekkedrudegfedrieegrddugeehpdhmrghilhhfrhhomhepvghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuhdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvgenucevlhhushhtvghrufhiiigvpedt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/relaxed; t=1565181784; s=20181004; d=freemail.hu; h=From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Date; l=1850; bh=5EVaRj9ggnoyeWGViFSzBzr31BI4fnAw92AoSX4Mjck=; b=XB3kkBXPJ4m8btaunpBNAIBZaNgF1c0NF+quXHignAmTd/KErpaglLDYxPYJEyyd TGlBTQmQB25a5n78m0XhggQj891FcKVouVUQyExzKmu7jEnkLIIPpMO8ZQD70vt/Kvn 5xxD+qndKmB1IgwYkdFe7FEXHCHYjzVIHyYr50t2JrtH98HLIOtQgzwVJhAVSehZom6 6W4GPB4DDe4pkNUnP4TKbG44kWIpgYrc5No8AhZ6bDLB4jgv3ZVOYl/MUg7i3UAhJfe VDAbcp6V46rDXnm6YgukzbP3hcwnoXn93q8dZkVzTFtVI6pSI325QceXCP6UvtGmd3k 1ie3D20ROA== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 46.107.16.202 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239221 Archived-At: ------=_Part_8838_1483698141.1565181755397 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > If it should depends on the use case. =C2=A0It should be able to do so wh= en > the user wants that - especially pretty printing (pp). =C2=A0So far this = has > been discussed here and there, but so far nobody has implemented it. Long lists as output is pretty hard to read when the list is on a single line and it is displayed on multiple screen lines. So those parts of emacs which print lists for human consumption (debug, printing expressions resulting in long lists, etc.) should benefit from some heuristics to display the list as one item per line when it's better. E.g. if the disaplayed list is longer than a screen line then it could display an item per line. Maybe depending on a user option. ------=_Part_8838_1483698141.1565181755397 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > If it should depends on the use case.  It should be able to do so when
> the user wants that - especially pretty printing (pp).  So far this has
> been discussed here and there, but so far nobody has implemented it.


Long lists as output is pretty hard to read when the list is on a
single line and it is displayed on multiple screen lines.

So those parts of emacs which print lists for human consumption
(debug, printing expressions resulting in long lists, etc.) should
benefit from some heuristics to display the list as one item per line
when it's better.

E.g. if the disaplayed list is longer than a screen line then it could
display an item per line. Maybe depending on a user option. ------=_Part_8838_1483698141.1565181755397--