From a52ca48dba4296df5b91babd72eaa79153d43ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Thu, 3 Jun 2021 19:34:42 +0200 Subject: [PATCH] advice.el: make it compatible with newer doom revisions doom redefines `(message)` to use `(doom--print)` under the hood, so the previous advice caused an infinite recursion. See: https://github.com/hlissner/doom-emacs/commit/4b5cf7d46f01da8688a605b30ea5cd6213ca9508 Fixes: #233 --- advice.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advice.el b/advice.el index 29d203b..2a59a76 100644 --- a/advice.el +++ b/advice.el @@ -29,7 +29,7 @@ (message "[nix-doom-emacs] Skipping generating autoloads..."))) (advice-add 'doom--print :override (lambda (output) - (message output))) + (princ (format "%s\n" output) 'external-debugging-output))) (advice-add 'kill-emacs :override #'nix-straight-inhibit-kill-emacs) (apply orig-fn r)