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: Re: Tramp and recursive file operations Date: Thu, 01 Oct 2009 17:53:37 +0200 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 1254415264 9877 80.91.229.12 (1 Oct 2009 16:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 16:41:04 +0000 (UTC) Cc: "tramp-devel@gnu.org" , "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Thu Oct 01 18:40:57 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 1MtOi6-0000z5-VW for tramp@deer.gmane.org; Thu, 01 Oct 2009 18:40:54 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MtOik-0003xh-00 for ; Thu, 01 Oct 2009 18:41:34 +0200 Original-Received: from localhost ([127.0.0.1]:49581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtOi5-00031y-HK for tramp@quimby.gnus.org; Thu, 01 Oct 2009 12:40:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtNzj-0003zX-5G for tramp-devel@gnu.org; Thu, 01 Oct 2009 11:55:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtNze-0003sJ-0H for tramp-devel@gnu.org; Thu, 01 Oct 2009 11:55:02 -0400 Original-Received: from [199.232.76.173] (port=54742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtNzd-0003rz-Pc; Thu, 01 Oct 2009 11:54:57 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:33596) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtNzd-00047A-3y; Thu, 01 Oct 2009 11:54:57 -0400 Original-Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n91FreEs031461; Thu, 1 Oct 2009 17:53:43 +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 n91FrdY4005131; Thu, 1 Oct 2009 17:53:39 +0200 (MEST) In-Reply-To: (Stefan Monnier's message of "Wed, 30 Sep 2009 21:56:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Alcanet-virus-scanned: n91FrdY4005131 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) 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:6974 gmane.emacs.devel:115830 Archived-At: Stefan Monnier writes: > Maybe the best option is to rename delete-directory to > delete-directory-internal and then implement a new delete-directory in > files.el. using it. Done. >> So we go with copy-directory? Just DIRNAME and NEWNAME as parameters, or >> the other ones from copy-file as well? > > Whenever I copy a directory, I always use "cp -a", so I'd be tempted to > say that additional args aren't needed, but that the behavior should > preserve as much as we can (symlinks, gid, mtime, you name it). > >> I guess that we dont't need OK-IF-ALREADY-EXISTS, because if directory >> NEWNAME already exists, we create a subdirectory. > > I'd tend to disagree here: this kind of behavior is very handy > interactively, but not when called from Lisp code, where you might > prefer an error (at which point you can then choose to call > copy-directory again to the subdirectory, or you may prefer to overlay > the copy on top of the existing tree, tho we don't have any code that > does it for us yet). OK, I'll add it next days. > Stefan Best regards, Michael.