summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-12 15:41:06 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-12 15:41:06 +0100
commitc4287cdbb796507575a71a2bfc589f0f107f436f (patch)
treeae2be0f6ffe5b6ae85a3ad1ce8de898e77d2ec2e /elisp/geiser-repl.el
parente13172c2855cc7fcb30c6dac231210c6e8534b18 (diff)
downloadgeiser-chez-c4287cdbb796507575a71a2bfc589f0f107f436f.tar.gz
geiser-chez-c4287cdbb796507575a71a2bfc589f0f107f436f.tar.bz2
Debugger support, and Guile using it
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index d99ace0..f73bd90 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -276,6 +276,14 @@ module command as a string")
(setq geiser-eval--default-connection-function 'geiser-repl--connection)
+(defun geiser-repl--swap ()
+ (let ((p (get-buffer-process (current-buffer))))
+ (when (and p geiser-repl--connection)
+ (let ((p (geiser-con--connection-swap-proc geiser-repl--connection
+ p)))
+ (goto-char (point-max))
+ (set-marker (process-mark p) (point))))))
+
(defun geiser-repl--send (cmd)
(when (and cmd (eq major-mode 'geiser-repl-mode))
(goto-char (point-max))