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: Tue, 8 Mar 2011 22:26:01 -0800 Message-ID: <20110309062554.GB2042@event-horizon.homenet> References: <87ei6mz24h.fsf@lifelogs.com> <20110306072147.GA11067@event-horizon.homenet> <871v2i525h.fsf@lifelogs.com> <20110308004724.GA1952@event-horizon.homenet> <87k4g9x5hq.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="FkmkrVfFsRoUs1wW" X-Trace: dough.gmane.org 1299651989 15623 80.91.229.12 (9 Mar 2011 06:26:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2011 06:26:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 09 07:26:24 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 1PxCqk-0008NV-SJ for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2011 07:26:23 +0100 Original-Received: from localhost ([127.0.0.1]:57086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxCqk-0005Cn-3E for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2011 01:26:22 -0500 Original-Received: from [140.186.70.92] (port=42653 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxCqW-0005BG-MP for emacs-devel@gnu.org; Wed, 09 Mar 2011 01:26:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxCqV-0001aG-Ka for emacs-devel@gnu.org; Wed, 09 Mar 2011 01:26:08 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:37144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxCqV-0001a3-B5 for emacs-devel@gnu.org; Wed, 09 Mar 2011 01:26:07 -0500 Original-Received: by iwl42 with SMTP id 42so296030iwl.0 for ; Tue, 08 Mar 2011 22:26:06 -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=K+3vTj5BVF3cCVWIc5U9OTtL2E938dc6UPPwabXnWWo=; b=D1fCs6TFFaAZShaLuNNvxEw81PoIA/pDmwVIlqW+jFv+ynJHJMAaefwZUimhzheXaf 9FgyGWfvI0bLO5v7UugVxQ8d51FbtkCfNbUBrcHZITAqlsfdZjJuBiGJ+CON3Nje7ecO /YeBMfggOObn8K1ZTN5t0NEOK7MaACJ+q4Xq4= 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=j6NXA1Rf7EZBzK2PNYzH5pB81STEsuawIsCPaXyyDHgzW2TGyIYzm9kjudREa442eZ p/biJcCNQHc/oPA0sL7U7O9VkSvO81TmS8B3s6aoF4gLqYh4aDRDwSRLcvTZu2en6Hab VUKyhyTr7jdIs3rcD2beaSZmm2bo+hRLKDhRg= Original-Received: by 10.42.1.74 with SMTP id 10mr7454225icf.431.1299651966192; Tue, 08 Mar 2011 22:26:06 -0800 (PST) Original-Received: from event-horizon.homenet (115.sub-75-196-97.myvzw.com [75.196.97.115]) by mx.google.com with ESMTPS id gy41sm1255550ibb.23.2011.03.08.22.26.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 22:26:05 -0800 (PST) Content-Disposition: inline In-Reply-To: <87k4g9x5hq.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: 209.85.214.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:136938 Archived-At: --FkmkrVfFsRoUs1wW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 08, 2011 at 04:37:37AM -0600, Ted Zlatanov wrote: > On Mon, 7 Mar 2011 16:47:27 -0800 Mike Mattie wro= te:=20 >=20 > MM> As far as error-handling goes grail does shine a bit in that errors w= ithin > MM> a file are trapped, meaning that mistakes in one file does not cause = the > MM> entire configuration to abort leading to a --debug-init situtation. I= n this > MM> regard Grail is extremely robust. >=20 > That sounds useful indeed. >=20 > MM> I am seriously considering how to add the kind of functionality you w= ant to > MM> Grail. I would like to add it to broaden the usefullness of Grail. I = do not > MM> like the idea of hacking another load-path 'ish variable into Emacs w= hen simply > MM> adding elisp to manage load-path is an option. Two similar variables = is simply > MM> bad design. >=20 > Maybe you could provide separate packages: grail-loader, grail-load-dir > (the snippets directory), and grail-modules (the current Grail modules > like keys.el). Then users can choose which layout they prefer and still > get the benefit of a safe loader. Or perhaps grail-load-dir can simply > be part of grail-loader. I have been reading this thread very carefully and have given the snippets proposal alot of thought. I am willing to add a snippets directory like functionality. I would require the user to execute a command to signal to grail that the user has placed a new file in the snippets directory. BTW, Grail does allow you to change the layout, by creating a grail-cfg.el file in USER_ELISP (see the Grail page for the meaning of that variable). grail-cfg.el is loaded if it exists right after the default tree is defined in defvar's and before the heavy lifting is done in terms of loading. >=20 > Ted >=20 >=20 --FkmkrVfFsRoUs1wW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEABECAAYFAk13HXIACgkQdfRchrkBInnsNgCfbvPww0yc7WDPRjqkHu58p0vY oBAAmgPH0J5Q/quh7IlJvHXu+BEj7WWX =uM5I -----END PGP SIGNATURE----- --FkmkrVfFsRoUs1wW--