From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Tramp and recursive file operations Date: Fri, 02 Oct 2009 07:10:37 +0200 Message-ID: References: <75cbfa570909300852j3bcba55cw3ae4ac3922a1b0d3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254460267 5694 80.91.229.12 (2 Oct 2009 05:11:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2009 05:11:07 +0000 (UTC) Cc: "tramp-devel@gnu.org" , "emacs-devel@gnu.org" To: yary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 02 07:11:00 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 1MtaPz-0007Xq-Po for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2009 07:11:00 +0200 Original-Received: from localhost ([127.0.0.1]:46355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtaPz-0007wz-3I for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2009 01:10:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtaPr-0007tW-3B for emacs-devel@gnu.org; Fri, 02 Oct 2009 01:10:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtaPl-0007gc-W7 for emacs-devel@gnu.org; Fri, 02 Oct 2009 01:10:50 -0400 Original-Received: from [199.232.76.173] (port=57125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtaPl-0007gJ-IG; Fri, 02 Oct 2009 01:10:45 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:57783) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtaPk-0005Bk-Qb; Fri, 02 Oct 2009 01:10:45 -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 n925Adms009163; Fri, 2 Oct 2009 07:10:39 +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 n925AcY4012160; Fri, 2 Oct 2009 07:10:38 +0200 (MEST) In-Reply-To: <75cbfa570909300852j3bcba55cw3ae4ac3922a1b0d3@mail.gmail.com> (yary's message of "Wed, 30 Sep 2009 17:52:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Alcanet-virus-scanned: n925AcY4012160 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: 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:115838 Archived-At: yary writes: >> A copy-directory function does not exist. What about allowing the first >> parameter of copy-file to be a directory name? This would imply to copy >> recursively. >> >> Comments? > > Is there any existing code that may be using the error-check in > copy-file to ensure that the first arg is not a directory? I like the > idea of making the existing copy-file smart enough to "do the right > thing" when the first argument is a dir, but it could need an optional > RECURSIVE parameter if and only if other callers rely on it rejecting > directories. We don't know what people are doing outside the Emacs core packages with copy-file. So I cannot answer your question. Adding a RECURSIVE parameter might be an option; OTOH copy-file has already a long list, and it would be inconvenient to count the number of nil until you can say t for RECURSIVE. That's why I prefer to introduce copy-directory. > -y Best regards, Michael.