From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Pretty-printing lists (adding newlines and indent) Date: Thu, 31 Dec 2009 17:43:55 +0200 Organization: A noiseless patient Spider Message-ID: <874on75etg.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262277662 18880 80.91.229.12 (31 Dec 2009 16:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 16:41:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 31 17:40:55 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQO51-0002SA-Hr for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 17:40:55 +0100 Original-Received: from localhost ([127.0.0.1]:38316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQO51-0003A2-WC for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 11:40:56 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Injection-Date: Thu, 31 Dec 2009 15:43:56 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="sAJt0m873Ahk3JySEQW1zg"; logging-data="889"; mail-complaints-to="abuse@eternal-september.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Auth-Sender: U2FsdGVkX18JhlPqqzX/nExW5LI5idz7lGKS1zjSGBTqTV0EYLGGrg== Cancel-Lock: sha1:6IcHHYJdk0eUDRBVczS+mKirD8I= sha1:+FN3Fz8TuJmDkDrPwY9NkoZ8NyI= Original-Xref: news.stanford.edu gnu.emacs.help:175905 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70982 Archived-At: 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.