diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-03-27 15:45:52 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-03-27 15:45:52 +0100 |
commit | d66a492dca82ad4b99be9f5cb90dd306de8fe08e (patch) | |
tree | c509174b8ac85e35d74f0da8749ed08b8e15c9b1 /elisp/geiser-debug.el | |
parent | 08eaf0df622530a05b2ffdb859c8a62a5ace3cd5 (diff) | |
download | geiser-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.el | 3 |
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)) |