From 1e3cb03c7685561ff41c4d39ab85b4ef8462077c Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sun, 12 Jul 2020 17:14:22 +1000 Subject: 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. --- elisp/geiser-debug.el | 8 ++++---- 1 file 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)) -- cgit v1.2.3