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, 21 Feb 2018 12:48:47 -0800 Message-ID: References: <83po9vos4z.fsf@gnu.org> <87shelv2m6.fsf@udel.edu> <83vajgh4xe.fsf@gnu.org> <838tc12h42.fsf@gnu.org> <834lmfdexa.fsf@gnu.org> <87vaeu40iz.fsf@tcd.ie> <87mv034gp5.fsf@tcd.ie> <87r2pfcvil.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1519246425 11193 195.159.176.226 (21 Feb 2018 20:53:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Feb 2018 20:53:45 +0000 (UTC) Cc: "Basil L. Contovounesios" , Eli Zaretskii , =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 21 21:53:40 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 1eobOW-0002LT-7f for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2018 21:53:40 +0100 Original-Received: from localhost ([::1]:34740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eobQY-0006ys-Hi for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2018 15:55:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eobOU-0006pE-L3 for emacs-devel@gnu.org; Wed, 21 Feb 2018 15:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eobNQ-0001Hz-Lp for emacs-devel@gnu.org; Wed, 21 Feb 2018 15:53:38 -0500 Original-Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:44815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eobKU-0005xM-Ew; Wed, 21 Feb 2018 15:49:30 -0500 Original-Received: by mail-lf0-x233.google.com with SMTP id v9so4275489lfa.11; Wed, 21 Feb 2018 12:49:29 -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=/HzuFuNveHofk4hFeYkFSey1k1dkZFIzrXp7STcDRmg=; b=jncy+KAI+7UO2+sFu7HSciCfecAQqPsSeReAfXgW7yXnNUYJ7ZuszBW9XuHcc9q+tc n96sq8KBfHRy5J7Y7/tb5Getwjeg0YaTpxL5PX3tpJ46VL2dNez6OpgJ61LO6800Wspa bCcjN+aQi3G5OkGCfj9tAs2Zw81z8oaGYfy0YB2l+izOfO348F5iQd3hz/dk4cP4ZN3R 0Y8piBjrBYvuyt/aoOQv7NzwRk26FSifqd90k4Ia+jDJDKG3/3yEXV3kISJpCalPCfM9 9hS3SHcxPs1Q3IZqm6w+0mH9ufw0WFAHGnENFnS3bmaVqqX2UaOM/007+iuoSFKg4ffl Kv7A== 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=/HzuFuNveHofk4hFeYkFSey1k1dkZFIzrXp7STcDRmg=; b=Nit3rwuvkIjzJjX03m5QtuJBLRSvCoi7g7SpGdODhG1PrUj+YRQONRMRXNF9BtZMPJ rVt77MduXLnGAAeVe9Uhb6qxKRf9IKZdSJodqQ5QvRIJy+CgHvTUoKs0u4TGwUmDU7du P+qQ7SNOns5WEtMeNcjSj2+zZIOn2yTyhdSuKufmLTqP8EBApF08QjbDxeinEyqJnDN2 r2vPiisF+JrIfcYxLHDvHrRyqt7hbLJe7wQqfqaD3zWVUKPRBRDAnfI7HGgFLSNLm6sl X/0v9/JxLB31ZcuX+v7+7f7XPuq07Z+MyUUJrXUBwuW5fzbmpLOcGq2kAqdU/WgtrLP2 qGYQ== X-Gm-Message-State: APf1xPDvgiDuE7KHm5Yj/Zbckl7xW9+AjEniSQvA+f9QDvVYGQMblLaQ priPmdtV2rAg2pir7JIE5g7DEDRQZAqQzO4ILwE= X-Google-Smtp-Source: AH8x226PGEfnQwESl+RyhYjbsuQkvoRgNKF3Wx0gheSI4B8vX5dXcaRnGaaCB8yc3Xhj57coXSNFFBOpnRZs5/6NokQ= X-Received: by 10.25.15.98 with SMTP id e95mr3447350lfi.36.1519246168311; Wed, 21 Feb 2018 12:49:28 -0800 (PST) Original-Received: by 10.25.16.33 with HTTP; Wed, 21 Feb 2018 12:48:47 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::233 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:222968 Archived-At: > So maybe we need something more targeted to > ~/.emacs, by temporarily let-binding a package--within-init.el variable > (this would also allow us to not only emit a message but even skip the > execution of such a second call to package-initialize). So then if you actually do want to run `package-initialize', you would let-bind `package--within-init.el' to nil? I feel like that's a little odd, since it would require you to introduce a workaround even if `package-initialize' was only called once (i.e. you set `package-enable-at-startup' to nil in early-init.el). Whereas with what I suggested, you'd only need to introduce a workaround if `package-initialize' was actually called twice. (If you were concerned about a warning being signaled after startup, we could just condition it on `after-init-time' being nil.)