From: Andrea Corallo Date: Wed, 17 Aug 2022 21:31:41 +0000 (+0200) Subject: * lisp/emacs-lisp/bytecomp.el (byte-compile-log-1): Create buffer if necessary X-Git-Tag: emacs-29.0.90~1447^2~90 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3e042c80ce708b2d27da8ff62f19a5706f6d7fc6;p=emacs.git * lisp/emacs-lisp/bytecomp.el (byte-compile-log-1): Create buffer if necessary --- 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)