summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
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))