From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69085: 29.2; Tramp: Extend tramp-make-copy-program-file-name via tramp-methods Date: Mon, 12 Feb 2024 22:14:43 +0100 Message-ID: <875xytjsfw.fsf@gmx.de> References: <327CF2FD-F00D-402B-B273-12066DDEB0E5@toadstyle.org> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2908"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69085@debbugs.gnu.org To: Sean Devlin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 12 22:16:00 2024 Return-path: Envelope-to: geb-bug-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 1rZdeh-0000WQ-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Feb 2024 22:15:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZdeW-00048U-7s; Mon, 12 Feb 2024 16:15:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZdeU-00048L-3b for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 16:15:46 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZdeT-0007eq-Rh for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 16:15:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZdek-0007I1-Dt for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 16:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Feb 2024 21:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69085 X-GNU-PR-Package: emacs Original-Received: via spool by 69085-submit@debbugs.gnu.org id=B69085.170777251227768 (code B ref 69085); Mon, 12 Feb 2024 21:16:02 +0000 Original-Received: (at 69085) by debbugs.gnu.org; 12 Feb 2024 21:15:12 +0000 Original-Received: from localhost ([127.0.0.1]:59708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZddv-0007Dk-Ox for submit@debbugs.gnu.org; Mon, 12 Feb 2024 16:15:12 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:38581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZdds-0007Cu-W7 for 69085@debbugs.gnu.org; Mon, 12 Feb 2024 16:15:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1707772484; x=1708377284; i=michael.albinus@gmx.de; bh=O6MxxXYxhFBYjZC5V+1giU39ndL9oketci9b1eMp+C8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=Y5pYZNWc0dQ9nxfQI8eASvn15c8a4f7HDAj07cpR4n1cSJKJXI6MqzCalOC5ztCU Jigm1KHGJ4u2h/Gza0VoWFwAr96UDPf/YiR8d0Jm1wSN8hDnJUe0eSaW9NpnI2hhH pvyWtRTZkRWLAjNCBOPzS+cZkB0GkOucMbX58ftFWas+CvZ/77HlzR79oZwl1e85j k6X5ogj8qvashWKnOc1M2U8Z2vgRLwoaEz6WIRP48FfBClFHHpWZyCrnKYa6VCiUT y5bZ8fsrNxEhjdCamH+pS6K33HC3fXxCS0glRqjWc6kQIKlhbmdDY94igUrOCHp/x qkJ3rKWJV+EbfG3DiA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQv8x-1rNLwx2JPD-00Nyba; Mon, 12 Feb 2024 22:14:44 +0100 In-Reply-To: <327CF2FD-F00D-402B-B273-12066DDEB0E5@toadstyle.org> (Sean Devlin's message of "Mon, 12 Feb 2024 15:08:46 -0500") X-Provags-ID: V03:K1:mX+xRLSeVPPU2TQpZ9yJP/1yAJ80h4Qhri34qZPwvKnxogx4uAj 2Rn2Rl48c1jIMIzMzaD/tgFKbVHabUKy7M+/LDX1H1A2vmgXlvdJ7OSd5T+UuhTuaR3eCGx zwtA8lNLJMlE+sUdCojmhYk/VTgZSeXNKAYVJ8vuFfZS/ykHV949kgL9PFnrRmAPY6MH6v6 dcy/esU2qoBedN8hL6QGg== UI-OutboundReport: notjunk:1;M01:P0:8jSULOlqQJ0=;bMTEGMZqtXVhB5PkXJ7okqnhYCV 5VSU2Cm/YYHs8H9fE2YdgE+VQsvTwBYdxbiU0ZW8GwOEzlKCpq9miEwr05OcJAHjemmFuhgdc tGOnYnnduN7g/Br6xHoEq9oub7vhv9D04G1TubbjgGDYlVL01ImRckerCR7nr2XDEO/zeuu2u Ria4UfcC2+flp2k2X9QvnrpIoIHVOomS7xfm/yGI1ajONvdKijSqmmcDe0Fw2EUiM2R9S7kAJ npSCKLsn3Q2RNpJEuCNCaULaTOZmBynLdu3vG9jSIFawAdKL7fD0AmsRRtSLODKEKwOAGGS7W OObiwKkOCR1RQYFd4zV8OjdRS6q4Ra8AnLNgJ3cNUbnDhnB0FSAkuyf103u46LojhtaodPbpF IMzH7oeoTbIS7uHzpa2h5/cDF/iXPR3uG4HdBWgfoWhtfXNVMqA5sH7iIq9t4JfxE2BcD0zwW 0HLmoBSmsvjY/DI+Qeo2KW19c8A8kcUKVsYQJbnnr4bFvAZivK4wjcKKtGjMx13XpYqOi/XWI FjpiOWZMT8Mc7RPAAVXWssjI8Ba8ZbKdCfiBuIMNq17+hqKMwK6X2z/uFh6voAMOPsmznZsWs xYax91qBfHVZKrW45MxkZ+sLFeZRxkNkX2QteEWEx9BGY8+SxufIKvIna1myVFAiuti4weaSr 4PxPG35wpIO3EXMO0qcth3Z1Xgm5fw66tHk7K1dZSP1bCo92o2ZEPIO4D2gLdjyvo5dZHo1W2 J36w33aiTrruwSY2vCC4N+8lJ42ZZSEg5gnTNxycVKacUqkBA/orsSXDDmF+ks984aBy+UuN X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279929 Archived-At: Sean Devlin writes: > Hi folks, Hi Sean, > This is a feature request. > > Tramp lets you define a method for out-of-band file copying with the > tramp-methods keys tramp-copy-program, tramp-copy-args, and so on. > > Currently, there is no way to customize the format of remote file > paths. The function tramp-make-copy-program-file-name is responsible for > this job, and it is hard-coded to format files as USER@HOST:FILE. No. USER@HOST:FILE is only taken if the remote file name contains a user. Otherwise, it takes HOST:FILE. > I was working on a custom Tramp method, and I ran into problems setting > up OOB copying due to this limitation. > > It would be great if there were a key you could set in tramp-methods to > override this logic. For example, maybe something like: > > (tramp-copy-format-file-name my-tramp-make-copy-program-file-name) > > Where my-tramp-make-copy-program-file-name is a function taking a vector > as input and returning a string of the formatted file name (similar to > tramp-make-copy-program-file-name). > > Alternately, maybe a format string (or something similar to > tramp-login-args/tramp-copy-args) would be sufficient. In my case, I > just need to add a constant prefix to the remote file name, so a format > string would be fine. Could you pls show your custom method spec, and what tramp-copy-format-file-name returns for it? > Thanks! Best regards, Michael.