Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: (concat "/dir/name/" "foo") --> (expand-file-name "foo" "/dir/name/")
Date: 16 Oct 2000 16:39:25 -0400	[thread overview]
Message-ID: <m3y9zowmek.fsf@multivac.student.cwru.edu> (raw)
In-Reply-To: Dave Love's message of "Mon, 16 Oct 2000 19:12:18 +0100"

Dave Love <d.love@dl.ac.uk> writes:
> I don't understand this.  One of the points about expand-file-name is
> that it gets to do magic depending on the file name.

Right.  Now suppose you have a file name that would invoke magic if
expanded, but that you want to interpret literally - maybe it came
from directory-files, for example - so it might contain arbitrary
characters, but you know that it needs no massaging to become the name
of an actual file.  In that case, expand-file-name won't necessarily
give you the file name you want.

>  PJ> I think file-name-as-directory and directory-file-name are
>  PJ> idempotent on all platforms, although they aren't documented as
>  PJ> such, AFAICT.
> 
> I'm not sure why that's relevant,

I'm not sure *that* it's relevant.  I mentioned it only in passing.

> but even if it's generally true in the absence of handlers -- I
> don't know -- I don't think you can say what a random handler might
> do, e.g. for remote files on an arbitrary system.

expand-file-name, file-name-as-directory and directory-file-name are
just string operations.  Handlers aren't involved until I/O is
attempted, AFAIK.


paul



  reply	other threads:[~2000-10-16 20:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-13 20:55 Kai Großjohann
2000-10-13 21:13 ` Paul Jarc
2000-10-13 22:19   ` Kai Großjohann
2000-10-16 18:12   ` Dave Love
2000-10-16 20:39     ` Paul Jarc [this message]
2000-10-16 22:36       ` Daniel Pittman
2000-10-18 17:55       ` Dave Love
2000-10-18 21:35         ` Paul Jarc
2000-10-22 16:00           ` Dave Love
2000-10-22 18:10             ` Paul Jarc
2000-10-22 18:51               ` Kai Großjohann
2000-10-23  0:45                 ` Paul Jarc
2000-10-23  7:52                   ` Kai Großjohann
2000-10-23 15:29                     ` Paul Jarc
2000-10-19  1:11         ` Daniel Pittman
2000-10-22 16:02           ` Dave Love

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y9zowmek.fsf@multivac.student.cwru.edu \
    --to=prj@po.cwru.edu \
    /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.
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 NNTP newsgroup(s).