]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix excessive echo area usage
authorAndrea Corallo <akrl@sdf.org>
Fri, 14 Aug 2020 06:29:28 +0000 (08:29 +0200)
committerAndrea Corallo <akrl@sdf.org>
Fri, 14 Aug 2020 06:33:07 +0000 (08:33 +0200)
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Use
`with-temp-file' to fill temp-file.

lisp/emacs-lisp/comp.el

index 599d35b61c5b5624b6fd7b3289a811be2f57a36c..a92392f63acc88f73f85955a87594adb2e4e9b69 100644 (file)
@@ -2608,13 +2608,16 @@ display a message."
                             (message "Compiling %s..." ,source-file)
                             (native-compile ,source-file ,(and load t))))
                    (source-file1 source-file) ;; Make the closure works :/
-                   (_ (progn
-                        (comp-log "\n")
-                        (comp-log (prin1-to-string expr))))
                    (temp-file (make-temp-file
                                (concat "emacs-async-comp-"
                                        (file-name-base source-file) "-")
-                               nil ".el" (prin1-to-string expr)))
+                               nil ".el"))
+                   (expr-string (prin1-to-string expr))
+                   (_ (progn
+                        (with-temp-file temp-file
+                          (insert expr-string))
+                        (comp-log "\n")
+                        (comp-log expr-string)))
                    (load1 load)
                    (process (make-process
                              :name (concat "Compiling: " source-file)