summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-09-07 01:24:22 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-09-07 01:24:22 +0200
commitdf93d3f4a298f29a43c754f5ef9e4dce3b4e28fd (patch)
tree93c112619a6de1aa538a10b89ec6c2fd717459fa
parent04723be32587f879af6beb053042fbe1482f8944 (diff)
downloadgeiser-df93d3f4a298f29a43c754f5ef9e4dce3b4e28fd.tar.gz
geiser-df93d3f4a298f29a43c754f5ef9e4dce3b4e28fd.tar.bz2
Bug fix: run-geiser and friends now always create a new REPL.
-rw-r--r--elisp/geiser-repl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 4ea1bb7..b75fe78 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -124,7 +124,9 @@ implementation name gets appended to it."
(unless (and (eq major-mode 'geiser-repl-mode)
(not (get-buffer-process (current-buffer))))
(let* ((old (geiser-repl--repl/impl impl geiser-repl--closed-repls))
- (old (and (buffer-live-p old) old)))
+ (old (and (buffer-live-p old)
+ (not (get-buffer-process old))
+ old)))
(pop-to-buffer
(or old
(generate-new-buffer (format "* %s *"