From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.help Subject: Re: Dired command on same host Date: Wed, 05 Jan 2022 10:44:03 +0100 Message-ID: <8735m27c0s.fsf@elite.giraud> References: <877dbf94su.fsf@elite.giraud> <87czl77j7e.fsf@gmx.de> <87iluz79ja.fsf@elite.giraud> <878rvv73mr.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11031"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 10:44:42 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n52qY-0002fm-5F for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 10:44:42 +0100 Original-Received: from localhost ([::1]:57860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n52qW-0008Dd-MO for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 04:44:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n52q1-0008DH-Mf for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 04:44:09 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:15273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n52py-00027D-S6 for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 04:44:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=73Xrp7MMMoBWDX+a 88AlW8NgtVe6xU77NHAwJvm0/04=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=AvBVC7BbafEFO39t+8aeyxsusiQJAmFrj9MXZq uXGQFnrdb96TJNA9hdtnBLkLwN3XHB0mD9brkB1pklgmrd8rnQzBcjSNVjIFZ/Dh5hKdrp Nc0aYliWLAndNrDV5xhPrrc7HhvR6L72WIc71M/8zUOV/06iWQAFaVHCJcph5A4kADIgVU MincB4LBgi0l/rDwf6LrGkInDEuIvLJLYkba09fRX9c8UWHRijOAj/lkh1jG78pNdOd5uo ra1zo2V53TO3KnqGqtwU8shEsJ+ukYcmi2M2bFBMypH+ob9Hr1NqNCpaA86QIAE2Vut4p8 qFIEMsAqi9Do/hHbZdiRzFKw== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 2951b8af (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 5 Jan 2022 10:44:04 +0100 (CET) In-Reply-To: <878rvv73mr.fsf@gmx.de> (Michael Albinus's message of "Tue, 04 Jan 2022 19:33:00 +0100") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135101 Archived-At: 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\" \"/-::/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=3D1 > 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 =C2=ABsome known= =C2=BB file too to ensure that this is the correct host B. Or maybe this is too much. --=20 Manuel Giraud