From: Teemu Likonen <tlikonen@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: Pretty-printing lists (adding newlines and indent)
Date: Thu, 31 Dec 2009 17:43:55 +0200 [thread overview]
Message-ID: <874on75etg.fsf@iki.fi> (raw)
Is there an easy way to pretty-print lists in Emacs Lisp? I mean adding
newlines and indents like in the inferior-emacs-lisp-mode (M-x ielm):
ELISP> '((a1 a2) (b1 (1 2 3 4 5)) (c1 c2))
((a1 a2)
(b1
(1 2 3 4 5))
(c1 c2))
I have a potentially big multi-level hierarchical list data which I'd
like to PRIN1 to a buffer. Having the whole list as a single line is
ugly and unreadable.
next reply other threads:[~2009-12-31 15:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 15:43 Teemu Likonen [this message]
2009-12-31 16:25 ` Pretty-printing lists (adding newlines and indent) Teemu Likonen
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=874on75etg.fsf@iki.fi \
--to=tlikonen@iki.fi \
--cc=help-gnu-emacs@gnu.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.
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).