From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin 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 15:08:46 -0500 Message-ID: <327CF2FD-F00D-402B-B273-12066DDEB0E5@toadstyle.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.141\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31253"; mail-complaints-to="usenet@ciao.gmane.io" To: 69085@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 12 21:11:15 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 1rZce3-0007x4-A5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Feb 2024 21:11:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZcdc-0005uP-6I; Mon, 12 Feb 2024 15:10: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 1rZcdZ-0005uF-AG for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 15:10:45 -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 1rZcdZ-0005ar-1V for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 15:10:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZcdp-0002DZ-PE for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 15:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Feb 2024 20:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69085 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17077686248331 (code B ref -1); Mon, 12 Feb 2024 20:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2024 20:10:24 +0000 Original-Received: from localhost ([127.0.0.1]:55090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZcdD-0002AD-8u for submit@debbugs.gnu.org; Mon, 12 Feb 2024 15:10:23 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:42554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZccH-00024v-Fr for submit@debbugs.gnu.org; Mon, 12 Feb 2024 15:09:26 -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 1rZcbv-0005Vi-48 for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 15:09:03 -0500 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZcbt-00058o-0x for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 15:09:02 -0500 Original-Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-785d93d3f08so74618285a.2 for ; Mon, 12 Feb 2024 12:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1707768537; x=1708373337; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=wv4z9SomWfD1rceZfE88K+H4dypf3KU3/ly23WGafsg=; b=sLNuSG19cRNzYvHZCO2HdmsRtwF2uUH3Qm2dx3z/ip4nP6dBQz+Q9Y6LiTs8LV7GpZ yfoh1ZQ4vo8YHNh2tWFgAHxZfFLb7mcF6+lB/8Wg1EvC+hAt7SZ70xlJ7q1LzQ4DBSAv Wi2c4/ScfF7Yckg5OKCatHGxT9QbrEh5PJM0Xg2pl9wkXWFt6vU1v0v74LNxs3nAWsBP xNZ7Zcs3dVI8xiWyjJSk7gP/dtzNn6R6i6Zfv6q+KQwM2l58OM3zOpiwuSo14RSGk3YK 43+2Xk5dgLkLYNG73QbKYf6XrodJtBzWFWwpdqrANXOy6SVttaHeER+dOyrLVQXMhYIu yGpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707768537; x=1708373337; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wv4z9SomWfD1rceZfE88K+H4dypf3KU3/ly23WGafsg=; b=kcQZ74wUQ89sL7M799sD72feObbiM/BYp7fMlk7C6LWfhsDj/O7593kBrIVv87Kqay 7STcacfc2hADdpICPr4OzQpWCzwDIAJZSCpLbHIZ4G+R7JVKobDr2DnISfw5qfTOqdoU MRIxoTjzMNcutaIbb5n+VENKAX06Z94yik6yz4K4pWeMTisYWotzfol7c9fp0gK7h4Tw eYk424TD8m3kbRdia08wWu/gOoOhnixWMtVOw1u9A7OSRa1+7+VZjaW113X1o5uigDwl lW9HFmoKBMmwLEBosP7yRbUC1tdkGkn2+p5VCI4QbBo5A6s9Lak9D7XwiBmyqLeHa+2W ZRog== X-Gm-Message-State: AOJu0YxNejrHxpEc3a+C+CLfGL3RPjZTvX53yTMy/AAV0jZ7t34YarG0 11FfgChG8F1oiH+AAo5Mys85E7fBtdjaI5xB0R9PA1Bk5hdBEmNjGRG6hFoGPN0BpRnXTeQkLu9 O X-Google-Smtp-Source: AGHT+IGH6EfaML/kxhFtBmVCc0YftRyLj7VW+i3bnsq2SPaFn0Gh0iLElPrCCEVbL4m1uV4c4tPiyQ== X-Received: by 2002:a05:620a:4711:b0:786:33c1:1419 with SMTP id bs17-20020a05620a471100b0078633c11419mr2255071qkb.59.1707768537552; Mon, 12 Feb 2024 12:08:57 -0800 (PST) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id c19-20020a05620a135300b00786fe3db661sm471866qkl.31.2024.02.12.12.08.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2024 12:08:57 -0800 (PST) X-Mailer: Apple Mail (2.3774.500.141) Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=spd@toadstyle.org; helo=mail-qk1-x733.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:279924 Archived-At: Hi folks, 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. 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. Thanks! In GNU Emacs 29.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2024-01-18 built on armbob.lan Windowing system distributor 'Apple' System Description: macOS 14 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules 'CFLAGS=-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=no' Configured features: ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 37536 8456) (symbols 48 5045 0) (strings 32 13121 2410) (string-bytes 1 398579) (vectors 16 10368) (vector-slots 8 162386 14885) (floats 8 21 23) (intervals 56 217 0) (buffers 984 10))