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: Summary and next steps for (package-initialize) Date: Thu, 24 Aug 2017 23:52:19 -0400 Message-ID: References: <83tw12cocz.fsf@gnu.org> <83wp5xat6i.fsf@gnu.org> <83pobk9aly.fsf@gnu.org> <837exs9603.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503633167 22319 195.159.176.226 (25 Aug 2017 03:52:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 03:52:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 25 05:52:43 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 1dl5fd-00057f-Qv for ged-emacs-devel@m.gmane.org; Fri, 25 Aug 2017 05:52:33 +0200 Original-Received: from localhost ([::1]:51374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dl5fk-0002hh-Jy for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2017 23:52:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dl5fW-0002hZ-Ou for emacs-devel@gnu.org; Thu, 24 Aug 2017 23:52:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dl5fT-0003BJ-P1 for emacs-devel@gnu.org; Thu, 24 Aug 2017 23:52:26 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:56364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dl5fT-0003B5-K3; Thu, 24 Aug 2017 23:52:23 -0400 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 v7P3qJWG003299; Thu, 24 Aug 2017 23:52:20 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id CD0A26636A; Thu, 24 Aug 2017 23:52:19 -0400 (EDT) In-Reply-To: <837exs9603.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Aug 2017 21:26:36 +0300") 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, RV6101=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6101> : inlines <6037> : streams <1760065> : uri <2489362> 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:217798 Archived-At: >> - Change package-initialize so it keeps track of what it activated and if >> called a second time, perform a diff between what was activated before >> and what should be activated now and based on this activate the new pkgs >> and deactivate the excess ones? > This could prove tricky, if some package that shouldn't be loaded > affects another package that should. Right? Not sure what "This" refers to. I'll assume you're referring to "deactivate", which is indeed the trickier part. I was thinking of doing it via unload-feature and declare that if it doesn't work quite-right, it's a bug in the package. Stefan