From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: load-path contains directories or directory names? Date: Fri, 23 Oct 2015 09:01:48 -0500 Message-ID: <86lhatfzub.fsf@stephe-leake.org> References: <86lhauus4x.fsf@stephe-leake.org> <83h9lirqr1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445608955 19269 80.91.229.3 (23 Oct 2015 14:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 14:02:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 23 16:02:24 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpcvH-00010t-FR for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2015 16:02:23 +0200 Original-Received: from localhost ([::1]:38681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpcvG-0007yg-Ta for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2015 10:02:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpcv7-0007lv-Hu for emacs-devel@gnu.org; Fri, 23 Oct 2015 10:02:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpcv4-0001tY-AZ for emacs-devel@gnu.org; Fri, 23 Oct 2015 10:02:13 -0400 Original-Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:44238) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Zpcv4-0001sl-33 for emacs-devel@gnu.org; Fri, 23 Oct 2015 10:02:10 -0400 Original-Received: (qmail 13849 invoked by uid 0); 23 Oct 2015 14:02:03 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy8.mail.unifiedlayer.com with SMTP; 23 Oct 2015 14:02:03 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw3 with id Yk1v1r0112UdiVW01k1ykU; Fri, 23 Oct 2015 14:02:01 -0600 X-Authority-Analysis: v=2.1 cv=Zs1+dbLG c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=5lJygRwiOn0A:10 a=mDV3o1hIAAAA:8 a=dVVz90AcPSx8V0Q2dXsA:9 Original-Received: from [76.218.37.33] (port=58818 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1Zpcuq-0000uZ-Of; Fri, 23 Oct 2015 08:01:56 -0600 In-Reply-To: <83h9lirqr1.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Oct 2015 10:25:06 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.33.93 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192488 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Date: Thu, 22 Oct 2015 23:26:54 -0500 >> >> Here `dir' is taken from load-path, or a similar user-provided path. The >> doc string for `load-path' says it consists of "directory names". In >> emacs -Q, `load-path' indeed has no elements that end in '/'. >> >> However, after (package-initialize), `load-path' had elements that end >> in '/'. This comes from package-autoload-ensure-default-file in >> package.el, which adds lines like this to each package's autoload: >> >> "(add-to-list 'load-path (or (file-name-directory #$) (car load-path)))\n" >> >> Is this a bug, or should code that uses `load-path' tolerate this? > > It's a bug, patches are welcome to fix it. Pushed in 4d3a595d8d3e6a111399e9f1c7dd3c3c30184e61 -- -- Stephe