diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-03-08 02:14:35 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-03-08 02:14:35 +0100 |
commit | ed6409dd39717d623cef5cf6afd5a05cd83050a1 (patch) | |
tree | 1afbad9ed29cd1e4e20b5ec5af53236c74616485 /elisp/geiser-guile.el | |
parent | 5713490e2ca1bb5ac77cddbbaf97cce5ac9fa0b1 (diff) | |
download | geiser-guile-ed6409dd39717d623cef5cf6afd5a05cd83050a1.tar.gz geiser-guile-ed6409dd39717d623cef5cf6afd5a05cd83050a1.tar.bz2 |
Guile: 'bt' when entering the debugger.
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r-- | elisp/geiser-guile.el | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el index b4a27bf..b359dcc 100644 --- a/elisp/geiser-guile.el +++ b/elisp/geiser-guile.el @@ -107,7 +107,8 @@ This function uses `geiser-guile-init-file' if it exists." (if (file-name-absolute-p file) file (or (gethash file geiser-guile--file-cache) (puthash file - (geiser-eval--send/result `(:eval ((:ge find-file) ,file))) + (geiser-eval--send/result + `(:eval ((:ge find-file) ,file))) geiser-guile--file-cache))))) (defconst geiser-guile--file-rx @@ -126,16 +127,18 @@ This function uses `geiser-guile-init-file' if it exists." (geiser-edit--make-link beg end file line 0)))))))) (defun geiser-guile--display-error (module key msg) - (when key - (insert "Error: ") - (geiser--insert-with-face (format "%s" key) 'bold) - (newline 2)) - (when msg - (let ((p (point))) - (insert msg) - (goto-char p) - (geiser-guile--find-files))) - t) + (if (eq key 'geiser-debugger) + (comint-send-string nil "bt\n") + (when key + (insert "Error: ") + (geiser--insert-with-face (format "%s" key) 'bold) + (newline 2)) + (when msg + (let ((p (point))) + (insert msg) + (goto-char p) + (geiser-guile--find-files))) + t)) ;;; Trying to ascertain whether a buffer is Guile Scheme: |