I'm not sure what the current coffee-send-region function is based off of; it may be an old version of coffeescript which parsed repl input differently. Either way, it fails to handle multiline input properly. This change is based off of looking over the most recent version of repl.coffee, which replaces \uFF00 with newlines to allow multiline input. After playing around with it a bit, this seems to resolve the problem. I'm not sure why the original function was made the way it was, so I may be missing something, but this seems to work.
Unfortunately, it still echoes the input and output into the *CoffeeREPL* buffer, which can be annoying for large files. I'm working on a way to avoid that.
I'm not sure what the current
coffee-send-region
function is based off of; it may be an old version of coffeescript which parsed repl input differently. Either way, it fails to handle multiline input properly. This change is based off of looking over the most recent version of repl.coffee, which replaces\uFF00
with newlines to allow multiline input. After playing around with it a bit, this seems to resolve the problem. I'm not sure why the original function was made the way it was, so I may be missing something, but this seems to work.Unfortunately, it still echoes the input and output into the
*CoffeeREPL*
buffer, which can be annoying for large files. I'm working on a way to avoid that.