summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-03-27 15:45:52 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-03-27 15:45:52 +0100
commit4ada7d2af871ed00c33f4a57cb0cc6d445acab3a (patch)
treedf61502ae173d6b259de732adef5d9fce9c7cf59
parent9a6f0303a54aa3c687e63f03e83cae63d4c8e5ce (diff)
downloadgeiser-chez-4ada7d2af871ed00c33f4a57cb0cc6d445acab3a.tar.gz
geiser-chez-4ada7d2af871ed00c33f4a57cb0cc6d445acab3a.tar.bz2
Automatically pop-up dbg buffer if there's any output during evaluation.
-rw-r--r--elisp/geiser-debug.el3
1 files changed, 2 insertions, 1 deletions
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))