On Tue, 2012-05-15 at 00:49 +0530, Faheem Mitha wrote: [...]
(define-key slime-mode-map (kbd "C-c s") 'slime-send-dwim) (define-key slime-mode-map (kbd "C-c M-s") '(lambda () (interactive) (slime-send-dwim 1)))
Nice! That works for me. However, may I clarify/confirm usage?
If I put the cursor on the closing parenthesis of the expression, then the first command just copies it to the REPL, the second copies and then evaluates it. Is this correct usage?
The advantage of using these as opposed to a simple eval-expression is that a trace of it remains in the REPL buffer, useful if you're using cl:dribble or something similar
Well, like I said earlier, in practice, you may have to modify the expression before you can run it.
Indeed. If you need to modify it, use the first command, otherwise use the second