From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy Date: Mon, 27 Feb 2012 12:38:14 -0500 Message-ID: References: <87mx9su32g.fsf@web.de> <87r4xkwhky.fsf@gmail.com> <83vcmws3bs.fsf@gnu.org> <87ehtkwaiz.fsf@gmail.com> <87wr7cgsm3.fsf@gmx.de> <8762eww77b.fsf@gmail.com> <83pqd4roav.fsf@gnu.org> <87haygx97t.fsf@gmx.de> <87aa47rj6z.fsf@gmail.com> <878vjrxpej.fsf@gmx.de> <87pqd3i8ky.fsf@gmail.com> <87ipiuvsbw.fsf@gmx.de> <87k439gyu5.fsf@gmail.com> <87fwdwhizm.fsf@gmail.com> <87bookhfcn.fsf@gmail.com> <87aa44o7qo.fsf@gmail.com> <87ty2c490n.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330364364 9309 80.91.229.3 (27 Feb 2012 17:39:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 17:39:24 +0000 (UTC) Cc: 10489@debbugs.gnu.org, Michael Albinus To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 18:39:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S24Xd-0006h3-Vt for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 18:39:18 +0100 Original-Received: from localhost ([::1]:44415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S24Xd-0007PN-JW for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 12:39:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S24XY-0007P1-A4 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 12:39:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S24XX-0006kV-3b for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 12:39:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S24XX-0006kB-09 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 12:39:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S24aI-0003oa-ML for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 12:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2012 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10489-submit@debbugs.gnu.org id=B10489.133036447214597 (code B ref 10489); Mon, 27 Feb 2012 17:42:02 +0000 Original-Received: (at 10489) by debbugs.gnu.org; 27 Feb 2012 17:41:12 +0000 Original-Received: from localhost ([127.0.0.1]:60010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S24ZT-0003nO-TU for submit@debbugs.gnu.org; Mon, 27 Feb 2012 12:41:12 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46430) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S24ZQ-0003nD-F8 for 10489@debbugs.gnu.org; Mon, 27 Feb 2012 12:41:09 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q1RHcFt3013372; Mon, 27 Feb 2012 12:38:15 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 23B0BB4471; Mon, 27 Feb 2012 12:38:15 -0500 (EST) In-Reply-To: <87ty2c490n.fsf@gmail.com> (Thierry Volpiatto's message of "Mon, 27 Feb 2012 15:59:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4145=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4145> : streams <732745> : uri <1073124> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57313 Archived-At: >>> Because if we don't do that, we have to create new directory Test1 and >>> then test if Test1 is a subdir of Test. >> No we don't have to do that. We can do the extra work in copy-directory >> (so we call file-equal-p on "~/test" rather than on "~/test/test1" when >> "~/test/test1" doesn't exist yet). > If you don't create test1, you will never have a value of > file-attributes for it, and file-directory-p will return always nil on > test1. I don't understand why you think that's a problem. Stefan