tpapp / julia-repl

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

Calling julia-repl-send-region-or-line splits window #86

Closed david-vicente closed 4 years ago

david-vicente commented 4 years ago

Consider the setting: 1) Having a julia-mode buffer open in a frame while editing a file. 2) Having a Julia REPL (term-mode) buffer open in a separate frame. 3) While the cursor is in the julia-mode buffer, invoke C-c C-c, (julia-repl-send-region-or-line)

This command splits the window in the first frame (split-window-below) which is unnecessary since I have a dedicated frame for the REPL.

Is there a way to stop this?

david-vicente commented 4 years ago

I just looked at the code and the issue is in line 507 of julia-repl.el. After removing the line (display-buffer inferior-buffer) and evaluating the function it stopped happening. Maybe we could add some sort of condition here?

david-vicente commented 4 years ago

Nevermind, just found out about (setq display-buffer-reuse-frames t)