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: Tue, 04 Jan 2022 17:25:29 +0100 Message-ID: <87iluz79ja.fsf@elite.giraud> References: <877dbf94su.fsf@elite.giraud> <87czl77j7e.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="7727"; 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 Tue Jan 04 17:26:26 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 1n4mdk-0001ps-Um for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 Jan 2022 17:26:25 +0100 Original-Received: from localhost ([::1]:42734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4mdj-0005dD-2e for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 Jan 2022 11:26:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4mcy-0005cz-I5 for help-gnu-emacs@gnu.org; Tue, 04 Jan 2022 11:25:36 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:19337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4mcw-0003Jx-KE for help-gnu-emacs@gnu.org; Tue, 04 Jan 2022 11:25:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=Q9qJvwG1KeYpPr54 oudAmYKyVm/bmPMTFWqoM/fzePg=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=Qqctgpb7GiL6GF6gsazZ6G3bQzl6NmWmPhfw0d fkebexD0NYsWsjkMg6/dwiGWpv2xd/rb6ax+jNdLpgXQZ5lWCMmMJUSKATx1CML2v12M78 0TGOSHAs0IpO7xmmUGvPU+ibidlNh80O5LQxqBGzevVXGfmR+QDnRCSuRSNjXSXfj1u71I fXS/+u51FIGSYOMsshYVwBNVC/EScWq9IhVuT0cH+QU18e3aRkYeCMHIWMOAs75lw+VqMV 4YcoA1tbmsCofRGh3UHvHAFgnp+z572Ns3elgXPdKAjVNHqtY32nELegOJH0zrv80RA4U1 pS5e3Vo2VhWq7e2UGvQ1ZLcg== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 6c2da080 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 4 Jan 2022 17:25:31 +0100 (CET) In-Reply-To: <87czl77j7e.fsf@gmx.de> (Michael Albinus's message of "Tue, 04 Jan 2022 13:56:37 +0100") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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=unavailable 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:135097 Archived-At: Michael Albinus writes: [...] > Tramp tries this if possible. See the function tramp-do-copy-or-rename-fi= le, > 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\" \"/-::/home\") ^ |_ shouldn't it be etc he= re) >> 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? =20=20=20=20 =E2=80=A6 this kind of things. Best regards, --=20 Manuel Giraud