From a38d34a8735bcc28d1c01f4128ab299b88ed7b58 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