summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-01 16:41:09 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-01 16:41:09 +0100
commitaf150090685e5e456bc0788fb45703b6eace053d (patch)
tree37c51fcac5362359c91bb7c2e791f3a9020b0e1c /elisp/geiser-mode.el
parent3990c6476ab7cee03f4bf89827df7a23adf4d794 (diff)
downloadgeiser-chez-af150090685e5e456bc0788fb45703b6eace053d.tar.gz
geiser-chez-af150090685e5e456bc0788fb45703b6eace053d.tar.bz2
Some refactoring and new ge:macroexpand.
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el21
1 files changed, 3 insertions, 18 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index a03c70e..fbbcff4 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -33,6 +33,7 @@
(require 'geiser-debug)
(require 'geiser-eval)
(require 'geiser-repl)
+(require 'geiser-popup)
(require 'geiser-custom)
(require 'geiser-base)
@@ -56,22 +57,6 @@
-;;; Auxiliary functions:
-
-(defun geiser-eval--send-region (compile start end and-go)
- (let* ((str (buffer-substring-no-properties start end))
- (code `(,(if compile :comp :eval) (:scm ,str)))
- (ret (geiser-eval--send/wait code))
- (err (geiser-eval--retort-error ret)))
- (when and-go
- (switch-to-guile)
- (push-mark)
- (goto-char (point-max)))
- (if (not err)
- (message (format "=> %s" (geiser-eval--retort-result ret)))
- (geiser-debug--display-retort str ret))))
-
-
;;; Evaluation commands:
(defun geiser-eval-region (start end &optional and-go)
@@ -79,7 +64,7 @@
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-region-and-go')"
(interactive "rP")
- (geiser-eval--send-region nil start end and-go))
+ (geiser-debug--send-region nil start end and-go))
(defun geiser-eval-region-and-go (start end)
"Eval the current region in the Geiser REPL and visit it afterwads."
@@ -116,7 +101,7 @@ With prefix, goes to the REPL buffer afterwards (as
(end-of-defun)
(let ((end (point)))
(beginning-of-defun)
- (geiser-eval--send-region t (point) end and-go))))
+ (geiser-debug--send-region t (point) end and-go))))
(defun geiser-compile-definition-and-go ()
"Compile the current definition in the Geiser REPL and visit it afterwads."