emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recent change in master breaks async package update using paradox


From: Eli Zaretskii
Subject: Re: Recent change in master breaks async package update using paradox
Date: Fri, 07 Apr 2017 10:25:47 +0300

> From: Lars Brinkhoff <address@hidden>
> Date: Fri, 07 Apr 2017 07:42:49 +0200
> 
> This code (in paradox-execute.el) is executed in the parent emacs:
> 
>   (eval
>    `(async-start
>      (lambda ()
>        (require 'package)
>        ,(async-inject-variables "\\`package-")
>        (setq package-menu-async nil)
>        (dolist (elt package-alist)
>          (package-activate (car elt) 'force))
>        (let ((alist ,(macroexpand
>                       `(paradox--perform-package-transaction
>                         ',install-list ',delete-list))))
>          (list package-alist
>                (when (boundp 'package-selected-packages)
>                  package-selected-packages)
>                package-archive-contents
>                ;; This is the alist that will be passed to the hook.
>                (cons '(noquery . ,noquery) (cons '(async . t) alist)))))
>      (lambda () ... )))
> 
> The first lambda is executed in a subprocess emacs and throws the error
> (wrong-type-argument sequencep #s(package-desc swiper ... ))
> 
> I'm going to study async.el documentation and code to see if there's a
> way to debug this.  But if anyone has any hints, that would be appreciated.

What is package-desc?  If its value and/or its semantics are only
valid in the parent Emacs process, then it might not work to use it in
the subprocess.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]