GNU bug report logs -
#23006
25.0.92; Loading Tramp breaks pcomplete in eshell-mode
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Mon, 14 Mar 2016 02:02:01 UTC
Severity: normal
Found in version 25.0.92
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> What do you expect (file-name-directory "/davs:") to return else?
IIUC "/davs:hello.c" is parsed as a reference to a file on the host
"davs" and we nowadays signal an error in that case telling the user to
use an explicit "/ssh:davs:hello.c" instead.
At least that's how I interpret the
tramp-file-name-handler: Host name must not match method "davs"
(replace "davs" with "adb" and friends depending on your particular
case) we get in the recipe.
So, assuming this interpretation is correct, I think "/davs:" should not
be considered a valid "directory" name.
So I see two options:
- (file-name-directory "/davs:") returns "/"
- (file-name-directory "/davs:") returns "/davs:" and Tramp accepts
(file-name-all-completions "" "/davs:") without signaling an error.
> And yes, in this case no trailing slash is added. Hmm, maybe it shall
> return "/davs:./". Would this be better?
I don't know what are the tradeoffs in this regard, so I have no
preference in this regard. But what (file-name-directory "/davs:")
returns should be a directory name that file-name-all-completions can
use and to the extent that "/davs:" is the prefix of valid file names,
file-name-all-completions should not signal an error (it's acceptable if
it doesn't actually lists all those valid file names, OTOH).
Stefan
This bug report was last modified 8 years and 68 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.