Excerpts from mail: (03-Mar-99) Re: rcp.el 1.48: name change, defaults change by
Francesco Potorti`
> I think that rssh.el (or rcp.el, or whatever) should have an association
> list of prefixes and behaviours. Some behaviours should be:
>
> /r: rcp
> /s: scp
> /f: translate to / and give it to ange-ftp
That's a pretty nifty idea!
Here's another behavior we could possibly add:
/h: (for http) translate into a URL and pass it off to w3 or retrieve
it using wget
Excerpts from mail: (03-Mar-99) Re: rcp.el 1.48: name change, defaults change by Kai
Grossjohann
> "Edward J. Sabol" <[EMAIL PROTECTED]> writes:
>> On an unrelated topic, does anyone here use complete.el (which comes with
>> Emacs 19.3x and higher, I think) to be able to `find-file' on file names
>> like "*.[ch]"? I do this *all* the time, so I implemented a replacement
>> for `PC-expand-many-files' that works with rssh files and allows
>> complete.el to work transparently with rssh.el/rcp.el. The thing is I'm
>> not sure what to do with it. `file-name-handler-alist' won't allow me to
>> override `PC-expand-many-files' since it's not an I/O primitive.
[...]
> The best solution would be if this operation was added to the list of
> operations handled by file-name-handler-alist. As an interim solution:
> observe that it works by adding a function to find-file-not-found-hooks,
> so you could just copy that function (PC-try-load-many-files) and make
> it use your function, then add the new function to
> find-file-not-found-hooks, as well. What do you think?
I'm not sure that's the best way to go. If you do that, you're completely
duplicating a lot of complete.el's functionality (well, three functions
anyway). You'd also have to be extremely careful to either remove
`PC-try-load-many-files' from `find-file-not-found-hooks' or make sure
`rcp-try-load-many-files' came before `PC-try-load-many-files' in
`find-file-not-found-hooks' or both! Also, `PC-do-completion' calls
`PC-expand-many-files' directly, so that would mean `PC-do-completion'
wouldn't work with rssh/rcp file names.
What I would *really* like to do is use or blatantly copy `efs-overwrite-fn'
from efs-ovwrt.el to overwrite just `PC-expand-many-files', but I would guess
that can't happen. If I can figure out how `efs-overwrite-fn' works though
and forget about modifying the doc string, that would probably be good
enough. Give me a couple days to work it through.