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#6339: url-filename => "/c:/some/file.txt" Date: Thu, 06 Oct 2011 11:31:16 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1317915665 8419 80.91.229.12 (6 Oct 2011 15:41:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 15:41:05 +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 17:41:00 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 1RBq4C-0005Vf-Ga for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 17:41:00 +0200 Original-Received: from localhost ([::1]:52335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBq4C-0006aB-4K for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 11:41:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBq46-0006a3-Dt for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:40:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBq45-0005EE-3B for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:40:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBq45-0005Du-1M for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:40:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBq4D-0004Kq-OA for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:41:01 -0400 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: Thu, 06 Oct 2011 15:41:01 +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.131791561816606 (code B ref 6339); Thu, 06 Oct 2011 15:41:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 6 Oct 2011 15:40:18 +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 1RBq3V-0004Jm-LF for submit@debbugs.gnu.org; Thu, 06 Oct 2011 11:40:18 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBq3T-0004Jd-6B for 6339@debbugs.gnu.org; Thu, 06 Oct 2011 11:40:16 -0400 Original-Received: from ceviche.home ([70.83.132.46]) by VL-VM-MR004.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0LSN00HV2I1HYI70@VL-VM-MR004.ip.videotron.ca> for 6339@debbugs.gnu.org; Thu, 06 Oct 2011 11:36:57 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id AAD486642D; Thu, 06 Oct 2011 11:31:16 -0400 (EDT) In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 11:41:01 -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:52293 Archived-At: >> 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. I understand the gist of it. I'm interested in the actual resulting code changes: the above sample patch fails to include the corresponding (expand-file-name (url-filename ...) "/"), for example. Stefan