From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Mattie Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Sat, 5 Mar 2011 23:21:51 -0800 Message-ID: <20110306072147.GA11067@event-horizon.homenet> References: <87ei6mz24h.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" X-Trace: dough.gmane.org 1299396135 9027 80.91.229.12 (6 Mar 2011 07:22:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 07:22:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 06 08:22:11 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 1Pw8I6-0001uk-AT for ged-emacs-devel@m.gmane.org; Sun, 06 Mar 2011 08:22:10 +0100 Original-Received: from localhost ([127.0.0.1]:55584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw8I5-0004tn-Gc for ged-emacs-devel@m.gmane.org; Sun, 06 Mar 2011 02:22:09 -0500 Original-Received: from [140.186.70.92] (port=59593 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw8Hu-0004tg-LN for emacs-devel@gnu.org; Sun, 06 Mar 2011 02:22:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pw8Ht-0003IK-4o for emacs-devel@gnu.org; Sun, 06 Mar 2011 02:21:58 -0500 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:33576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pw8Hs-0003Hz-U9 for emacs-devel@gnu.org; Sun, 06 Mar 2011 02:21:57 -0500 Original-Received: by pvg4 with SMTP id 4so849040pvg.0 for ; Sat, 05 Mar 2011 23:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=CHn2BIJ43aLgzrQ5iltMmrASCLeLC1IklDGQ2VY9LYk=; b=nvNYep0/GQNO/smtlrq4BIjftc03B68X67Svuolgbv4mK7b/a4msJQj2+YgRG0wZ8k DE+W9oJ422NYcMvE9YAaY7i+Sk1ZJnkCoJEVr965anFeZldbYL1qjKGBVhXOFkRczhf4 80cLBMFOHEVUy6VxhHIVLT9flEZQ3gIBiIunE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=aSovY/Yn5opBWkTTiYaCfDUadlwOQiphk/UcrPdPF0FkDLKQFtzCtTPIl3hOzk2pCw TbvQGNShtltZ2uNwXVfoySuA2LjuHIiesQh9CL8JhbAtaS7uIyIiOAt0KIZOF0YUOGui c2WkftAZGiUmicOLW+F3ahiUzQeNEiUxD2r+A= Original-Received: by 10.142.141.10 with SMTP id o10mr1984035wfd.350.1299396115245; Sat, 05 Mar 2011 23:21:55 -0800 (PST) Original-Received: from event-horizon.homenet (47.sub-72-102-109.myvzw.com [72.102.109.47]) by mx.google.com with ESMTPS id o11sm2172613wfa.12.2011.03.05.23.21.53 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Mar 2011 23:21:54 -0800 (PST) Content-Disposition: inline In-Reply-To: <87ei6mz24h.fsf@lifelogs.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.169 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:136807 Archived-At: --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 04, 2011 at 09:18:22PM -0600, Ted Zlatanov wrote: > On Fri, 04 Mar 2011 22:33:35 +0100 Dimitri Fontaine wro= te:=20 >=20 > DF> Tom Tromey writes: > >> If somebody added the feature you want to Emacs, presumably it would > >> only be in Emacs 24, leaving you in the same situation. >=20 > DF> Point. I would still prefer to depend on user-load-path or something, > DF> it strikes me as more general: you don't have to edit existing script= s. >=20 > Tom is talking about one thing (package management) and we're talking > about another (generic Lisp snippet management). Sure, you can do the > latter with the former, but it's a long stretch and is fighting the > user. Look, if I just want to put a file with >=20 > (setq myvar xyz) >=20 > or the el-get initialization, or whatever in the user-load-path, why do > I have to make a package out of it? >=20 > By analogy consider some of the software that lets you put a snippet in > a conf.d directory, obviously implying that this is convenient for the > user. This is just a sampling from my machine: >=20 > apache2 > newer crons (/etc/cron.d) > AppArmor > Grub > libpaper > sudo > logrotate > rsyslog > modprobe > sane > PAM >=20 > Why not provide the same level of convenience in Emacs? Other than > security, what's the argument against it? We all understand the > benefits of modularization made easy, right? >=20 > Ted >=20 >=20 There are ways to solve the problem you are looking at without wiring more logic into Emacs. Use the .emacs file as a more sophisticated loader for a complex configuration when necessary. I have done this with my Grail project (on EmacsWiki), as has tidyconfig. I would look at these solutions first before proposing code that has to be wired into the bootstrap codepath. There are a number of issues a reliable loader should address: how does it handle errors ? how does it handle --batch ? how does it handle --daemon ? how simple,transparent,debuggable is the loader code ? I have not seen any code so far in your proposal unless I accidentally skipped or deleted a message with it. --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEABECAAYFAk1zNgsACgkQdfRchrkBInnniACfXv3PhKB1GGNBC3HGPDfgTd/w fJ0AoLqxlPO138QGSHU0aGzesM5sfgpx =GU9I -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--