From d66a492dca82ad4b99be9f5cb90dd306de8fe08e Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 27 Mar 2010 15:45:52 +0100 Subject: Automatically pop-up dbg buffer if there's any output during evaluation. --- elisp/geiser-debug.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elisp') diff --git a/elisp/geiser-debug.el b/elisp/geiser-debug.el index cfa193c..fa30506 100644 --- a/elisp/geiser-debug.el +++ b/elisp/geiser-debug.el @@ -74,7 +74,8 @@ non-null value.") (when err (insert (geiser-eval--error-str err) "\n\n")) (when output (insert output "\n\n"))) (goto-char (point-min))) - (when err (geiser-debug--pop-to-buffer))))) + (when (or err (and output (> (length output) 0))) + (geiser-debug--pop-to-buffer))))) (defsubst geiser-debug--wrap-region (str) (format "(begin %s)" str)) -- cgit v1.2.3