unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ndame <emacsuser@freemail.hu>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Shouldn't emacs print long lists with newlines?
Date: Wed,  7 Aug 2019 14:43:03 +0200 (CEST)	[thread overview]
Message-ID: <AxwXtg.lQvOJJhDMSSE.YSJLQYKaDlo5IKvB8KnY@freemail.hu> (raw)
In-Reply-To: <87muglxxns.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

> 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.

[-- Attachment #2: Type: text/html, Size: 805 bytes --]

  parent reply	other threads:[~2019-08-07 12:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-05 20:05 Shouldn't emacs print long lists with newlines? ndame
2019-08-07  7:05 ` Michael Heerdegen
2019-08-07 10:51   ` Stefan Monnier
2019-08-07 12:04     ` martin rudalics
2019-08-28 17:23       ` Stefan Monnier
2019-08-29  7:46         ` martin rudalics
2019-08-07 12:43   ` ndame [this message]
2019-08-07 14:28     ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AxwXtg.lQvOJJhDMSSE.YSJLQYKaDlo5IKvB8KnY@freemail.hu \
    --to=emacsuser@freemail.hu \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).