From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names Date: Thu, 29 Oct 2015 18:21:31 +0200 Message-ID: <83y4el1w8k.fsf@gnu.org> References: <20151023135532.11512.53356@vcs.savannah.gnu.org> <83mvv8wejc.fsf@gnu.org> <86bnboeymw.fsf@stephe-leake.org> <83wpuadc9k.fsf@gnu.org> <86d1w1ahsy.fsf@stephe-leake.org> <562E2A8A.1030601@yandex.ru> <83wpu9bns4.fsf@gnu.org> <86fv0x8kl6.fsf@stephe-leake.org> <83d1w0416d.fsf@gnu.org> <8337ww3ypz.fsf@gnu.org> <83vb9r2ddg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446135746 10997 80.91.229.3 (29 Oct 2015 16:22:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2015 16:22:26 +0000 (UTC) Cc: dgutov@yandex.ru, stephen_leake@stephe-leake.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 29 17:22:12 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 1Zrpxj-00032K-3N for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 17:22:03 +0100 Original-Received: from localhost ([::1]:45236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrpxi-0005Rz-Hg for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 12:22:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrpxU-0005Rg-3L for emacs-devel@gnu.org; Thu, 29 Oct 2015 12:21:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrpxQ-0006vo-Ju for emacs-devel@gnu.org; Thu, 29 Oct 2015 12:21:48 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:40449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrpxQ-0006vP-CM; Thu, 29 Oct 2015 12:21:44 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NWZ00N00PCIIC00@mtaout26.012.net.il>; Thu, 29 Oct 2015 18:24:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWZ00LADPLK6O30@mtaout26.012.net.il>; Thu, 29 Oct 2015 18:24:56 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:192911 Archived-At: > From: Richard Stallman > Date: Wed, 28 Oct 2015 22:32:58 -0400 > Cc: emacs-devel@gnu.org, stephen_leake@stephe-leake.org, > monnier@IRO.UMontreal.CA, dgutov@yandex.ru > > The elements of 'load-path' (and every ...-path variable) > should properly be directory names, not file names. What's the rationale for that? > Some things, perhaps many, will handle directory file names > in these variables, and it is ine being defensive in that way; > but clean code will only put directory names into the lists. We have never done that, AFAICS, neither with load-path, nor with exec-path. The value of load-path comes from directory-files, where directories don't have trailing slashes. The value of exec-path comes from the environment variable PATH, where usually you won't see trailing slashes, either. Once we agree with the rationale, it's okay to make these lists have directory names instead, but we need to code that, it won't happen by itself. And I see no such code in the history of Emacs since these variables were introduced. So apparently we never had directory names in these variables, only directory file names.