[slime-devel] macro expansion goes into buffer

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, 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? thnx. evrim. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFuLvYwzkKLGtRuHsRAnVKAKCEqtf4OTq95G0IbWY0Lutqa6VGvwCg4PIy ePXZSXhzmDd2zgtvj46LSG8= =rAa3 -----END PGP SIGNATURE-----

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
participants (3)
-
Bill Clementson
-
Evrim ULU
-
Marco Baringer