julia-repl icon indicating copy to clipboard operation
julia-repl copied to clipboard

Send region via include

Open nbrantut opened this issue 6 years ago • 1 comments

This is an attempt at solving #18. I am new to elisp so I hope it is not too badly written; but it works. I made the function julia-repl-send-region-through-tmp-file with two optional arguments with region start and end, so it can be used programmatically if needed.

Let me know what you think. (again the code might probably be simplified, I am not used to elisp).

nbrantut avatar Jun 05 '19 14:06 nbrantut

Thanks for the PR. My problem with this approach is that

  1. if the tmp file is not deleted (which seems to be the case), the directory is cluttered with these things,

  2. if the tmp file would be deleted, then the code location for the methods defined there becomes invalid, as the file no longer exists.

Instead, I would recommend just putting things in a module and using Revise.jl, or possibly using includet once #64 is finalized.

tpapp avatar Aug 25 '19 05:08 tpapp