[slime-devel] Re: slime-macroexpand-in-place

Marco Baringer mb at bese.it
Sat Feb 25 13:55:11 UTC 2006


Nikodemus Siivola wrote:
> Marco Baringer <mb at bese.it> writes:
> 
>>   the attached patch provides a function, slmie-macroexpand-in-place,
>> which does exactly what slmie-macroexpand-1 does but replaces the text
>> of the form with its expansion. i've found this very usefull in a *SLME
>> Macroexpansion* buffer and i plan on commiting it. however i don't know
>> what keys to bind it to.
> 
> Prefix argument to slime-macroexpand?
> 
> So that C-c RET is slime-macroexpand, and
>     C-u C-c RET is the new thing?

my plan, which may be a bit drastic, was to not bind these in slime-mode
and replace the bindings of slime-macroexand-(1|all) with the new things
in the slime-macroexpansion mode.

i'm guesing that if you're in a lisp buffer and you macroexpand you
don't ever want your code replaced with the expansion, and if you're
already in a macroexpansion buffer it's more helpfull to see the
expansion within the context of the outer macro. though this changing of
keybindings may be really counter-intuitive.

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen




More information about the slime-devel mailing list