From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Sat, 19 Mar 2011 22:58:15 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300589911 9412 80.91.229.12 (20 Mar 2011 02:58:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 02:58:31 +0000 (UTC) Cc: tzz@lifelogs.com, Emacs-devel@gnu.org To: Ben Key Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 03:58:25 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 1Q18qX-0000Vz-1L for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2011 03:58:25 +0100 Original-Received: from localhost ([127.0.0.1]:47767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q18qW-0002Go-EF for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 22:58:24 -0400 Original-Received: from [140.186.70.92] (port=51358 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q18qQ-00028z-1x for Emacs-devel@gnu.org; Sat, 19 Mar 2011 22:58:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q18qO-0005HH-N0 for Emacs-devel@gnu.org; Sat, 19 Mar 2011 22:58:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:1855 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q18qO-0005H5-E4 for Emacs-devel@gnu.org; Sat, 19 Mar 2011 22:58:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEABYKhU1Ld/X5/2dsb2JhbACldHiITbhPhWMElWk X-IronPort-AV: E=Sophos;i="4.63,213,1299474000"; d="scan'208";a="97263814" Original-Received: from 75-119-245-249.dsl.teksavvy.com (HELO pastel.home) ([75.119.245.249]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Mar 2011 22:58:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 592875914C; Sat, 19 Mar 2011 22:58:15 -0400 (EDT) In-Reply-To: (Ben Key's message of "Sat, 19 Mar 2011 00:10:26 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:137443 Archived-At: > 1. Each of the defcustom items now has a require property. > The main benefit of this is that a user may now simply place > load-dir.el in their load path, use M-x load-library to load > 'load-dir' and then do a M-x customize-group to customize the > 'load-dir' group, customize load-dirs, and restart Emacs. There is > no need to also manually edit their .emacs file to add a '(require > 'load-dir)' in order to actually cause Emacs to load load-dir.el. If it's meant as an ELPA package, this is unneeded, since just installing the package can cause installation of some autoloads. This is important because the use of :require in defcustoms is generally discouraged (it places the feature name (i.e. the file name) into the user's custom-file, so if the feature gets moved to another file or of the file gets renamed, previous cutomizations tend to signals errors about not finding the old file name). Stefan