emacs convenience

Luke Gorrie luke@bluetail.com
Wed Apr 19 21:05:00 GMT 2000


Here's a little bit of elisp code to use instead of scheme-send-region
which turns newlines into spaces, so you don't get an *scheme* buffer
full of kawa prompts:

;; Replacement for scheme-send-region. strips out newlines
(defun scheme-send-region-no-newlines (start end)
  "Send the current region, with newlines converted to spaces, to the
inferior Scheme process"
  (interactive "r")
  (comint-send-string
   (scheme-proc)
   (string-replace-match "\n" (buffer-substring start end) " " t t))
  (comint-send-string (scheme-proc) "\n"))



More information about the Kawa mailing list