From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Radon Rosborough Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fixing package-initialize, adding early init file Date: Wed, 31 Jan 2018 20:22:27 -0800 Message-ID: References: <83po9vos4z.fsf@gnu.org> <87shelv2m6.fsf@udel.edu> <83vajgh4xe.fsf@gnu.org> <83zi4vfj22.fsf@gnu.org> <87inbhh08b.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f4f5e8078c54ee6c3205641ef317" X-Trace: blaine.gmane.org 1517458923 19067 195.159.176.226 (1 Feb 2018 04:22:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Feb 2018 04:22:03 +0000 (UTC) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 01 05:21:59 2018 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 1eh6No-0004YA-Bv for ged-emacs-devel@m.gmane.org; Thu, 01 Feb 2018 05:21:56 +0100 Original-Received: from localhost ([::1]:56994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eh6Pp-00066S-4K for ged-emacs-devel@m.gmane.org; Wed, 31 Jan 2018 23:24:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eh6P2-000663-Ew for emacs-devel@gnu.org; Wed, 31 Jan 2018 23:23:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eh6P1-00057e-GS for emacs-devel@gnu.org; Wed, 31 Jan 2018 23:23:12 -0500 Original-Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:46604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eh6Oz-00055C-QT; Wed, 31 Jan 2018 23:23:10 -0500 Original-Received: by mail-lf0-x22d.google.com with SMTP id q194so24076576lfe.13; Wed, 31 Jan 2018 20:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xXC9TgE7eadiiizF3iASfLTlpA7OsnxpnJubzfLPtJA=; b=JlEzn8GFFYzSE0wKufkWvhH+a2113erG4rXrpf1MP75ri9jwGYunV6BMEderqgeVeK ++7KsfLB6BRESKJI1WPYskxUYHciFT5/3M5tKirUHyuLbpV/D9C4ZFPISJCgdXDrhnCT VwQqyNaa76aSXLIop2b5B110Rc7ZN8tKuW98OkJR4snxYcGFrU7Zxmjq5cOCfi7GAsCX iRcY172hSwg01VQuHodX204R1jQnzMTy+/CoDZxE7MdJLJFlaXRfjkEZ7cdr43UNkUjA QTbfqNm1nVR/6yt1j+EPIACCWSNly7HdMq6CPVCbYI3mQy1LKg+7jdplsbtj9HH3vxqI atVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xXC9TgE7eadiiizF3iASfLTlpA7OsnxpnJubzfLPtJA=; b=GotB9DVzgSCvvQioTCyVgohrZE2ubrkA1/Uh/UQBFroex0ngBMyu1EghNmhj9ASkY1 IqfULmdhrN21Hg5lXcayyb71QXUyBqSMVcBfLL85vd0gJKBHY327WowGpZ6vylYGH4Ed O6P/5qtFvBNBTNf1+viLYULMrzK8dNidMMv/dCmYOcyWylce7R4ikGD1HD4GC7kZWISo AEs54RBz8NzfFKdhfW56y0jwjmhy/F0o8gmGIidp9MgQu0E3Zc3yGIkRvAKClLpTDAvF MEH/qFLqaQVG6x5sdW8Xdgq58zdDX3Y3tNnN8p3tYlG6DSaHx0ppFA1xjLbyi4hIQHUC VrmA== X-Gm-Message-State: AKwxytfTlaVYAGg8VUv11/PT3L42fVpBzbjJ+mM9Nr/+OTBh7Q0Xp+rj cjrRaD1yUaISQVRILnXBYWPICKIFlw3hvXAykbY= X-Google-Smtp-Source: AH8x224/CwoDB/hgwMpLGK/p/kP/+s477t4GSt9A78g6DNwA953IkkpZlAaMsfQXfcaXHbPPtO51Jz4HBu8pZAgY8Js= X-Received: by 10.46.53.15 with SMTP id z15mr10584835ljz.113.1517458987832; Wed, 31 Jan 2018 20:23:07 -0800 (PST) Original-Received: by 10.25.16.101 with HTTP; Wed, 31 Jan 2018 20:22:27 -0800 (PST) In-Reply-To: <87inbhh08b.fsf@udel.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::22d 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:222346 Archived-At: --f4f5e8078c54ee6c3205641ef317 Content-Type: text/plain; charset="UTF-8" > ISTR there being no answer to the question posed here > https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00994.html > except for a workaround suggested by Stefan to set package-user-dir, > which implies that we have to run package-initialize twice. Sorry, could you elaborate on what the problem is? As it is I don't see any problem: most configurations will work with no changes, and advanced configurations will require only trivial changes (namely moving a few 'setq' forms from init.el into early-init.el). People whose configurations are advanced enough to set `package-load-list' and `package-user-dir' will find this change trivial to make. There's certainly no running of `package-initialize' twice in the proposed patch. `package-initialize' is run between early-init.el and init.el, just once. (But this can be suppressed by setting `package-enable-at-startup' to nil in early-init.el.) -- Radon --f4f5e8078c54ee6c3205641ef317 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> ISTR there being no = answer to the question posed here
>= =C2=A0https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00994.= html
>= ; except for a workaround suggested by Stefan to set package-user-dir,
> whic= h implies that we have to run package-initialize twice.

Sorry, could you elaborate on what the problem is? As it is I don'= t see any
problem: most c= onfigurations will work with no changes, and advanced
configurations will require only trivial chang= es (namely moving a few 'setq'
forms from init.el into early-init.el). People whose configur= ations are
advanced enoug= h to set `package-load-list' and `package-user-dir' will find
this change trivial to make.

There's certainly no running of `package-i= nitialize' twice in the proposed
patch. `package-initialize' is run between early-init.el an= d init.el, just once.
(Bu= t this can be suppressed by setting `package-enable-at-startup' to nil = in
early-init.el.)=

-- Radon
--f4f5e8078c54ee6c3205641ef317--