From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#6717: tramp-dissect-file-name: Not a Tramp file name Date: Mon, 26 Jul 2010 12:13:43 +0200 Message-ID: References: <87iq44zog6.fsf@gmx.de> <871vas5u8i.fsf@jidanni.org> <87iq43k589.fsf@gmx.de> <87mxtfmgl4.fsf@gmx.de> <87iq42nauc.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280140709 26821 80.91.229.12 (26 Jul 2010 10:38:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2010 10:38:29 +0000 (UTC) Cc: "6717@debbugs.gnu.org" <6717@debbugs.gnu.org>, "jidanni@jidanni.org" To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 26 12:38:25 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OdL4d-0000hg-JU for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jul 2010 12:38:22 +0200 Original-Received: from localhost ([127.0.0.1]:44459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdL4c-0002Tv-8l for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jul 2010 06:38:18 -0400 Original-Received: from [140.186.70.92] (port=33222 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdL49-0002JY-Uw for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 06:37:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdL44-0000iR-HP for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 06:37:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59318) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdL44-0000iN-G7 for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 06:37:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OdKh7-0000nY-Sm; Mon, 26 Jul 2010 06:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2010 10:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6717-submit@debbugs.gnu.org id=B6717.12801392233061 (code B ref 6717); Mon, 26 Jul 2010 10:14:01 +0000 Original-Received: (at 6717) by debbugs.gnu.org; 26 Jul 2010 10:13:43 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdKgp-0000nK-55 for submit@debbugs.gnu.org; Mon, 26 Jul 2010 06:13:43 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdKgm-0000nE-E9 for 6717@debbugs.gnu.org; Mon, 26 Jul 2010 06:13:41 -0400 Original-Received: from destgsu0048.de.alcatel-lucent.com (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay2.alcatel.de (8.14.3/8.14.3/ICT) with ESMTP id o6QADiet013697; Mon, 26 Jul 2010 12:13:44 +0200 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.de.alcatel-lucent.com (8.12.3/8.12.3) with ESMTP id o6QADhRZ000371; Mon, 26 Jul 2010 12:13:44 +0200 (MEST) In-Reply-To: (Andreas Schwab's message of "Mon, 26 Jul 2010 12:05:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Alcanet-virus-scanned: o6QADhRZ000371 at destgsu0048.de.alcatel-lucent.com X-Scanned-By: MIMEDefang 2.64 on 149.204.45.73 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 26 Jul 2010 06:14:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38944 Archived-At: Andreas Schwab writes: > Michael Albinus writes: > >> Andreas Schwab writes: >> >>> Michael Albinus writes: >>> >>>> Andreas Schwab writes: >>>> >>>>>>> IMHO this is the wrong place to fix that. Instead file-name-directory >>>>>>> should not be called on the local part in the first place, or at least >>>>>>> *all* file name handlers should be suppressed around the call. >>>>>> >>>>>> I thought about that. But I'm not sure, whether we shall disable >>>>>> jka-compr, for example. What happens, if the URL is something like >>>>>> http://host.cc/path/file.gz ? >>>>> >>>>> Nothing special. Why should it? It's not a file name, it is a URL. >>>> >>>> Maybe. But at least `url-file-handler' must be kept, it treats the URL >>>> as a file name. >>> >>> Why? There is no url-file-name-directory. >> >> Indeed. But you don't know, which other primitive functions are called, >> requesting a url-* handler. > > ??? We are talking about file-name-directory. I believe, such a mis-handling of the URL file name part can happen somewhere else as well. So a more general solution might be useful. For the concrete location of my patch you might be right. Let-bind of file-name-handler-alist to nil should do the job as well. > Andreas. Best regards, Michael.