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
commitfe966fe13a6c65d7ea2dcd84544de7522789bedf (patch)
treef4a25187bc55aff7532b84791f6bee515c4d0312 /elisp/geiser-repl.el
parent541c0090133326accc896081acd359c5c7dea838 (diff)
downloadgeiser-fe966fe13a6c65d7ea2dcd84544de7522789bedf.tar.gz
geiser-fe966fe13a6c65d7ea2dcd84544de7522789bedf.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))