]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/bytecomp.el (byte-compile-log-1): Create buffer if necessary
authorAndrea Corallo <akrl@sdf.org>
Wed, 17 Aug 2022 21:31:41 +0000 (23:31 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 17 Aug 2022 21:35:46 +0000 (23:35 +0200)
lisp/emacs-lisp/bytecomp.el

index 907015eb48e14ea937f8efb090d06269af2679c4..1115ce391d4177ad77c88411af6d95018157f04b 100644 (file)
@@ -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)