From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fixing package-initialize, adding early init file Date: Wed, 21 Feb 2018 03:16:04 -0500 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 X-Trace: blaine.gmane.org 1519200894 23820 195.159.176.226 (21 Feb 2018 08:14:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Feb 2018 08:14:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , Eli Zaretskii , =?windows-1252?Q?Cl=E9ment?= Pit-Claudel , emacs-devel To: Radon Rosborough Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 21 09:14:50 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 1eoPY9-0005rm-Re for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2018 09:14:49 +0100 Original-Received: from localhost ([::1]:59547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoPaC-0003cn-3j for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2018 03:16:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoPZY-0003cZ-Q1 for emacs-devel@gnu.org; Wed, 21 Feb 2018 03:16:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eoPZT-0001WN-Qi for emacs-devel@gnu.org; Wed, 21 Feb 2018 03:16:16 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoPZT-0001UU-Ks; Wed, 21 Feb 2018 03:16:11 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w1L8G41B010902; Wed, 21 Feb 2018 03:16:05 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8956866367; Wed, 21 Feb 2018 03:16:04 -0500 (EST) In-Reply-To: (Radon Rosborough's message of "Tue, 20 Feb 2018 12:35:27 -0800") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6226=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6226> : inlines <6415> : streams <1779604> : uri <2596671> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:222956 Archived-At: > Might it be a good idea to have `package-initialize' signal a warning > if it's called multiple times? I hadn't considered this side effect of > the change, but at least it's easier to get users to remove > a duplicate call than to add a missing one. > > Are there ever circumstances where calling `package-initialize' more than > once makes sense? It can make sense if packages were added/removed/updated without Emacs's knowledge. 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). Stefan