summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-08-14 08:29:28 +0200
committerAndrea Corallo <akrl@sdf.org>2020-08-14 08:33:07 +0200
commit3882e8fd244a66edb6ba60f40182a4d0772cfcb1 (patch)
tree72a1029748ca911400f410d4b97ccf380db98afb /lisp/emacs-lisp
parent1712311f0084af850925f4c472f6ca186ab09c54 (diff)
downloademacs-3882e8fd244a66edb6ba60f40182a4d0772cfcb1.tar.gz
emacs-3882e8fd244a66edb6ba60f40182a4d0772cfcb1.tar.bz2
emacs-3882e8fd244a66edb6ba60f40182a4d0772cfcb1.zip
* Fix excessive echo area usage
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Use `with-temp-file' to fill temp-file.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 599d35b61c5..a92392f63ac 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -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)