From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evans Winner Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Thu, 17 Mar 2011 00:31:34 -0600 Message-ID: <87vcziqmux.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1300343339 28849 80.91.229.12 (17 Mar 2011 06:28:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2011 06:28:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 17 07:28:55 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 1Q06ha-0004bC-I1 for ged-emacs-devel@m.gmane.org; Thu, 17 Mar 2011 07:28:54 +0100 Original-Received: from localhost ([127.0.0.1]:49286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q06hV-0007Ea-5x for ged-emacs-devel@m.gmane.org; Thu, 17 Mar 2011 02:28:49 -0400 Original-Received: from [140.186.70.92] (port=38835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q06hP-0007Cu-9A for emacs-devel@gnu.org; Thu, 17 Mar 2011 02:28:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q06hN-0002tD-U6 for emacs-devel@gnu.org; Thu, 17 Mar 2011 02:28:43 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q06hN-0002sy-IO for emacs-devel@gnu.org; Thu, 17 Mar 2011 02:28:41 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q06hJ-0004XX-JL for emacs-devel@gnu.org; Thu, 17 Mar 2011 07:28:37 +0100 Original-Received: from 67.42.142.120 ([67.42.142.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Mar 2011 07:28:37 +0100 Original-Received: from ego111 by 67.42.142.120 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Mar 2011 07:28:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 67.42.142.120 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:DoQKk8OBXIcEPsiYzOz07XUL1E8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:137331 Archived-At: ,------ Ben Key wrote ------ | I do think it is important to trap errors though.  If | you do not, and you call this new load directory | function in your .emacs file, Emacs initialization will | abort at the first error leaving your Emacs session | half configured (any code positioned after the call to | load directory will not run).  I do not think this is a | good idea.  I do not feel very strongly about this | though. I am not sure if you are talking about having Emacs silently ignore files in the loaded directory which don't load properly. Personally, I would prefer such a function do no error handling at all with the exception of perhaps making sure its input argument is indeed a directory name. When a library is loaded by this or any other function on startup I want Emacs to stop there and let me know about it, which is the normal behavior at them moment I believe. By the way, a version of `load-dir' that I sent Ben Key a week or so ago mostly/partly includes handling of gzipped libraries (or whatever is returned by `get-load-suffixes') which seemed a useful variation, though it occurs to me that I don't know if that is portable across platforms. For, as usual, what it may be worth.