summaryrefslogtreecommitdiff
path: root/elisp/geiser-compile.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
commit8bf2c578f184837968b1a16cf07235e9ba616a91 (patch)
treed65d8d84454bf5813cd0c8f261d28b7c26a2c595 /elisp/geiser-compile.el
parent540a2cb21e9d8b84ddd3be629b7f2937f76cf6e9 (diff)
downloadgeiser-8bf2c578f184837968b1a16cf07235e9ba616a91.tar.gz
geiser-8bf2c578f184837968b1a16cf07235e9ba616a91.tar.bz2
Partial support for stack trace display.
Diffstat (limited to 'elisp/geiser-compile.el')
-rw-r--r--elisp/geiser-compile.el34
1 files changed, 5 insertions, 29 deletions
diff --git a/elisp/geiser-compile.el b/elisp/geiser-compile.el
index 82200a5..8b4a4db 100644
--- a/elisp/geiser-compile.el
+++ b/elisp/geiser-compile.el
@@ -24,20 +24,11 @@
;;; Code:
+(require 'geiser-debug)
(require 'geiser-eval)
-(require 'geiser-popup)
(require 'geiser-base)
-;;; Compilation buffer:
-
-(define-derived-mode geiser-compile-mode compilation-mode "Geiser Compilation"
- "Major mode showing the results of compiling or loading scheme files.
-\{geiser-compile-mode-keymap}")
-
-(geiser-popup--define compile "*Geiser compilation*" geiser-compile-mode)
-
-
;;; Auxiliary functions:
(defun geiser-compile--buffer/path (&optional path)
@@ -49,25 +40,10 @@
(cons buffer path))))
(defun geiser-compile--display-result (title ret)
- (let ((err (geiser-eval--retort-error ret))
- (output (geiser-eval--retort-output ret)))
- (geiser-compile--with-buffer
- (erase-buffer)
- (insert title)
- (newline)
- (when output
- (insert output)
- (newline))
- (when err
- (insert "\n" (geiser-eval--error-msg err) "\n"))
- (goto-char (point-min)))
- (if (not err)
- (message "%s %s" title (if (> 0 (length output))
- (geiser--chomp output)
- (or (geiser-eval--retort-result ret)
- "OK!")))
- (message "")
- (geiser-compile--pop-to-buffer))))
+ (if (not (geiser-eval--retort-error ret))
+ (message "%s %s" title (or (geiser-eval--retort-result ret) "OK!"))
+ (message "")
+ (geiser-debug--display-retort title ret)))
(defun geiser-compile--file-op (path compile-p msg)
(let* ((b/p (geiser-compile--buffer/path path))