From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: Tramp and recursive file operations Date: Tue, 29 Sep 2009 16:39:54 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254245782 25513 80.91.229.12 (29 Sep 2009 17:36:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 17:36:22 +0000 (UTC) Cc: tramp-devel@gnu.org To: emacs-devel@gnu.org Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Tue Sep 29 19:36:15 2009 Return-path: Envelope-to: tramp@deer.gmane.org Original-Received: from quimby.gnus.org ([80.91.231.51]) by lo.gmane.org with esmtp (Exim 4.50) id 1MsgcY-0001Ri-6g for tramp@deer.gmane.org; Tue, 29 Sep 2009 19:36:14 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MsgdB-0002FU-00 for ; Tue, 29 Sep 2009 19:36:53 +0200 Original-Received: from localhost ([127.0.0.1]:49298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsgcW-00059y-Ox for tramp@quimby.gnus.org; Tue, 29 Sep 2009 13:36:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsgGz-0002YW-Ml for tramp-devel@gnu.org; Tue, 29 Sep 2009 13:13:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsgGw-0002Wg-L5 for tramp-devel@gnu.org; Tue, 29 Sep 2009 13:13:57 -0400 Original-Received: from [199.232.76.173] (port=48248 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsgGv-0002WR-L9; Tue, 29 Sep 2009 13:13:53 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:35347) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsfKu-0007oC-2E; Tue, 29 Sep 2009 12:13:56 -0400 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msdwo-0006pO-0Z; Tue, 29 Sep 2009 10:44:58 -0400 Original-Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n8TEduow004368; Tue, 29 Sep 2009 16:39:56 +0200 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id n8TEdtY4003356; Tue, 29 Sep 2009 16:39:55 +0200 (MEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Alcanet-virus-scanned: n8TEdtY4003356 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: tramp-devel.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Errors-To: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Xref: news.gmane.org gmane.emacs.tramp:6964 gmane.emacs.devel:115788 Archived-At: Hi, recursive copy or deletion of files can last a long time, because all operations are performed file by file. This could be much faster, if Tramp would be allowed to apply such operations in one step, for a whole directory. Think about "scp" or "rsync". Therefore, I propose to add a file name handler to `dired-copy-file-recursive'. Recursive file deletion happens via `dired-delete-file'. Here I propose to add a new function `dired-delete-file-recursive', which takes over the recursive part of `dired-delete-file', and which calls also a file name handler when appropriate. I volunteer to implement such handlers in Tramp :-) What do people think? Best regards, Michael.