summaryrefslogtreecommitdiff
path: root/elisp
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
commita38d34a8735bcc28d1c01f4128ab299b88ed7b58 (patch)
treed90fb049bf3bc117f62b6fccfab1a3fd5084a25d /elisp
parent2fb9578e1ae6edfd2dbd4a90a44ac6b0aef55d6b (diff)
downloadgeiser-chez-a38d34a8735bcc28d1c01f4128ab299b88ed7b58.tar.gz
geiser-chez-a38d34a8735bcc28d1c01f4128ab299b88ed7b58.tar.bz2
Guile: displaying the debugger preamble.
Diffstat (limited to 'elisp')
-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: