From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: package.el, auto-installation, and auto-removal Date: Tue, 11 Nov 2014 11:31:26 +0000 Message-ID: <8761emkm7l.fsf@ferrier.me.uk> References: <87a943umku.fsf@lifelogs.com> <87ppcvm7fj.fsf@newcastle.ac.uk> <87vbmndk46.fsf@lifelogs.com> <87bnoeed7v.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415705513 7860 80.91.229.3 (11 Nov 2014 11:31:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 11:31:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 11 12:31:46 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 1Xo9fm-0000hv-82 for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2014 12:31:46 +0100 Original-Received: from localhost ([::1]:47929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo9fl-0006qc-P1 for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2014 06:31:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo9fb-0006fW-6y for emacs-devel@gnu.org; Tue, 11 Nov 2014 06:31:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xo9fV-0006aG-BA for emacs-devel@gnu.org; Tue, 11 Nov 2014 06:31:35 -0500 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:55355 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo9fV-0006Ya-5t for emacs-devel@gnu.org; Tue, 11 Nov 2014 06:31:29 -0500 Original-Received: from nicferrier-dell-xps (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTPA id 3FB3CAC0498; Tue, 11 Nov 2014 12:49:49 +0100 (CET) Original-Received: from nicferrier-XPS13-9333 (localhost [127.0.0.1]) by nicferrier-dell-xps (Postfix) with ESMTPS id D98FE6BA00; Tue, 11 Nov 2014 11:31:26 +0000 (GMT) In-Reply-To: (Stefan Monnier's message of "Mon, 10 Nov 2014 21:26:14 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 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:176743 Archived-At: Stefan Monnier writes: >> I provided URLs to Pallet's repo on Github and to Nic's comparison of >> Cask (which Pallet uses underneath) and elpakit (the comparison is on >> the elpakit repo home page, also on Github). I described how Pallet >> currently works with advice and how it could be improved to use hooks. >> Sorry if I didn't explain things better. What's unclear? > > I guess I just don't understand what those things do, nor how they do > it, and your explanations didn't really help. > > E.g. does one of those things make it so that M-x package-install will > add the package to some list of "explicitly installed packages"? > If so, which tool, and how does it do it? AFAICT it can only do that > via advice currently. Of course, it can be changed to use hooks, but > why bother, when we can just modify package-install directly? Having thought about it that seems like the best thing. Just add another property to the package somehow that says "the user installed this directly". Maybe keep that along side the archive as well as in the archive so that it can be mixed in when you refresh the indexes. It would be nice to keep it as a directory structure because they are easier to edit: .emacs.d/elpa/ .emacs.d/elpa/archives/ .emacs.d/elpa/archives/marmalade/ .emacs.d/elpa/archives/gnu/ .emacs.d/elpa/archives/user-installed/ .emacs.d/elpa/archives/user-installed/elnode .emacs.d/elpa/archives/user-installed/rcirc Nic