summaryrefslogtreecommitdiff
path: root/elisp/geiser-debug.el
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
commitd66a492dca82ad4b99be9f5cb90dd306de8fe08e (patch)
treec509174b8ac85e35d74f0da8749ed08b8e15c9b1 /elisp/geiser-debug.el
parent08eaf0df622530a05b2ffdb859c8a62a5ace3cd5 (diff)
downloadgeiser-d66a492dca82ad4b99be9f5cb90dd306de8fe08e.tar.gz
geiser-d66a492dca82ad4b99be9f5cb90dd306de8fe08e.tar.bz2
Automatically pop-up dbg buffer if there's any output during evaluation.
Diffstat (limited to 'elisp/geiser-debug.el')
-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))