From 24ea5bb9d9859f819aa404cb99a2d7cf2d482c8b Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 12 Apr 2013 00:04:26 +0200 Subject: Hide auto-started REPL I'm not convinced that this is the right thing, and the effect is a bit ugly (we use save-window-excursion), but maybe this is the correct thing to do for users that want auto-start. --- elisp/geiser-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elisp') diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el index b6d083a..b66f4a2 100644 --- a/elisp/geiser-mode.el +++ b/elisp/geiser-mode.el @@ -268,7 +268,7 @@ interacting with the Geiser REPL is at your disposal. (when (and geiser-mode geiser-mode-start-repl-p (not (geiser-repl--connection*))) - (save-current-buffer (switch-to-geiser)))) + (save-window-excursion (run-geiser geiser-impl--implementation)))) (defun turn-on-geiser-mode () "Enable `geiser-mode' (in a Scheme buffer)." -- cgit v1.2.3