* Fix missing `comp-files-queue' update (bug#63415).
authorAndrea Corallo <akrl@sdf.org>
Wed, 17 May 2023 13:28:46 +0000 (15:28 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Thu, 21 Mar 2024 11:02:33 +0000 (12:02 +0100)
* lisp/emacs-lisp/comp.el (native--compile-async): Update
`comp-files-queue' for real.

lisp/emacs-lisp/comp.el

index 614c62c35c63d7dc63c6ed6a6a4ec9978a7cd3ee..6b65a375ea02312f7c1b358464de5e792f039ff2 100644 (file)
@@ -4229,8 +4229,9 @@ bytecode definition was not changed in the meantime)."
           ;; compilation, so update `comp-files-queue' to reflect that.
           (unless (or (null load)
                       (eq load (cdr entry)))
-            (cl-substitute (cons file load) (car entry) comp-files-queue
-                           :key #'car :test #'string=))
+            (setf comp-files-queue
+                  (cl-substitute (cons file load) (car entry) comp-files-queue
+                                 :key #'car :test #'string=)))
 
         (unless (native-compile-async-skip-p file load selector)
           (let* ((out-filename (comp-el-to-eln-filename file))