From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#6339: url-filename => "/c:/some/file.txt" Date: Thu, 06 Oct 2011 22:24:57 +0800 Message-ID: <87sjn6qjt2.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317911169 7037 80.91.229.12 (6 Oct 2011 14:26:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 14:26:09 +0000 (UTC) Cc: Kevin Rodgers , 6339@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 16:26:04 2011 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 1RBotg-0000Vv-6S for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 16:26:04 +0200 Original-Received: from localhost ([::1]:45314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBotd-0004VB-GP for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 10:26:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBotX-0004Uu-G9 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 10:25:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBotV-0007iD-UV for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 10:25:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBotV-0007i8-Rd for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 10:25:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBote-0001nl-Do for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 10:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 14:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6339 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6339-submit@debbugs.gnu.org id=B6339.13179111246882 (code B ref 6339); Thu, 06 Oct 2011 14:26:02 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 6 Oct 2011 14:25:24 +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 1RBot2-0001mx-8Q for submit@debbugs.gnu.org; Thu, 06 Oct 2011 10:25:24 -0400 Original-Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBosz-0001ml-UY for 6339@debbugs.gnu.org; Thu, 06 Oct 2011 10:25:22 -0400 Original-Received: by qadb12 with SMTP id b12so2127224qad.3 for <6339@debbugs.gnu.org>; Thu, 06 Oct 2011 07:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Zwm4QQ8A9/UvpTLKl2QSShPWPJZVsVgyUKy80+84rUM=; b=bT1pzU6ajkwEkkVbOd3nR78680daN+x4V6Iin5ZCHDJbIOuwEQqUM7kEOvFYENOYGS n2Blv5zaLd5YlhMRZpPeiJf4Ez7vR2yKDzxSHKoZsFjbhKd+q291uF798Y4PZxSr18e5 ajIl5Iqz65HvoDUaTK+s5wUGIPLQjUdK9fJwU= Original-Received: by 10.224.212.1 with SMTP id gq1mr481272qab.277.1317911107255; Thu, 06 Oct 2011 07:25:07 -0700 (PDT) Original-Received: from home.jasonrumney.net ([180.75.146.74]) by mx.google.com with ESMTPS id z1sm6578300qao.1.2011.10.06.07.25.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Oct 2011 07:25:06 -0700 (PDT) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id 1A3F4DA3; Thu, 6 Oct 2011 22:24:58 +0800 (MYT) In-Reply-To: (Juanma Barranquero's message of "Thu, 6 Oct 2011 15:40:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 10:26:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52282 Archived-At: Juanma Barranquero writes: >> Could someone (re)send the proposed patch? > > The proposed patch is this, or something similar to this: > > === modified file 'lisp/url/url-parse.el' > --- lisp/url/url-parse.el 2010-06-22 16:48:53 +0000 > +++ lisp/url/url-parse.el 2010-07-26 11:46:11 +0000 > @@ -148,4 +148,5 @@ > ;; 3.3. Path > + (when (looking-at "/") (forward-char 1)) > ;; Gross hack to preserve ';' in data URLs > (setq save-pos (point)) > > but the gist of it is, make url-generic-parse-url not consider the > slash separator as part of the path. If we agree in that, we can then > decide whether that place is the right one to do it or not. This is a general url-parsing function, changing this to not return the leading / on the file portion of the url will break every other user of this function. This needs to be done for file URLs only, and be system-dependent.