[slime-devel] slime-compile-and-load-buffer

Darren Hoo darren.hoo at gmail.com
Thu Jan 27 22:51:27 UTC 2011


I've got this trivial function

(defun slime-compile-and-load-buffer ()
  "Compile the current buffer"
  (slime-compile-region (point-min) (point-max)))

Personally I rebind C-c C-k to slime-compile-and-load-buffer 
and C-c C-l to slime-eval-buffer. These have some benefits 
over slime-compile-and-load-file and slime-load-file
Thanks to the great mechanism of slime-compile-string.

1. when working with swank running remotely, it is no longer 
   neccessary to setup pathname translations.

2. compiling lisp files localy or remotely won't clutter local 
   working directory with a lot fasl files.


More information about the slime-devel mailing list