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: Sun, 26 Feb 2012 16:38:41 -0500 Message-ID: References: <87mx9su32g.fsf@web.de> <87pqd6wnvv.fsf@gmail.com> <87d395y1w0.fsf@gmail.com> <87zkc8x04p.fsf@gmail.com> <87vcmwwvk7.fsf@gmail.com> <834nugtwqf.fsf@gnu.org> <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> <83k43bs89t.fsf@gnu.org> <87sjhyx6v1.fsf@gmx.de> <87obsmnc3v.fsf@gmail.com> <87mx86vtjt.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330306243 22452 80.91.229.3 (27 Feb 2012 01:30:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 01:30:43 +0000 (UTC) Cc: 10489@debbugs.gnu.org, Thierry Volpiatto To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 02:30:42 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1pQI-0006l0-AV for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 02:30:42 +0100 Original-Received: from localhost ([::1]:60793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1pQH-0006zo-Nw for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2012 20:30:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1pQA-0006qd-EQ for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2012 20:30:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1pPt-0004sj-AZ for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2012 20:30:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1pPr-0004sR-WE for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2012 20:30:16 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S1pSZ-0002oT-NN for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2012 20:33:03 -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 01:33:03 +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.133030638110800 (code B ref 10489); Mon, 27 Feb 2012 01:33:03 +0000 Original-Received: (at 10489) by debbugs.gnu.org; 27 Feb 2012 01:33:01 +0000 Original-Received: from localhost ([127.0.0.1]:58671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1pSW-0002o1-8h for submit@debbugs.gnu.org; Sun, 26 Feb 2012 20:33:01 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51186) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1pSR-0002nm-Qh for 10489@debbugs.gnu.org; Sun, 26 Feb 2012 20:32:56 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q1R1U5pD015733; Sun, 26 Feb 2012 20:30:06 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id A9E6066231; Sun, 26 Feb 2012 16:38:41 -0500 (EST) In-Reply-To: <87mx86vtjt.fsf@gmx.de> (Michael Albinus's message of "Sun, 26 Feb 2012 10:21:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4144=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4144> : streams <732529> : uri <1072717> 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:57267 Archived-At: >>>> It will be hard to detect that /sudo::/foo is equal to file:///foo. >> Maybe (in this case it might be reasonably easy, but of course there are >> harder cases). > We would need a function `file-local-representation' or something like > this, which returns "/foo" in both file name handler implementations. > Tramp's file name handler doesn't know of URL syntax, and vice versa. Tramp's knowledge of the semantics of "/sudo::" lets it simply turn (file-equal-p "/sudo::/foo" "file:///foo") into (file-equal-p "/foo" "file:///foo"), after which the url-handler-mode can do the same kind of trivial reasoning. > And no, I do NOT propose to add this. Sounds like overengineering to me. Neither do I. Stefan