From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Elpa packages and macro dependencies. Date: Fri, 17 Oct 2014 07:51:35 -0600 Message-ID: <871tq6ztw8.fsf@tromey.com> References: <8761fjsp2c.fsf@Rainer.invalid> <87y4sfgm52.fsf@Rainer.invalid> <8761fiaooe.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413553940 6172 80.91.229.3 (17 Oct 2014 13:52:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 13:52:20 +0000 (UTC) Cc: Achim Gratz , emacs-devel@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 17 15:52:13 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xf7wx-0005Vx-4E for ged-emacs-devel@m.gmane.org; Fri, 17 Oct 2014 15:52:11 +0200 Original-Received: from localhost ([::1]:60735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf7ww-0006OB-LA for ged-emacs-devel@m.gmane.org; Fri, 17 Oct 2014 09:52:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf7wo-0006Ny-4Q for emacs-devel@gnu.org; Fri, 17 Oct 2014 09:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xf7wi-0003gb-3L for emacs-devel@gnu.org; Fri, 17 Oct 2014 09:52:02 -0400 Original-Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:47587) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Xf7wh-0003g5-QX for emacs-devel@gnu.org; Fri, 17 Oct 2014 09:51:56 -0400 Original-Received: (qmail 19111 invoked by uid 0); 17 Oct 2014 13:51:50 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy3.mail.unifiedlayer.com with SMTP; 17 Oct 2014 13:51:50 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id 4Drf1p00T2f2jeq01DriNJ; Fri, 17 Oct 2014 07:51:49 -0600 X-Authority-Analysis: v=2.1 cv=e5mVF8Z/ c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=_cZRQKYwz3QA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=X1qvojbhiZEA:10 a=_vrviStQAAAA:8 a=v8u32Jz1lqdQ9RIsvmwA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=jnAOFns4OuYNDnOI7n/XZNV0aZw6HuN5Y9LPqgMZN2o=; b=NC06om7a8gIIZj5iP8BbrNtqR7ZPCPX4BTHPNH+xLGJMk5umgoBXxfWPY4+2zolGjiv4Evr+GQHPBLPzqv9xFYwt/z088BaRMlQ45s+IZYgU5NBWGJiTUczRiJBc3ML6; Original-Received: from [71.33.139.67] (port=52051 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Xf7wR-0007LA-Tc; Fri, 17 Oct 2014 07:51:40 -0600 X-Attribution: Tom In-Reply-To: <8761fiaooe.fsf@newcastle.ac.uk> (Phillip Lord's message of "Fri, 17 Oct 2014 13:03:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.139.67 authed with tom+tromey.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.30.42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175521 Archived-At: >>>>> "Phillip" == Phillip Lord writes: Phillip> Would it not be possible to have package.el check when it Phillip> installs packages from ~/.emacs.d if that package is also in Phillip> Emacs core and then remove the relevant paths from load-path. FWIW my original intent was that packages in this category (both distributed with emacs and separately as well) would be managed in the Emacs install tree using package.el, following the usual activation approach. I never implemented the needed changes on the Emacs side. I don't think anybody else did either. And while this would be an improvement (IMO) it also carries a cost -- you can't refer to these packages before package-initialize is called. So, there's some startup ordering trickiness. Also this doesn't solve all problems. Upgrading packages will be troublesome as long as there's no way to unload a package. Though perhaps async compilation plus offering to restart Emacs would be good enough. Tom