From c8153ea291661ff64f2a8985bf6694d8661e3f2b Mon Sep 17 00:00:00 2001 From: Daniel Bergey Date: Sun, 7 Feb 2016 08:42:08 -0500 Subject: [PATCH] use `haskell-interactive-switch` in process-load This sets a variable with the source buffer so we can switch back. This is pretty bizzare, though. Both before and after this commit, `haskell-session-interactive-buffer` switches to the buffer if it's newly created, but if the buffer already exists, just returns the buffer without visiting. This function shouldn't switch, and callers should decide if they want to switch. closes #955 --- haskell-interactive-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell-interactive-mode.el b/haskell-interactive-mode.el index c5f281853..e9e7f80e1 100644 --- a/haskell-interactive-mode.el +++ b/haskell-interactive-mode.el @@ -519,7 +519,7 @@ FILE-NAME only." (with-current-buffer buffer (haskell-interactive-mode) (haskell-session-assign s)) - (switch-to-buffer-other-window buffer) + (haskell-interactive-switch) buffer)))) (defun haskell-process-cabal-live (state buffer)