From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: bug in copy-directory Date: Sat, 29 Jan 2011 23:51:02 +0100 Message-ID: <878vy3qq7d.fsf@gmail.com> References: <87ipxaidea.fsf@gmail.com> <87k4hp96g0.fsf@stupidchicken.com> <878vy59ejz.fsf@stupidchicken.com> <87lj23ickn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296341482 25916 80.91.229.12 (29 Jan 2011 22:51:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 22:51:22 +0000 (UTC) Cc: Michael Albinus , Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 23:51:17 2011 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.69) (envelope-from ) id 1PjJdS-00073U-Dq for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 23:51:14 +0100 Original-Received: from localhost ([127.0.0.1]:49576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjJdS-0007fw-3a for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 17:51:14 -0500 Original-Received: from [140.186.70.92] (port=44577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjJdM-0007fg-TT for emacs-devel@gnu.org; Sat, 29 Jan 2011 17:51:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjJdL-0007bK-HR for emacs-devel@gnu.org; Sat, 29 Jan 2011 17:51:08 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:50416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjJdL-0007b2-8j for emacs-devel@gnu.org; Sat, 29 Jan 2011 17:51:07 -0500 Original-Received: by wwb17 with SMTP id 17so4737943wwb.30 for ; Sat, 29 Jan 2011 14:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=U6musoR1v+C5URe4oa35lVQg4+VocHiroKDPsi7aqdk=; b=DBfEL8nr/pIIBtT3aWGQ1r/iCDO1MWn/Sy1i5sXz/eEi+wuC7SG7GmLl1HWqsmA7ls xa9cYEbEDPb1tSTw/UfCf8ainUorf5dmZB53T0H49+UFWMTCqiIYfa8FwdLhiaccQ9yV AzlLHS+U9zHCbG3Dibg682RDugp198PJM2C90= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=aGbfGag6oT7HDd4zCyAYQ0NanLTQrEq0peZROEV9tyrtHPzZshIGjcwQ124jmA42mw ki3YC+2WZNiliqVLRPHM+CEvgNTe2Skk3ZLOES1FOx8OB7RTE/O56pbL2baLqijXOi4T LMLHJOiem1DLMfYtgNsvPFh79LOivZU+4yGV8= Original-Received: by 10.227.154.76 with SMTP id n12mr530258wbw.102.1296341465226; Sat, 29 Jan 2011 14:51:05 -0800 (PST) Original-Received: from thierry-MM061 (63.211.85-79.rev.gaoland.net [79.85.211.63]) by mx.google.com with ESMTPS id f27sm3001696wbf.13.2011.01.29.14.51.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Jan 2011 14:51:04 -0800 (PST) In-Reply-To: <87lj23ickn.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 29 Jan 2011 17:12:40 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:135228 Archived-At: Chong Yidong writes: > Stefan Monnier writes: > >> I don't think there's a traditional C-level equivalent to `cp', but at >> least for `mv', the C-level API (aka `rename') does not behave like >> `mv', but instead signals an error if the destination is >> a pre-existing directory. >> >> As Lennart points out, the semantics of `rename' are a bit less magical, >> which tends to work well when you care about race-conditions and other >> fun stuff. OTOH out `copy-file' behaves like `cp', so I guess it's OK >> for copy-directory to also always behave like `cp' even for >> non-interactive uses. > > I've commited the patch to the branch. Dired seems to still work fine. IIRC dired don't use copy-directory, but dired-create-files for copying, renaming, linking. > I haven't checked whether the Tramp handlers need fixing, though. If copy-directory works, then the handler should work as it reuse copy-directory. Thanks for the fix, i will try it tomorrow (when it come in git). -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997