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: bug in copy-directory Date: Sun, 06 Feb 2011 18:47:43 +0100 Message-ID: <87fws13vi8.fsf@gmx.de> References: <87ipxaidea.fsf@gmail.com> <87k4hp96g0.fsf@stupidchicken.com> <878vy59ejz.fsf@stupidchicken.com> <87lj23ickn.fsf@stupidchicken.com> <87sjway8i3.fsf@gmx.de> <87wrll2ebe.fsf@stupidchicken.com> <87hbcot7gq.fsf@gmx.de> <87ei7qrdp0.fsf@gmail.com> <87ipx2dayh.fsf@gmx.de> <87y65yyxfu.fsf@gmail.com> <87d3n8xkeq.fsf@gmail.com> <878vxw6r4m.fsf@gmx.de> <87pqr790b0.fsf@gmail.com> <87oc6r7gjc.fsf@gmx.de> <87ipwz8t92.fsf@gmail.com> <878vxt69k7.fsf@stupidchicken.com> <874o8hbc9q.fsf@gmx.de> <87y65txele.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297014493 25112 80.91.229.12 (6 Feb 2011 17:48:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2011 17:48:13 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 06 18:48:09 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 1Pm8iW-00021d-Qm for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2011 18:48:08 +0100 Original-Received: from localhost ([127.0.0.1]:45957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pm8iW-0006As-JV for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2011 12:48:08 -0500 Original-Received: from [140.186.70.92] (port=56326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pm8iE-00064U-Dc for emacs-devel@gnu.org; Sun, 06 Feb 2011 12:47:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pm8iD-0006GA-0b for emacs-devel@gnu.org; Sun, 06 Feb 2011 12:47:49 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47959) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pm8iC-0006G3-K7 for emacs-devel@gnu.org; Sun, 06 Feb 2011 12:47:48 -0500 Original-Received: (qmail invoked by alias); 06 Feb 2011 17:47:46 -0000 Original-Received: from p57BBD44E.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.212.78] by mail.gmx.net (mp052) with SMTP; 06 Feb 2011 18:47:46 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18Y6AdoCR8YAJa/9HLLYvRViv7xnD+MH/JxCP3n6J /yd2R0PoRoo82G In-Reply-To: <87y65txele.fsf@gmail.com> (Thierry Volpiatto's message of "Sun, 06 Feb 2011 18:22:37 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.22 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:135650 Archived-At: Thierry Volpiatto writes: > Michael Albinus writes: > >> Chong Yidong writes: >> >>> Thierry Volpiatto writes: >>> >>>> Ok thanks, i sent a patch to Chong. >>> >>> I've committed your patch, with a number of changes (e.g. renaming the >>> new argument to `copy-as-subdir'). Please test it and see if everything >>> behaves as you expect. Thanks. >> >> Now it is even worse. Going to the initial test case: >> >> - Create directory /tmp/test >> - Create directory /tmp/test/test >> - Create file /tmp/test/a >> - Create file /tmp/test/test/b >> - Apply (copy-directory "/tmp/test" "~/") >> >> You get "~/a", "~/test" and "~/test/b". > Now you have to do: > (copy-directory "/tmp/test" "~/" nil nil t) No, I haven't. KEEP-TIME, PARENTS and COPY-AS-SUBDIR are optional arguments; if I use `copy-directory' w/o them the result shall be acceptable.