
25 Jan
2007
25 Jan
'07
3:54 p.m.
Evrim ULU <evrim@core.gen.tr> writes:
I'm looking for a binding which expands the current statement (a macro) and append the expansion to the current buffer. Do slime has something like this?
[totatly untested] (defun slime-macroexpand-in-place (&optional string) (interactive) (unless string (setf string (slime-sexp-at-point-or-error))) (lexical-let ((package (slime-current-package))) (insert (slime-eval `(swank:swank-macroexpand-1 ,string)))))
thnx. evrim.
-- -Marco Ring the bells that still can ring. Forget your perfect offering. There is a crack in everything. That's how the light gets in. -Leonard Cohen