From 46d99917ba3a9820361e9244faf51b8e91ddc939 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 19 Sep 2022 17:33:25 +0200 Subject: [PATCH] fix(cli): debug output despite no debug-mode Let's not fall back on original `message` function, at the end of `with-output-to!`s advice stack. --- lisp/lib/print.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/lib/print.el b/lisp/lib/print.el index a8b45b4a7..2a0dffaf2 100644 --- a/lisp/lib/print.el +++ b/lisp/lib/print.el @@ -276,7 +276,7 @@ based on the print level of the message. For example: (lambda (message &rest args) (when message (let ((output (apply #'doom-print--format message args))) - (if (= doom-print--output-depth 0) + (if (<= doom-print--output-depth 1) (doom-print output :level level :stream t) (let ((doom-print--output-depth (1- doom-print--output-depth))) (funcall old "%s" output)))