summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-24 02:18:28 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-24 02:18:28 +0100
commit641449ca6073648d5722d1a552d3a5245d523e48 (patch)
tree5cf7ba8f01858b6485648b74c263299e16fa0be0 /elisp/geiser-mode.el
parentabe0355b7eb7961c89ef2e37f68451b131dacb05 (diff)
downloadgeiser-guile-641449ca6073648d5722d1a552d3a5245d523e48.tar.gz
geiser-guile-641449ca6073648d5722d1a552d3a5245d523e48.tar.bz2
Partial support for stack trace display.
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el17
1 files changed, 2 insertions, 15 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 3c2f1a9..e308c07 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -30,8 +30,8 @@
(require 'geiser-completion)
(require 'geiser-edit)
(require 'geiser-autodoc)
+(require 'geiser-debug)
(require 'geiser-eval)
-(require 'geiser-popup)
(require 'geiser-custom)
(require 'geiser-base)
@@ -57,19 +57,6 @@
;;; Auxiliary functions:
-(geiser-popup--define mode "*Geiser evaluation results*" scheme-mode)
-
-(defun geiser-eval--display-error (err output)
- (if (not output)
- (message (geiser-eval--error-str err))
- (geiser-mode--with-buffer
- (erase-buffer)
- (insert ";; " (geiser-eval--error-str err))
- (newline 2)
- (insert output)
- (newline))
- (geiser-mode--pop-to-buffer)))
-
(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)))
@@ -81,7 +68,7 @@
(goto-char (point-max)))
(if (not err)
(message (format "=> %s" (geiser-eval--retort-result ret)))
- (geiser-eval--display-error err (geiser-eval--retort-output ret)))))
+ (geiser-debug--display-retort str ret))))
;;; Evaluation commands: