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: Summary and next steps for (package-initialize) Date: Thu, 24 Aug 2017 20:02:30 +0300 Message-ID: <83k21s99w9.fsf@gnu.org> References: <42c93165-2d85-8501-9cc8-99830b7b3646@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1503594184 21388 195.159.176.226 (24 Aug 2017 17:03:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 17:03:04 +0000 (UTC) Cc: radon.neon@gmail.com, emacs-devel@gnu.org To: Nikolay Kudryavtsev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 19:03:01 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 1dkvX0-0005Cs-1y for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 19:02:58 +0200 Original-Received: from localhost ([::1]:49574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkvX6-0002DP-S8 for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 13:03:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkvX1-000299-1o for emacs-devel@gnu.org; Thu, 24 Aug 2017 13:02:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkvWx-0007f0-3N for emacs-devel@gnu.org; Thu, 24 Aug 2017 13:02:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkvWw-0007eu-Vy; Thu, 24 Aug 2017 13:02:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4489 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dkvWv-0006Tl-Lx; Thu, 24 Aug 2017 13:02:54 -0400 In-reply-to: <42c93165-2d85-8501-9cc8-99830b7b3646@gmail.com> (message from Nikolay Kudryavtsev on Wed, 23 Aug 2017 18:57:30 +0300) 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:217772 Archived-At: > From: Nikolay Kudryavtsev > Date: Wed, 23 Aug 2017 18:57:30 +0300 > > So I propose, we don't do anything until user either: > > 1. Requires something that's not available. > > 2. Calls a function that's not available. > > In either of those cases we check whether (package-initialize) was already called. And, if not, we give user an > interactive window along the lines of: > > "You tried to call X which is not available and Emacs package manager was not initialized. Press: > > i to initialize and try again > > w to initialize, try again and don't ask again > > x to dismiss > > K to dissmiss and never ask again." > > w writes (package-initialize) to init) IME, annoying users in this way is not welcome in this community. Doing this once is borderline, doing this multiple times in the same session is going to annoy too much, I think. And anyway, I don't see how this solves the problem of packages being loaded when the user said not to by customizing package-load-list. Your proposal in effect will load packages after Emacs reads ~/.emacs, which is what we do now, so how is it different?