summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2020-07-12 17:14:22 +1000
committerAaron Marks <nymacro@gmail.com>2020-07-12 17:19:53 +1000
commit1e3cb03c7685561ff41c4d39ab85b4ef8462077c (patch)
treee513f6e8462b6c846313642148b1d08a7e682ff3 /elisp
parent161f4cce06ca2c575672d12a6e9f5ced6d94401c (diff)
downloadgeiser-1e3cb03c7685561ff41c4d39ab85b4ef8462077c.tar.gz
geiser-1e3cb03c7685561ff41c4d39ab85b4ef8462077c.tar.bz2
Always display error in minibuffer after eval
When evaluating expressions in a Scheme buffer, display the error of an evaluation in the minibuffer regardless of whether `geiser-debug-show-debug-p` or `geiser-debug-jump-to-debug-p` are set or not.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-debug.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-debug.el b/elisp/geiser-debug.el
index 971001f..d2e91ec 100644
--- a/elisp/geiser-debug.el
+++ b/elisp/geiser-debug.el
@@ -169,10 +169,10 @@ buffer.")
(when (or geiser-debug-jump-to-debug-p geiser-debug-show-debug-p)
(if geiser-debug-jump-to-debug-p
(geiser-debug--pop-to-buffer)
- (display-buffer (geiser-debug--buffer))
- (when dbg
- (ignore-errors (next-error))
- (message "=> %s" dbg)))))))
+ (display-buffer (geiser-debug--buffer))))
+ (when err
+ (ignore-errors (next-error))
+ (message "=> %s" output)))))
(defsubst geiser-debug--wrap-region (str)
(format "(begin %s\n)" str))