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: Sun, 30 Jan 2011 20:07:30 +0100 Message-ID: <87y662nrbh.fsf@gmail.com> References: <87ipxaidea.fsf@gmail.com> <87k4hp96g0.fsf@stupidchicken.com> <878vy59ejz.fsf@stupidchicken.com> <87lj23ickn.fsf@stupidchicken.com> <87sjway8i3.fsf@gmx.de> <87bp2yts8m.fsf@gmail.com> <87fwsaxyy0.fsf@gmx.de> <87y662sbjs.fsf@gmail.com> <87k4hmpgdf.fsf@gmail.com> <874o8qs2xj.fsf@gmx.de> <87bp2yp8nk.fsf@gmail.com> <87zkqiqlwn.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296414465 14860 80.91.229.12 (30 Jan 2011 19:07:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Jan 2011 19:07:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 30 20:07:41 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 1Pjcce-0006s2-Tr for ged-emacs-devel@m.gmane.org; Sun, 30 Jan 2011 20:07:41 +0100 Original-Received: from localhost ([127.0.0.1]:38307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pjcce-0000NN-3q for ged-emacs-devel@m.gmane.org; Sun, 30 Jan 2011 14:07:40 -0500 Original-Received: from [140.186.70.92] (port=56386 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pjcca-0000NI-Fk for emacs-devel@gnu.org; Sun, 30 Jan 2011 14:07:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjccY-0003pw-W8 for emacs-devel@gnu.org; Sun, 30 Jan 2011 14:07:36 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:37209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjccY-0003pm-Oi for emacs-devel@gnu.org; Sun, 30 Jan 2011 14:07:34 -0500 Original-Received: by wwb17 with SMTP id 17so5253338wwb.30 for ; Sun, 30 Jan 2011 11:07:33 -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=9yZ9zyb8AzoNVHnmCtokqcktOwBWvxptNBX3gVLqF34=; b=B4cPvj96c5MuEdoq9Irh05ydphvCOydVyid2BAuQH28qgbYwvfCJQoYM7GAzqbzUHc A2HRsXDaCOnK6PMQtiAdYCXINOkw5QeYL36v884/kjeO0muicxhRr/IcXMiBXe7uYFiD pWiF3HZJobGuZ+qDs8z6CRc9bhSYWBbY3Jr0I= 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=gbosvFhz9hLNoHDnEFGTMvsL7FFFvP9JYeFRbpMMBepgUSbDqSh1TY+FfVJoyQofA6 SMWsA8HJtt06z7IvIw5S6VgRXntQRXZt/4GqTlOQ3bRRqd33hIxFIiWCtlVe1jYP+wz5 j+4LujaWkHMOQiLpnz1roDr45M1xsiiGp4jKw= Original-Received: by 10.216.187.7 with SMTP id x7mr5310670wem.38.1296414453320; Sun, 30 Jan 2011 11:07:33 -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 7sm10336561wet.24.2011.01.30.11.07.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Jan 2011 11:07:32 -0800 (PST) In-Reply-To: <87zkqiqlwn.fsf@gmx.de> (Michael Albinus's message of "Sun, 30 Jan 2011 19:36:08 +0100") 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:135255 Archived-At: Michael Albinus writes: > Thierry Volpiatto writes: > >> Michael Albinus writes: >> >>> Thierry Volpiatto writes: >>> >>>>> Ah! yes didn't notice it create a third /test nested in the second one. >>>> Can you try this one now (interactively and not): >>>> It should work. >>> >>> It doesn't. >> Sorry, this one work now interactively and not. > > It still doesn't. It work here. > What do you think about testing yourself? I have given the recipe. Of course i did: ,---- | - Create directory /tmp/test/test | - Create file /tmp/test/a | - Create file /tmp/test/test/b | | - Apply (copy-directory "/tmp/test" "~/") | Everything is fine | | - Apply again (copy-directory "/tmp/test" "~/") | The target directory structure is broken. `---- ,---- | - _Create the structure in /tmp_ | | (make-directory "/tmp/test") | nil | | (make-directory "/tmp/test/test") | nil | | (with-current-buffer (find-file-noselect "/tmp/test/a") | (insert "test1") | (save-buffer)) | | (with-current-buffer (find-file-noselect "/tmp/test/test/b") | (insert "test2") | (save-buffer)) | | (directory-files "/tmp/test") | ("." ".." "a" "test") | | (directory-files "/tmp/test/test") | ("." ".." "b") | | - _Copy the structure in ~/_ | | (copy-directory "/tmp/test" "~/") | nil | | (directory-files "~/test") | ("." ".." "a" "test") | | (directory-files "~/test/test") | ("." ".." "b") | | - _Copy again the same structure in ~/ (Overwrite)_ | | (copy-directory "/tmp/test" "~/") | nil | | (directory-files "~/test") | ("." ".." "a" "test") | | (directory-files "~/test/test") | ("." ".." "b") `---- As you can see the structure is always the same. Or did i miss something? -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997