From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Mon, 7 Mar 2011 12:39:32 -0800 Message-ID: References: <87ei6mz24h.fsf@lifelogs.com> <20110306072147.GA11067@event-horizon.homenet> <871v2i525h.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1299532021 3687 80.91.229.12 (7 Mar 2011 21:07:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 21:07:01 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 07 22:06:56 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pwhdi-0004Mi-Ml for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2011 22:06:56 +0100 Original-Received: from localhost ([127.0.0.1]:39844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwhRI-00040h-LS for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2011 15:54:00 -0500 Original-Received: from [140.186.70.92] (port=37690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwhR9-0003yP-NH for emacs-devel@gnu.org; Mon, 07 Mar 2011 15:53:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwhR8-0007aw-K9 for emacs-devel@gnu.org; Mon, 07 Mar 2011 15:53:51 -0500 Original-Received: from p3plsmtpa01-10.prod.phx3.secureserver.net ([72.167.82.90]:46918) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PwhR6-0007XH-Nb for emacs-devel@gnu.org; Mon, 07 Mar 2011 15:53:50 -0500 Original-Received: (qmail 29304 invoked from network); 7 Mar 2011 20:44:57 -0000 Original-Received: from unknown (209.85.161.41) by p3plsmtpa01-10.prod.phx3.secureserver.net (72.167.82.90) with ESMTP; 07 Mar 2011 20:44:56 -0000 Original-Received: by fxm5 with SMTP id 5so5317509fxm.0 for ; Mon, 07 Mar 2011 12:44:48 -0800 (PST) Original-Received: by 10.223.55.201 with SMTP id v9mr441678fag.76.1299530372109; Mon, 07 Mar 2011 12:39:32 -0800 (PST) Original-Received: by 10.223.97.71 with HTTP; Mon, 7 Mar 2011 12:39:32 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 72.167.82.90 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136847 Archived-At: On 3/7/11, Stefan Monnier wrote: >> They are not packages, they are snippets of code. ELPA requires far >> more structure and many more steps. For what I'm proposing, a lot less >> work is required (just a y/n prompt the first time a snippet is found to >> ensure it's not placed there maliciously). > > There's no reason why package.el can't accept any random elisp file. I think this proposal is really about code snippets that people would otherwise just cut and paste into their .emacs file. The average user's .emacs often winds up containing mostly code they found somewhere and use without really understanding it. Dropping each snippit in its own file would be a big help if the user ever did need to debug some problem with his init, or if he decided one day to actually learn elisp. (I din't know if the security/hash thing is really necessary. If the attacker already has write access to your home directory, how much worse can it get?) -PJ