On Mon, 14 May 2012, Dave Cooper wrote:
Hi Faheem,
With the cursor on the _opening_ paren of an s-expression, you can do
C-M-<space>
to select the S-expression, then
M-w
to copy it.
Then go over to the repl (I bind a personal shortcut of C-x & for this), then
C-y
to "yank" (paste) the expression to the repl.
I'm not sure about automatically switching to the repl and pasting in one go, but I'm sure that would be a few lines of emacs lisp...
And a quick way to get the cursor to the opening paren of an s-expression is
C-M-b
Hi Dave,
Wow, that was a fast reply. Thanks for the helpful tips. I tried them, and they work.
Yes, I'd like to be able to do it in one shot, but I don't know any Emacs Lisp. I wonder how different Emacs Lisp is from Common Lisp.
Regards, Faheem