From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: dgutov@yandex.ru, stephen_leake@stephe-leake.org, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names
Date: Wed, 28 Oct 2015 18:53:34 +0200 [thread overview]
Message-ID: <83pozz2aup.fsf@gnu.org> (raw)
In-Reply-To: <jwvlhanynb5.fsf-monnier+emacsdiffs@gnu.org>
> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: emacs-devel@gnu.org, stephen_leake@stephe-leake.org, dgutov@yandex.ru
> Date: Wed, 28 Oct 2015 12:30:27 -0400
>
> >> > 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.
> > It's a very old confusion, yes. But that doesn't mean IMO that we
> > shouldn't try to fix it, at least in those places where it's
> > important. Like this one.
>
> In which way is it important for load-path?
The distinction between these two is important in any place where we
want to refer specifically to one but not the other.
> > If you disagree that this situation is confusing, I guess we will have
> > to agree to disagree, because it sounds confusing to me, and it surely
> > confused Stephen, who is not exactly a newbie.
>
> The problem here is in the manual: "directory name" is a general term
> used in the POSIX world and beyond, and it usually doesn't care whether
> there's a trailing slash.
And the manual clearly notes, for this very reason, "This is not quite
the same as the usual Unix terminology."
> There are a few particular situations where the difference matters,
> indeed, but rather than co-opt the generally known term and load it
> with a more precise semantics than is usual, I'd prefer that we
> introduce new names for "directory name with a slash" and "directory
> name without a slash".
That's a mouthful that no one will use, and we will be back at the
same confusion.
What is wrong with "directory file name"? It is shorter and matches
the name of the function used to return one.
> And in all the cases where the difference shouldn't matter because
> there's no ambiguity, then we shouldn't add extra restrictions.
That's a separate issue. I was talking about the confusion in the
documentation, as you asked about that specifically.
> > The changes to the doc string and to the manual were intended to
> > rectify this confusion. We now define another term, "directory file
> > name",
>
> That's fine to define "directory name without a slash".
>
> > and use it in the doc string of load-path,
>
> That's wrong, because an element of load-path may (or may not) have
> a trailing slash and we should (and do) handle both cases correctly as
> well, and all users of load-path (e.g. Stephen's code) should also
> handle both cases.
I already said that I disagree.
next prev parent reply other threads:[~2015-10-28 16:53 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151023135532.11512.53356@vcs.savannah.gnu.org>
[not found] ` <E1Zpcoe-00030Q-LS@vcs.savannah.gnu.org>
2015-10-24 13:49 ` [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names Stefan Monnier
2015-10-24 14:02 ` Eli Zaretskii
2015-10-24 21:15 ` Stefan Monnier
2015-10-25 3:35 ` Eli Zaretskii
2015-10-26 2:04 ` Stefan Monnier
2015-10-26 3:34 ` Eli Zaretskii
2015-10-26 9:56 ` Stephen J. Turnbull
2015-10-24 21:37 ` Stephen Leake
2015-10-25 18:38 ` Eli Zaretskii
2015-10-26 13:19 ` Stephen Leake
2015-10-26 13:28 ` Dmitry Gutov
2015-10-26 16:24 ` Eli Zaretskii
2015-10-26 17:47 ` Stefan Monnier
2015-10-26 18:30 ` Eli Zaretskii
2015-10-26 18:47 ` Dmitry Gutov
2015-10-26 18:58 ` Eli Zaretskii
2015-10-26 19:01 ` Dmitry Gutov
2015-10-27 13:49 ` Stefan Monnier
2015-10-27 18:25 ` Eli Zaretskii
2015-10-27 19:00 ` Stefan Monnier
2015-10-27 19:17 ` Eli Zaretskii
2015-10-27 22:18 ` Stefan Monnier
2015-10-28 3:42 ` Eli Zaretskii
2015-10-28 4:21 ` Stephen J. Turnbull
2015-10-26 18:37 ` Dmitry Gutov
2015-10-27 13:52 ` Stefan Monnier
2015-10-28 0:24 ` Dmitry Gutov
2015-10-28 2:53 ` Stefan Monnier
2015-10-29 1:04 ` Dmitry Gutov
2015-10-26 20:02 ` Stephen Leake
2015-10-26 20:17 ` Dmitry Gutov
2015-10-27 13:59 ` Stefan Monnier
2015-10-27 18:27 ` Eli Zaretskii
2015-10-27 19:01 ` Stefan Monnier
2015-10-27 19:20 ` Eli Zaretskii
2015-10-27 22:25 ` Stefan Monnier
2015-10-28 7:34 ` David Kastrup
2015-10-28 15:49 ` Davis Herring
2015-10-28 15:59 ` Eli Zaretskii
2015-10-28 16:30 ` Stefan Monnier
2015-10-28 16:53 ` Eli Zaretskii [this message]
2015-10-28 18:22 ` Stefan Monnier
2015-10-28 18:48 ` Eli Zaretskii
2015-10-28 19:25 ` Stefan Monnier
2015-10-28 20:15 ` Eli Zaretskii
2015-10-28 20:18 ` Dmitry Gutov
2015-10-28 20:44 ` Eli Zaretskii
2015-10-29 1:18 ` Stefan Monnier
2015-10-29 8:24 ` David Kastrup
2015-10-29 16:20 ` Eli Zaretskii
2015-10-28 21:02 ` Drew Adams
2015-10-29 1:18 ` Stefan Monnier
2015-10-29 3:40 ` Eli Zaretskii
2015-10-29 5:50 ` Stefan Monnier
2015-11-23 14:14 ` Nicolas Richard
2015-11-23 16:26 ` Eli Zaretskii
2015-10-28 18:19 ` Random832
2015-10-28 22:04 ` Random832
2015-10-29 2:34 ` Richard Stallman
2015-10-29 13:30 ` Wolfgang Jenkner
2015-10-29 2:32 ` Richard Stallman
2015-10-29 4:33 ` Random832
2015-10-29 16:21 ` Eli Zaretskii
2015-10-29 16:31 ` Dmitry Gutov
2015-10-29 16:42 ` Eli Zaretskii
2015-10-29 18:24 ` Dmitry Gutov
2015-10-30 1:10 ` Stefan Monnier
2015-10-30 1:09 ` Stefan Monnier
2015-10-30 8:00 ` Eli Zaretskii
2015-10-30 13:30 ` Stefan Monnier
2015-10-30 13:54 ` Eli Zaretskii
2015-10-30 1:34 ` Richard Stallman
2015-10-30 8:05 ` Eli Zaretskii
2015-10-28 1:31 ` Stephen Leake
2015-10-26 16:21 ` Eli Zaretskii
2015-10-26 17:55 ` Stephen Leake
2015-10-26 18:33 ` Eli Zaretskii
2015-10-26 19:49 ` Stephen Leake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83pozz2aup.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
--cc=stephen_leake@stephe-leake.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).