all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Catonano <catonano@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: comint: pretty printing
Date: Tue, 6 Jan 2015 13:01:26 +0100	[thread overview]
Message-ID: <CAJ98PDwwjoF_rqJN3mqedv2tL2kdGNcLi+cJCYvA8t5jCnWoFg@mail.gmail.com> (raw)

Probably a naive question, I apologize, but I could use some help

I would like inf-clojure to pretty print the output from the inferior
Clojure process

Now, this is what happens in an Elisp prompt
ELISP> '(:a :b (:c :d (:e) :f :g) :h :i)
(:a :b
    (:c :d
    (:e)
    :f :g)
    :h :i)

And this is what happens in my clojurescript prompt

boot.user=> (def my-list '(:a :b (:c :d (:e) :f :g) :h :i))
(:a :b (:c :d (:e) :f :g) :h :i)

It's Clojure code but there are no square brackets or curly braces. It
could be an Elisp list.

If I try to set

(setq comint-preoutput-filter-function '(pp))

and then

boot.user=> '(:a :b (:c :d) :e :f)
(:a :b (:c :d) :e :f)

no pretty printing.

Emacs 24.4.1

inf-clojure installed with el-get from its master branch on github


                 reply	other threads:[~2015-01-06 12:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAJ98PDwwjoF_rqJN3mqedv2tL2kdGNcLi+cJCYvA8t5jCnWoFg@mail.gmail.com \
    --to=catonano@gmail.com \
    --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.
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.