From: Michael Heerdegen <michael_heerdegen@web.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 11934@debbugs.gnu.org
Subject: bug#11934: 24.1; provide variable for pp.el to control max display width
Date: Fri, 29 Apr 2016 16:14:56 +0200 [thread overview]
Message-ID: <87k2jg4i3j.fsf@web.de> (raw)
In-Reply-To: <87bn4tafw8.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 28 Apr 2016 17:53:43 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I agree. What pp does now with simple lists isn't optimal.
AFAICT pp.el could be extended easily for handling this problem.
pp is currently very simple - see `pp-to-string'. It does just `prin1'
(which does most of the work already) the object into a temp buffer.
Then it does some simple cleanups: `pp-buffer'. That would be the
function to extend (Drew, wanne give it a try?).
But of course handling this problem is not trivial: we can't distinguish
"simple lists" from code, and what might look good for the first might
look weird for a macro call with a special lisp-indent-function value
(e.g. imagine a `defun' call with a line break inserted just after
"defun").
Another challenge is what to do if we have already nearly exhausted the
width limit.
Michael.
next prev parent reply other threads:[~2016-04-29 14:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-13 14:48 bug#11934: 24.1; provide variable for pp.el to control max display width Drew Adams
2016-04-28 15:53 ` Lars Ingebrigtsen
2016-04-29 14:14 ` Michael Heerdegen [this message]
2016-04-29 14:24 ` Lars Ingebrigtsen
2016-04-29 17:47 ` Drew Adams
2016-04-29 17:44 ` Drew Adams
2016-04-29 19:26 ` Michael Heerdegen
2016-04-29 19:37 ` Drew Adams
2021-11-05 14:27 ` Lars Ingebrigtsen
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=87k2jg4i3j.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=11934@debbugs.gnu.org \
--cc=larsi@gnus.org \
/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).