help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired command on same host


From: Manuel Giraud
Subject: Re: Dired command on same host
Date: Tue, 04 Jan 2022 17:25:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix)

Michael Albinus <michael.albinus@gmx.de> writes:

[...]

> Tramp tries this if possible. See the function tramp-do-copy-or-rename-file,
> which calls tramp-do-copy-or-rename-file-directly. This happens in two
> cases:

Hi Michael,

Sorry my bad. Maybe my two dired buffers were not `tramp-equal-remote'
(BTW, I think there is a typo in the example of the docstring of
`tramp-equal-remote':

Example:

  (tramp-equal-remote \"/ssh::/etc\" \"/-:<your host name>:/home\")
                                                            ^
                                                            |_ shouldn't
                                                               it be etc here)

>> Same question for two different hosts: Is it possible to make tramp do a
>> scp from host A to host B directly?
>
> Not (yet). See the TODO section at the end of tramp-sh.el:
>
> ;; * Optimize out-of-band copying when both methods are scp-like (not
> rsync).

Ok, i'll look that up. You said "Not (yet)": I've you already started
some work on it?

I have in my init a (simple) function that does this out-of-band scp but
I think that the most tricky parts (for something general pupose) are:
    - how host A understand host B name?
    - is host B reachable from host A?
    
… this kind of things.

Best regards,
-- 
Manuel Giraud



reply via email to

[Prev in Thread] Current Thread [Next in Thread]