[Top][All Lists]

[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: Wed, 05 Jan 2022 10:44:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix)

Michael Albinus <> writes:

> Manuel Giraud <> writes:
>> Hi Michael,
> Hi Manuel,
>> 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)
> No. tramp-equal-remote ignores the local part of the remote file
> names. That's what the docstring says above the example.

Sorry again. I should read more carefully :-|


> Must be checked, yes. But this isn't a problem for Tramp. It keeps shell
> sessions on both host A and host B, a simple "ssh -q -o ConnectTimeout=1
> B exit 2>/dev/null" on host A would tell us whether host B is reachable
> (checking the exit code, and caching the result). If not, Tramp could
> fall back to the current behavior.

To adress Tassilo remark, maybe it should make a hash of «some known»
file too to ensure that this is the correct host B. Or maybe this is too
Manuel Giraud

reply via email to

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