From: Michael Heerdegen <michael_heerdegen@web.de>
To: ndame <emacsuser@freemail.hu>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Shouldn't emacs print long lists with newlines?
Date: Wed, 07 Aug 2019 16:28:47 +0200 [thread overview]
Message-ID: <87v9v9can4.fsf@web.de> (raw)
In-Reply-To: <AxwXtg.lQvOJJhDMSSE.YSJLQYKaDlo5IKvB8KnY@freemail.hu> (ndame's message of "Wed, 7 Aug 2019 14:43:03 +0200 (CEST)")
ndame <emacsuser@freemail.hu> writes:
> 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.
A good heuristic is not easy to find:
- When list elements are small (e.g. small integers), one item per line
is annoying because the list fills the whole screen although it would
fit in three lines or so.
- Code is sometimes pretty printed. Adding newlines at bad places makes
the result look quite strange, e.g.
(defun
()
...)
- What if the expression is deeply nested (like code) and subexpressions
already start near fill-column?
- Not everything that doesn't fit into one line is a list. Should we
handle other objects too?
Michael.
prev parent reply other threads:[~2019-08-07 14:28 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
2019-08-07 14:28 ` Michael Heerdegen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9v9can4.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.org \
--cc=emacsuser@freemail.hu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.