From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Auto-installing packages? Date: Fri, 14 Sep 2018 15:11:00 +0100 Message-ID: <87a7okkw3v.fsf@russet.org.uk> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536934226 29633 195.159.176.226 (14 Sep 2018 14:10:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2018 14:10:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 16:10:22 2018 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 1g0onc-0007XA-6Q for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2018 16:10:20 +0200 Original-Received: from localhost ([::1]:51899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0opi-0005JK-DL for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2018 10:12:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0op1-0005JE-LQ for emacs-devel@gnu.org; Fri, 14 Sep 2018 10:11:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0ooz-0000Mt-1t for emacs-devel@gnu.org; Fri, 14 Sep 2018 10:11:47 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:44373) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0ooy-0007ks-Js for emacs-devel@gnu.org; Fri, 14 Sep 2018 10:11:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pdhXDkbYRLnc3o64eroDEPBdxTx/2/ztBi6UxUWoh3Y=; b=YZZIgwxQtGW6Rq1j69Hdxu6uV JNfUGOsRB9v/HKcw1W4myeXd9kSBLZQrZKuNElu52MoMrdP1oieATQeP2reJJn908lqNdb5vBIqu6 E0YPz5wdkBAA91rvxL4N+dBbNUDtw9liPsKLZDxE8jKl3FNuJElJRG2L6f+c5TJ78TWV/61G9EJIE vI3oMZZDdi4b2pfbBMTUEfQaJFwQJLZKJezzRx+Tq4fLaC8m0Z06IB6f3WCikv0D9ZqNXqnfXrURR 6KmISiZJE1U9PRH1x3RmhOtap9qxJM2U0BhOH9oq+bpXG952SMfnUEjol4tX46v56ftakrvmJmJ8D Fbavhqbhg==; Original-Received: from janus-nat-128-240-225-124.ncl.ac.uk ([128.240.225.124]:47334 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1g0ooH-00CN45-FH; Fri, 14 Sep 2018 14:11:01 +0000 In-Reply-To: (Stefan Monnier's message of "Thu, 13 Sep 2018 21:51:09 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 78.129.138.110 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:229779 Archived-At: Stefan Monnier writes: > Every time I see someone asking for or posting a little Elisp snippet > that automatically installs packages at Emacs startup, I'm wondering how > to answer that need: OT1H I find such requests fundamentally flawed in > terms of security, privacy, and reliability, but OTOH they correspond to > a real desire and lots of our users seem to not only be willing to > forego their security, privacy and reliability for that feature, but > they actually do so. > > So, I'm wondering how we could better serve our users by providing them > with an alternative solution to their underlying need, which hopefully > suffers less from those problems. > > Maybe some way to have something along the line of autoloads but that > instead of loading the Elisp code from a locally installed package, they > prompt the user explaining that this functionality requires installing > package FOO, etc? I use `use-package' to "automatically" install packages for me. I use several machines and sync my configuration between them. The packages I want get auto-installed this way. Also, when I update Emacs, I re-install all my packages. The auto-installing, autoload would be nice. It would answer the long-standing desire to incorporate ELPA packages more deeply into Emacs. However, to make it work well, I think, ELPA needs updating to support multiple versions of packages for multiple versions of Emacs. Phil