On Sun, 2009-12-20 at 11:16 -0800, Derick Eddington wrote:

> I have something similar and a little more sophisticated in my 
> (xitomatl debug) library.

Thanks for the heads up about this. I'm using it now; very handy.

When I'm debugging stuff, I'm often trying out different places to put
in calls to 'dprint'. As I mentioned, it would be nice to just point at
an expression, hit a key in the editor, and have that expression
wrapped. So something like this;

(defun scheme-dprint-wrap ()
  (interactive)
  (insert "(dprint ")
  (forward-sexp)
  (insert ")")
  (backward-sexp))

And something to unwrap would be good too.

If anyone has a better version of 'scheme-dprint-wrap', and a good idea
for 'scheme-dprint-unwrap', lemme know.

Ed

Reply via email to