summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-12 00:04:26 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-12 00:04:26 +0200
commit246175eadf22a2ab7121be68d37d01f320ddb44a (patch)
tree38675918051739165919cb6bf000ab2240ae60a3
parent80028aa5e49cf897e371bf030eea399d14771e24 (diff)
downloadgeiser-guile-246175eadf22a2ab7121be68d37d01f320ddb44a.tar.gz
geiser-guile-246175eadf22a2ab7121be68d37d01f320ddb44a.tar.bz2
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.
-rw-r--r--elisp/geiser-mode.el2
1 files changed, 1 insertions, 1 deletions
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)."