From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy Date: Sat, 14 Jan 2012 17:55:46 +0200 Message-ID: <8339bijn25.fsf@gnu.org> References: <87mx9su32g.fsf@web.de> <87sjjkfvwt.fsf@gmail.com> <8362ggkquq.fsf@gnu.org> <87lipcrlga.fsf@gmail.com> <87fwfkc4pn.fsf@gmx.de> <87fwfjsw8t.fsf@gmail.com> <87aa5rdazl.fsf@gmx.de> <87d3anogf5.fsf@gmail.com> <011AEED9E81C4DEFA6B1E03B0F57F28F@us.oracle.com> <878vlbljnc.fsf@gmx.de> <8739bj8mu1.fsf@gmail.com> <8762gfnrlj.fsf@gmx.de> <83aa5qk6co.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1326556590 6173 80.91.229.12 (14 Jan 2012 15:56:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 15:56:30 +0000 (UTC) Cc: 10489@debbugs.gnu.org, michael.albinus@gmx.de, thierry.volpiatto@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 14 16:56:25 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rm5xw-0006Ck-TW for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jan 2012 16:56:25 +0100 Original-Received: from localhost ([::1]:40896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm5xw-0001Xi-Ai for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jan 2012 10:56:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm5xt-0001XQ-AB for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 10:56:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rm5xs-0005cO-5e for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 10:56:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm5xs-0005cE-1t for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 10:56:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rm5yY-0008I5-Ls for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 10:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2012 15:57: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: Original-Received: via spool by 10489-submit@debbugs.gnu.org id=B10489.132655659131829 (code B ref 10489); Sat, 14 Jan 2012 15:57:02 +0000 Original-Received: (at 10489) by debbugs.gnu.org; 14 Jan 2012 15:56:31 +0000 Original-Received: from localhost ([127.0.0.1]:57488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rm5y2-0008HJ-IY for submit@debbugs.gnu.org; Sat, 14 Jan 2012 10:56:30 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42528) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rm5xz-0008HA-9p for 10489@debbugs.gnu.org; Sat, 14 Jan 2012 10:56:28 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LXS00D00PEC8T00@a-mtaout20.012.net.il> for 10489@debbugs.gnu.org; Sat, 14 Jan 2012 17:55:42 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.136.230]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXS00CBNPKRXJ40@a-mtaout20.012.net.il>; Sat, 14 Jan 2012 17:55:40 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:55736 Archived-At: > From: Stefan Monnier > Cc: michael.albinus@gmx.de, 10489@debbugs.gnu.org, thierry.volpiatto@gmail.com > Date: Sat, 14 Jan 2012 09:19:51 -0500 > > To me "the same name" is something quite different from "the same file". > I think file-name-equal-p should make it clear that it means "same name" > and not "same file" because we may want to use it without knowing if the > file exists and without opening a remote connection. "Same file name" would only do case-insensitive comparison on DOS/Windows and exact comparison otherwise. That doesn't need to hit the disk. > IIUC the original problem in dired-do-copy needs to test "same file" > rather than "same name", so it should not use file-name-equal-p but > file-equal-p (which would rely on file-attributes, presumably). I agree; this thread discusses file-equal-p.