From 8a61de0ab4d29d777122a15734c68e9744a69d30 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 26 Nov 2011 07:11:26 +0100 Subject: Racket: capturing and displaying standard error during evaluation This bugs was exposed by using rackunit, where all the output of, say, check-eq? was lost for good (it was being sent to the stderr black hole). Hat tip Grant Retkke. --- elisp/geiser-debug.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'elisp/geiser-debug.el') diff --git a/elisp/geiser-debug.el b/elisp/geiser-debug.el index 0d76fde..d7cf338 100644 --- a/elisp/geiser-debug.el +++ b/elisp/geiser-debug.el @@ -1,6 +1,6 @@ ;;; geiser-debug.el -- displaying debug information and evaluation results -;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -120,7 +120,7 @@ buffer.") (erase-buffer) (when dir (setq default-directory dir)) (unless after - (insert what) + (geiser-debug--display-error impl module nil what) (newline 2)) (when (and res (not err)) (insert res) @@ -128,7 +128,8 @@ buffer.") (setq jump (geiser-debug--display-error impl module key output)) (when after (goto-char (point-max)) - (insert "\nExpression evaluated was:\n\n" what)) + (insert "\nExpression evaluated was:\n\n") + (geiser-debug--display-error impl module nil what)) (goto-char (point-min))) (when jump (geiser-debug--pop-to-buffer)))) -- cgit v1.2.3