From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tramp and recursive file operations Date: Tue, 29 Sep 2009 16:53:11 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254263275 21462 80.91.229.12 (29 Sep 2009 22:27:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 22:27:55 +0000 (UTC) Cc: tramp-devel@gnu.org, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 30 00:27:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MslAh-0002xo-Jx for ged-emacs-devel@m.gmane.org; Wed, 30 Sep 2009 00:27:48 +0200 Original-Received: from localhost ([127.0.0.1]:51473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MslAg-0007cU-Fw for ged-emacs-devel@m.gmane.org; Tue, 29 Sep 2009 18:27:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsjhN-0006ny-GE for emacs-devel@gnu.org; Tue, 29 Sep 2009 16:53:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsjhJ-0006nO-19 for emacs-devel@gnu.org; Tue, 29 Sep 2009 16:53:25 -0400 Original-Received: from [199.232.76.173] (port=49241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsjhD-0006md-Bx; Tue, 29 Sep 2009 16:53:15 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41083) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsjhC-0003Fg-SJ; Tue, 29 Sep 2009 16:53:15 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n8TKrB3w000949; Tue, 29 Sep 2009 16:53:11 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 77DF13A0D6; Tue, 29 Sep 2009 16:53:11 -0400 (EDT) In-Reply-To: (Michael Albinus's message of "Tue, 29 Sep 2009 16:39:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3373=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115793 Archived-At: > 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? It seems OK, but I'd rather see them renamed to copy-file-recursive and delete-file-recursive at the same time and made independent from dired. Stefan