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: Fri, 13 Jan 2012 14:41:30 +0200 Message-ID: <83mx9rkc5h.fsf@gnu.org> References: <87mx9su32g.fsf@web.de> <87sjjkfvwt.fsf@gmail.com> <8362ggkquq.fsf@gnu.org> <87pqeoro8p.fsf@gmail.com> <83wr8vki5t.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1326458567 31121 80.91.229.12 (13 Jan 2012 12:42:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2012 12:42:47 +0000 (UTC) Cc: 10489@debbugs.gnu.org, thierry.volpiatto@gmail.com To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 13 13:42:43 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 1RlgSt-0004kS-8A for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jan 2012 13:42:39 +0100 Original-Received: from localhost ([::1]:55333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlgSs-0004L6-3p for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jan 2012 07:42:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlgSm-0004IJ-Ar for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2012 07:42:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlgSg-0002cr-LC for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2012 07:42:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlgSg-0002cd-Em for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2012 07:42:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RlgTG-0000p3-FX for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2012 07:43: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: Fri, 13 Jan 2012 12:43: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.13264585283101 (code B ref 10489); Fri, 13 Jan 2012 12:43:02 +0000 Original-Received: (at 10489) by debbugs.gnu.org; 13 Jan 2012 12:42:08 +0000 Original-Received: from localhost ([127.0.0.1]:55958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlgSN-0000ny-TT for submit@debbugs.gnu.org; Fri, 13 Jan 2012 07:42:08 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59753) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlgSK-0000nn-Gz for 10489@debbugs.gnu.org; Fri, 13 Jan 2012 07:42:06 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LXQ00M00LWH1O00@a-mtaout20.012.net.il> for 10489@debbugs.gnu.org; Fri, 13 Jan 2012 14:41:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.136.230]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXQ00KOZLX0RZD0@a-mtaout20.012.net.il>; Fri, 13 Jan 2012 14:41:25 +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:55681 Archived-At: > From: Juanma Barranquero > Date: Fri, 13 Jan 2012 13:01:49 +0100 > Cc: Thierry Volpiatto , 10489@debbugs.= gnu.org >=20 > On Fri, Jan 13, 2012 at 11:31, Eli Zaretskii wrote: >=20 > > Bottom line, I think you need: > > > > =C2=A0. make both file names absolute by calling expand-file-name= on each > > > > =C2=A0. resolve links by calling file-truename on each (this will= handle > > =C2=A0 =C2=A0the 8+3 alias issue, as well as, AFAIK, the issue wi= th links) > > > > =C2=A0. compare case-insensitively on MS-Windows and MS-DOS >=20 > As this seems like a common occurrence, how comes that we don't hav= e >=20 > (defun file-name-compare (name1 name2 &optional dir) > "..." > (let ((n1 (file-truename (expand-file-name name1 dir))) > (n2 (file-truename (expand-file-name name2 dir)))) > (when (memq system-type '(ms-dos windows-nt)) > (setq n1 (downcase n1) > n2 (downcase n2))) > (string=3D n1 n2))) >=20 > ? Because in the past people objected to my saying that file names are not strings. Perhaps they will object now as well.