]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Use 'emacs-lisp-compilation-mode' in native compilation buffers"
authorEli Zaretskii <eliz@gnu.org>
Thu, 6 Jul 2023 15:00:05 +0000 (18:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 6 Jul 2023 15:00:05 +0000 (18:00 +0300)
This reverts commit 40492581f96626e405e4b453456b8c9b83822c97.
It caused a recursive-load error when native-compiling files.
(Bug#64391)

lisp/emacs-lisp/comp.el

index 77584b692a4d94b9cc1b599d0a21b06a1f9395b4..22fb08e4688e4e94a3c0be8f3b974907fe814eb4 100644 (file)
@@ -1133,8 +1133,7 @@ with `message'.  Otherwise, log with `comp-log-to-buffer'."
          (log-buffer
              (or (get-buffer comp-log-buffer-name)
                  (with-current-buffer (get-buffer-create comp-log-buffer-name)
-                   (unless (derived-mode-p 'compilation-mode)
-                     (emacs-lisp-compilation-mode))
+                   (setf buffer-read-only t)
                    (current-buffer))))
          (log-window (get-buffer-window log-buffer))
          (inhibit-read-only t)
@@ -4086,8 +4085,7 @@ display a message."
                              :buffer (with-current-buffer
                                          (get-buffer-create
                                           comp-async-buffer-name)
-                                       (unless (derived-mode-p 'compilation-mode)
-                                         (emacs-lisp-compilation-mode))
+                                       (setf buffer-read-only t)
                                       (current-buffer))
                              :command (list
                                        (expand-file-name invocation-name
@@ -4121,8 +4119,6 @@ display a message."
     (run-hooks 'native-comp-async-all-done-hook)
     (with-current-buffer (get-buffer-create comp-async-buffer-name)
       (save-excursion
-        (unless (derived-mode-p 'compilation-mode)
-          (emacs-lisp-compilation-mode))
         (let ((inhibit-read-only t))
           (goto-char (point-max))
           (insert "Compilation finished.\n"))))