Jeffrey Juliano <[EMAIL PROTECTED]> writes:
> (setq f "/r@scp:juliano@capefear:.emacs")
> "/r@scp:juliano@capefear:.emacs"
>
> (file-name-directory f) ; why is "scp:" both here
> "/r@scp:"
>
> (file-name-nondirectory f) ; and here?
> "r@scp:juliano@capefear:.emacs"
Daniel has some good suggestions, but I'm not sure I want to do _that_
many workarounds. I think this problem is peculiar to files which do
not mention the remote directory. What happens if you try
/r@scp:juliano@capefear:~/.emacs instead? Note the ``~/'' part.
I just tested this on my FreeBSD Emacs 20.4 (emacs -q -no-site-file,
not loading rcp.el) and it seemed to do something sensible. If that
works with NT Emacs, too, then I think it is reasonable to require the
users to explicitly specify the remote directory.
What do you think?
kai
--
Life is hard and then you die.