On Tue, 08 Oct 2002, Stephen J. Turnbull wrote:
Oh, BTW, here's the docs I'm basing my guesses on.
>>>>> "Andy" == Andy Piper <andy(a)xemacs.org> writes:
Andy> I guess my question is, what is: file-truename("c:\\*.txt")
Andy> supposed to do? Is it documented?
The documentation says
[...]
On Unix, (file-truename "/*.txt") returns
"/*.txt". I believe this is
correct. There is no requirement that the path name a unique existing
file, and it definitely doesn't say anything about expanding globs.
Changing this will cause TRAMP to break in nasty ways, potentially, or
code that relies on the glob expansion to break when used with TRAMP.
Glob expansion and path canonicalization have also been distinct
operations for a very long time under Unix; it's probably best to
preserve that.
...the right thing to do is probably to extend `find-file' to be glob
expansion when operating interactively, which will do what anyone who
likes the expansion in `file-truename' really wants if they think about
it.[1]
Daniel
Footnotes:
[1] It has the added advantage of doing something I would like to see
as well. :)
--
Sometimes a neighbor whom we have disliked a lifetime for his arrogance and
conceit lets fall a single commonplace remark that shows us another side,
another man really; a man uncertain, puzzled and in the dark like ourselves.
-- Willa Silbert Cather, _Shadows on the Rock_ (1873-1947)