From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Recent change in master breaks async package update using paradox Date: Fri, 07 Apr 2017 10:25:47 +0300 Message-ID: <8360igof0k.fsf@gnu.org> References: <86pogo4vty.fsf@molnjunk.nocrew.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1491549984 20932 195.159.176.226 (7 Apr 2017 07:26:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 07:26:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Brinkhoff Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 07 09:26:19 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwOHb-00049T-VW for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 09:26:12 +0200 Original-Received: from localhost ([::1]:49366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwOHh-0003h2-UW for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 03:26:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwOHC-0003fh-ET for emacs-devel@gnu.org; Fri, 07 Apr 2017 03:25:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwOH8-0003mm-GQ for emacs-devel@gnu.org; Fri, 07 Apr 2017 03:25:46 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwOH8-0003mb-8P; Fri, 07 Apr 2017 03:25:42 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4537 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cwOH7-00007W-GS; Fri, 07 Apr 2017 03:25:41 -0400 In-reply-to: <86pogo4vty.fsf@molnjunk.nocrew.org> (message from Lars Brinkhoff on Fri, 07 Apr 2017 07:42:49 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213732 Archived-At: > From: Lars Brinkhoff > 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.