summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-07 00:22:37 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-07 00:22:37 +0200
commit4766cbcbd3c7e3dbe4a090352d9d8cb2a5916559 (patch)
treeecddb39ed8ae9099636cd066e978f7b698a435b4
parent480767e3d4b2dd8771bcd9bbb70ddad88d1d347f (diff)
downloadgeiser-guile-4766cbcbd3c7e3dbe4a090352d9d8cb2a5916559.tar.gz
geiser-guile-4766cbcbd3c7e3dbe4a090352d9d8cb2a5916559.tar.bz2
Support for evaluation warnings
-rw-r--r--elisp/geiser-guile.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 8561df7..640ef02 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -134,7 +134,7 @@ This function uses `geiser-guile-init-file' if it exists."
;;; Error display
-(defun geiser-guile--display-error (module key msg)
+(defun geiser-guile--enter-debugger ()
(when (eq key 'geiser-debugger)
(let ((bt-cmd (format ",%s\n"
(if geiser-guile-debug-show-bt-p "bt" "fr"))))
@@ -148,8 +148,13 @@ This function uses `geiser-guile-init-file' if it exists."
(when geiser-guile-jump-on-debug-p
(accept-process-output (get-buffer-process (current-buffer))
0.2 nil t)
- (ignore-errors (next-error)))))
- t)
+ (ignore-errors (next-error))))))
+
+(defun geiser-guile--display-error (module key msg)
+ (newline)
+ (save-excursion (insert msg))
+ (geiser-edit--buttonize-files)
+ (and (not key) msg (not (zerop (length msg)))))
;;; Trying to ascertain whether a buffer is Guile Scheme:
@@ -201,6 +206,7 @@ This function uses `geiser-guile-init-file' if it exists."
(arglist geiser-guile--parameters)
(startup geiser-guile--startup)
(prompt-regexp geiser-guile--prompt-regexp)
+ (enter-debugger geiser-guile--enter-debugger)
(debugger-prompt-regexp geiser-guile--debugger-prompt-regexp)
(debugger-preamble-regexp geiser-guile--debugger-preamble-regexp)
(marshall-procedure geiser-guile--geiser-procedure)