summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-03-07 21:39:13 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-03-07 21:39:13 +0100
commitef17947ca8f80e67fe542b8a563b6297f3668cbe (patch)
tree845f7e0c36cc61e8227bcb46bf2400fe8d9473e4 /elisp/geiser-repl.el
parent65babf6e0ec27d0757e36c91a4bbddcba6df9b56 (diff)
downloadgeiser-guile-ef17947ca8f80e67fe542b8a563b6297f3668cbe.tar.gz
geiser-guile-ef17947ca8f80e67fe542b8a563b6297f3668cbe.tar.bz2
Go to geiser and switch to module: echoing.
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index facae50..7c0994b 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -237,9 +237,10 @@ module command as a string")
(let ((m (geiser-repl--enter-cmd geiser-impl--implementation
(geiser-eval--get-module))))
(switch-to-geiser)
- (when m
- (comint-send-string nil m)
- (comint-send-eof))))
+ (when (and m (eq major-mode 'geiser-repl-mode))
+ (goto-char (point-max))
+ (insert m)
+ (comint-send-input))))
(defun geiser-repl-nuke ()
"Try this command if the REPL becomes unresponsive."