From 6f7bdc801a0b4d1a50f25b3c6d7d74858789a540 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 16 Dec 2019 16:49:34 -0500 Subject: [PATCH] Make print! et co always respect standard-output --- core/autoload/format.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/autoload/format.el b/core/autoload/format.el index c95440f49..4f87aaaa3 100644 --- a/core/autoload/format.el +++ b/core/autoload/format.el @@ -106,9 +106,8 @@ Accepts 'ansi and 'text-properties. nil means don't render colors.") ;;;###autoload (defun doom--format-print (output) (unless (string-empty-p output) - (if (not noninteractive) - (message "%s" output) - (princ output) + (princ output) + (when (or noninteractive (not (eq standard-output t))) (terpri)) ; newline t))