From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Summary and next steps for (package-initialize) Date: Tue, 22 Aug 2017 10:41:45 +0200 Message-ID: <750a7e07-555e-3820-74ed-00bb6d604c5a@gmail.com> References: <83tw12cocz.fsf@gnu.org> <83d17qcfa1.fsf@gnu.org> <83h8x0c206.fsf@gnu.org> <83efs4byzj.fsf@gnu.org> <83378kba5u.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1503391353 9415 195.159.176.226 (22 Aug 2017 08:42:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2017 08:42:33 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 22 10:42:30 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 1dk4lW-0001x7-Ip for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2017 10:42:26 +0200 Original-Received: from localhost ([::1]:51326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dk4ld-0006Gj-58 for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2017 04:42:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dk4ky-0006GJ-6w for emacs-devel@gnu.org; Tue, 22 Aug 2017 04:41:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dk4kv-0008G9-4x for emacs-devel@gnu.org; Tue, 22 Aug 2017 04:41:52 -0400 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:34232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dk4ku-0008Fp-UL for emacs-devel@gnu.org; Tue, 22 Aug 2017 04:41:49 -0400 Original-Received: by mail-wr0-x22f.google.com with SMTP id p14so50251361wrg.1 for ; Tue, 22 Aug 2017 01:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=+x5FLLLGy0mwDi4xAIFN55jb5VDr8R4W63u5pd3czo8=; b=aTQg1Kb4TOD5VDLHGg/iQXV7sA/127o4kIJzxbqE18MYPmqHw2+Ms8ln1qE06ufUTD 4X67/uQlZ49CCj1ye6Oz+ysBRr+KZXQ1tnGzF2ZbIxGpMbjxYD340JW2GFULXFMyt5Kn WtgCu7ux/xJkgrre7dBGab4t/LhetTbRzZ6JxJbgX2b5VxSvrOay3QhwIwGc1H4czU9F f3Z3klGaUyXWMfP1OfEX1BbdmIWv4NCHk4OEZGFd9ioTJsuEtQI9dvOr9Bnp9K2G863o f4FJ+guaMVAdLpAJzQZ7EurPNMG+LuQIhydLL/PL3h6XpUi9WBrsky0PditbW4F1jPMF aaGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+x5FLLLGy0mwDi4xAIFN55jb5VDr8R4W63u5pd3czo8=; b=ER1vvbiW22yEuLlHH1JKvw1xSnitQTSRqXQAdb1xP0E9KuCh7Gs8CjX9DHRjMel3mN C01nlxJHhBrB8wJ90zPGRwuvxbHUSlIz1V2ONQKy0T2UoIS5OW6uadNNMjgK4A54jCON iJZQu+ACwnD4BeSpECZbXZuyXdEUnjzeS8mmkGzX+GU/T977l6tJrtNZE1GN24hVPNK7 /kchfd6MN7Ffi+v+2BxS7229FV3oQGMs9F7JQnBX9mAfnb6ots3fwOolOVBcEwidPluF Lsb67J4Ka/p0EMsu6WEchOpjlLgLcFxVkffVjkkU5n7xunOX8wBcm8bu8VU30406BnX6 0aFg== X-Gm-Message-State: AHYfb5i7ZYOwllm4BJKuGtjne5aAc7wfY15clZky5EEkKyzbtxh5wDyL mO+8P0CmIfhEuSH0PVk= X-Received: by 10.28.238.154 with SMTP id j26mr1663633wmi.14.1503391307315; Tue, 22 Aug 2017 01:41:47 -0700 (PDT) Original-Received: from [192.168.1.82] (43.225.24.109.rev.sfr.net. [109.24.225.43]) by smtp.gmail.com with ESMTPSA id r134sm2384441wmd.3.2017.08.22.01.41.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Aug 2017 01:41:46 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f 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:217679 Archived-At: On 2017-08-22 06:52, Radon Rosborough wrote: > Your way relies on solving the halting problem. I don't think it > counts. That's incorrect. We don't need to decide the halting problem — we just need to semi-decide it, which is trivial. Your email hints at this at one point, in fact. Let me explain: you want to determine what loading init.el sets package-load-list to, and then you want to actually load Emacs. Given this, if running init.el doesn't complete, then loading Emacs won't complete either. Thus you don't need a decision procedure for the problem of determining whether init.el sets package-load-list, and what it sets it to. You just need a semi-decision procedure (one that either returns the value or enters an infinite loop). This gives you an easy way out: Start Emacs. Load init.el. Record the value of package-load-list. Exit Emacs. Start Emacs again; set package-load-list to the value previously recorded. Run package-initialize. Load init.el. There's a subtle recursivity issue if init.el depends on package-load-list, of course. And this is a horrible approach :) But you don't need to solve the halting problem to determine what package-load-list gets set to and call package-intiialize with that. Clément.