tpapp / julia-repl

Run an inferior Julia REPL in a terminal inside Emacs
Other
170 stars 35 forks source link

julia-repl-send-buffer prints latest executed expression #65

Closed mattuntergassmair closed 5 years ago

mattuntergassmair commented 5 years ago

Executing julia-repl-send-buffer (via C-c C-b) runs "include(file)" which returns the last evaluated expression (see docs: https://docs.julialang.org/en/v1/base/base/#Base.include) - in many cases, this clutters the REPL. Would it not be better to run "include(file);" instead, suppressing the output with a semicolon?

Replicating the issue (Emacs 26.2, Julia 1.2.0, latest julia-repl): Save the following text in a julia buffer

a = "Hello World"
b = "foo";

C-c C-b to execute the buffer prints "foo" to the REPL (expected would be no output)

tpapp commented 5 years ago

Thanks for the suggestion. It definitely makes sense, I will implement it #66 and will experiment with it for a while, then possibly merge.