summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-07 03:35:33 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-07 03:35:33 +0200
commit216897ade20e6a1cc73c245908911301bc25865a (patch)
tree6a87f5a51b7eb57e3031beb6636089464b94dbe2
parent574559bd819faafb8954fe2fdd8a318b9980db10 (diff)
downloadgeiser-guile-216897ade20e6a1cc73c245908911301bc25865a.tar.gz
geiser-guile-216897ade20e6a1cc73c245908911301bc25865a.tar.bz2
Guile: displaying the debugger preamble.
-rw-r--r--elisp/geiser-guile.el13
1 files changed, 10 insertions, 3 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index b76228e..da488bc 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -128,7 +128,14 @@ This function uses `geiser-guile-init-file' if it exists."
(defun geiser-guile--display-error (module key msg)
(if (eq key 'geiser-debugger)
- (comint-send-string nil "bt\n")
+ (progn
+ (comint-send-string nil "0\n")
+ (accept-process-output nil 0.1)
+ (when msg
+ (goto-char (point-max))
+ (comint-previous-prompt 1)
+ (insert "\n" msg)
+ (goto-char (point-max))))
(when key
(insert "Error: ")
(geiser--insert-with-face (format "%s" key) 'bold)
@@ -137,8 +144,8 @@ This function uses `geiser-guile-init-file' if it exists."
(let ((p (point)))
(insert msg)
(goto-char p)
- (geiser-guile--find-files)))
- t))
+ (geiser-guile--find-files))))
+ t)
;;; Trying to ascertain whether a buffer is Guile Scheme: