[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggest: Byte-Compile package-quickstart on a separate thread?
From: |
Eli Zaretskii |
Subject: |
Re: Suggest: Byte-Compile package-quickstart on a separate thread? |
Date: |
Mon, 28 Dec 2020 21:19:55 +0200 |
> From: "T.V Raman" <raman@google.com>
> Date: Mon, 28 Dec 2020 10:38:01 -0800
> Cc: monnier@iro.umontreal.ca
>
> "T.V Raman" via "Emacs development discussions." <emacs-devel@gnu.org>
> writes:
> Here's a small patch that uses make-thread:
>
> git diff package.el
> diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
> index bc450b09d0..104c2d8e71 100644
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -4108,7 +4108,7 @@ package-quickstart-refresh
> ;; no-update-autoloads: t
> ;; End:
> "))
> - (byte-compile-file package-quickstart-file)))
> + (make-thread #'byte-compile-file package-quickstart-file)))
I'm not sure it can be done so easily: byte-compile-file sometimes
needs to interact with the user, and that might not work or not do
what you expect when run from a separate thread.