From 3e042c80ce708b2d27da8ff62f19a5706f6d7fc6 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Wed, 17 Aug 2022 23:31:41 +0200 Subject: [PATCH] * lisp/emacs-lisp/bytecomp.el (byte-compile-log-1): Create buffer if necessary --- lisp/emacs-lisp/bytecomp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 907015eb48e..1115ce391d4 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1161,7 +1161,7 @@ message buffer `default-directory'." ;; Log something that isn't a warning. (defun byte-compile-log-1 (string) - (with-current-buffer byte-compile-log-buffer + (with-current-buffer (get-buffer-create byte-compile-log-buffer) (let ((inhibit-read-only t)) (goto-char (point-max)) (byte-compile-warning-prefix nil nil) -- 2.39.5