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: [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names Date: Tue, 27 Oct 2015 18:25:52 -0400 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445984786 18212 80.91.229.3 (27 Oct 2015 22:26:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2015 22:26:26 +0000 (UTC) Cc: emacs-devel@gnu.org, stephen_leake@stephe-leake.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 27 23:26:13 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 1ZrCh1-0004fK-2Q for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2015 23:26:11 +0100 Original-Received: from localhost ([::1]:34667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrCgz-0004Oa-Vl for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2015 18:26:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrCgn-0004OO-6z for emacs-devel@gnu.org; Tue, 27 Oct 2015 18:25:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrCgk-0000gH-2v for emacs-devel@gnu.org; Tue, 27 Oct 2015 18:25:57 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:57166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrCgj-0000g0-Sm; Tue, 27 Oct 2015 18:25:54 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t9RMPqEu011051; Tue, 27 Oct 2015 18:25:52 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5E95FAE28A; Tue, 27 Oct 2015 18:25:52 -0400 (EDT) In-Reply-To: <8337ww3ypz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Oct 2015 21:20:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5472=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5472> : inlines <3953> : streams <1528451> : uri <2071502> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:192758 Archived-At: > The manual says "directory name" ends in a slash, and talks about > "file name of a directory" which doesn't. I don't think we generally use the term "directory name" in such a strict sense. At the very least, in all these years, I never noticed that this term had such a precise meaning and it's never bitten me. And indeed, if you look for this in the texi documentation, you see things like: means that the alist applies to any mode; or you can specify a subdirectory name (a string), in which case the alist applies to all files in that subdirectory. Here's an example of a @file{.dir-locals.el} file: @example ((nil . ((indent-tabs-mode . t) (fill-column . 80))) (c-mode . ((c-file-style . "BSD") (subdirs . nil))) ("src/imported" . ((nil . ((change-log-default-name . "ChangeLog.local")))))) @end example where "src/imported" lacks a trailing slash. > The doc string used "directory name" while the strings in load-path > didn't end in a slash. That doesn't sound like a problem to me. I still think: "directory name" is used all over the place to mean "with or without trailing slash, it doesn't matter", so the original doc-string was fine. -- Stefan