This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

macroexpand-1 and pretty-printing in SLIME

3 posts · 7119 views

Hi there. I can't seem to get pretty-printing to work in slime or "regular" lisp. I try just doing (macroepand-1 '(macro etc.)) at the REPL, as well as C-c RET at an expression I want to see expanded, but it always prints the macro expansion on a single line. I checked *print-pretty* and it's set to t. Anyone know what else I need to change to get macros to print out more legibly?

I'm using SBCL and emacs 22.2.1 with slime-2009-11-05, if they make any difference...

Re: macroexpand-1 and pretty-printing in SLIME

JohnGraham wrote:I'm using SBCL and emacs 22.2.1 with slime-2009-11-05, if they make any difference...
Well, that version is obviously a year old, so perhaps updating to a current version would help. On my system pretty printing just happens. I initialize slime with (possibly redundant):
(slime-setup '(slime-fancy slime-autodoc slime-asdf slime-banner slime-indentation))

Re: macroexpand-1 and pretty-printing in SLIME

Ramarren wrote: I initialize slime with (possibly redundant):
(slime-setup '(slime-fancy slime-autodoc slime-asdf slime-banner slime-indentation))
That seems to have done the trick - I was just using (slime-setup). Much nicer now. Cheers!