From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: package.el, auto-installation, and auto-removal Date: Tue, 11 Nov 2014 11:22:11 -0500 Message-ID: References: <87a943umku.fsf@lifelogs.com> <87ppcvm7fj.fsf@newcastle.ac.uk> <87vbmndk46.fsf@lifelogs.com> <87bnoeed7v.fsf@lifelogs.com> <8761emkm7l.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415722981 17777 80.91.229.3 (11 Nov 2014 16:23:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 16:23:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nic Ferrier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 11 17:22:54 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 1XoEDV-0002m2-Qw for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2014 17:22:53 +0100 Original-Received: from localhost ([::1]:49527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoEDV-0000bH-An for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2014 11:22:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoED0-0000Pm-Uh for emacs-devel@gnu.org; Tue, 11 Nov 2014 11:22:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoECt-0007Pm-Ai for emacs-devel@gnu.org; Tue, 11 Nov 2014 11:22:22 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoECt-0007P8-6M for emacs-devel@gnu.org; Tue, 11 Nov 2014 11:22:15 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id sABGM9xv011220; Tue, 11 Nov 2014 11:22:11 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C7C5D66100; Tue, 11 Nov 2014 11:22:11 -0500 (EST) In-Reply-To: <8761emkm7l.fsf@ferrier.me.uk> (Nic Ferrier's message of "Tue, 11 Nov 2014 11:31:26 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5122=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5122> : inlines <1512> : streams <1340713> : uri <1834260> 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.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:176755 Archived-At: > 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 I was thinking of keeping it in a Custom var, since that's easy to edit. So the equivalent of a Cask file could look like % cat CaskNG.el (setq package-archives ((gnu ...) (melpa ...))) (setq packages-installed '(dash foo bar)) ... % and you could run your tests with something like emacs --batch -l CaskNG.el -f package-install-packages ... So, my request is for someone to help set up the core of this, i.e. add the `packages-installed' var (automatically updated by package-install/delete and friends (I notice now that package-delete is not a command, surprisingly)), and add the package-install-packages command (so users can install their packages on a new system simply by setting packages-installed and then running package-install-packages). Bonus points for writing `package-gc' which deletes packages not required by packages-installed. Stefan