unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: John Wiegley <johnw@newartisans.com>, Eli Zaretskii <eliz@gnu.org>
Cc: michael_heerdegen@web.de, stephen_leake@stephe-leake.org,
	emacs-devel@gnu.org
Subject: RE: load-path contains directories or directory names?
Date: Sun, 25 Oct 2015 14:58:44 -0700 (PDT)	[thread overview]
Message-ID: <c2d56ea9-a239-46c6-85c1-75e598b93a34@default> (raw)
In-Reply-To: <m237wykbiz.fsf@newartisans.com>

> > IMO, either remove and replace with 'expand-file-name', or describe both
> > with a preference to 'expand-file-name'.
> 
> Oh, it doesn't already talk about expand-file-name? It should state the
> solution in terms of `expand-file-name', and then maybe mention in a note
> that it's implemented as a platform-path-correct use of `concat' under the hood.
> Or not mention `concat' at all, either way.

I think the doc about file and directory names _should_ mention
`concat', as that is the gotcha: users are often used to using
it to concatenate strings, and some naturally think of using it
for constructing file names.  (File names are strings, but not
all strings are file names.)

I think the doc should explicitly point out that `concat' has no
notion of file names and their syntax subtleties, and that
file-name construction and decomposition are the raison d'etre
for the functions described in (elisp) File Names and its subnodes.

But definitely, at least node Directory Names should not suggest
that users use `concat'.  On that I agree with you, and that's
the main point here.



  reply	other threads:[~2015-10-25 21:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-23  4:26 load-path contains directories or directory names? Stephen Leake
2015-10-23  7:25 ` Eli Zaretskii
2015-10-23 14:01   ` Stephen Leake
2015-10-23 22:57 ` Michael Heerdegen
2015-10-24  1:00   ` John Wiegley
2015-10-24 21:46     ` Stephen Leake
2015-10-24 22:48       ` Michael Heerdegen
2015-10-25 18:39       ` Eli Zaretskii
2015-10-25 19:02         ` John Wiegley
2015-10-25 19:08           ` Eli Zaretskii
2015-10-25 19:12             ` John Wiegley
2015-10-25 21:58               ` Drew Adams [this message]
2015-10-26 13:27               ` Stephen Leake
2015-10-26 13:46         ` Stephen Leake
2015-10-26 16:29           ` Eli Zaretskii

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=c2d56ea9-a239-46c6-85c1-75e598b93a34@default \
    --to=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@newartisans.com \
    --cc=michael_heerdegen@web.de \
    --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).