From 216897ade20e6a1cc73c245908911301bc25865a Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 7 Jun 2010 03:35:33 +0200 Subject: Guile: displaying the debugger preamble. --- elisp/geiser-guile.el | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'elisp') 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: -- cgit v1.2.3