From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#6339: url-filename => "/c:/some/file.txt" Date: Wed, 21 Sep 2011 22:28:17 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316637422 17819 80.91.229.12 (21 Sep 2011 20:37:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2011 20:37:02 +0000 (UTC) Cc: 6339@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 21 22:36:58 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 1R6TXM-0006MQ-A5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 22:36:56 +0200 Original-Received: from localhost ([::1]:46516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6TXL-0002RD-LO for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 16:36:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6TXF-0002Fr-Qs for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 16:36:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6TXC-0003FF-Ja for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 16:36:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6TXC-0003FA-E2 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 16:36:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R6TXS-0006ih-W2 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 16:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2011 20:37: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.131663739125755 (code B ref 6339); Wed, 21 Sep 2011 20:37:02 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 21 Sep 2011 20:36:31 +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 1R6TWw-0006hG-St for submit@debbugs.gnu.org; Wed, 21 Sep 2011 16:36:31 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6TWr-0006gk-5f for 6339@debbugs.gnu.org; Wed, 21 Sep 2011 16:36:26 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R6TWU-00069O-1x; Wed, 21 Sep 2011 22:36:02 +0200 In-Reply-To: (Juanma Barranquero's message of "Mon, 26 Jul 2010 13:50:09 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Oneohtrix Point Never's _Returnal_: "Nil Admirari" X-MailScanner-ID: 1R6TWU-00069O-1x MailScanner-NULL-Check: 1317242162.23613@SJjEFZg94Us+4udRKb3TVA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Sep 2011 16:37: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:51599 Archived-At: Juanma Barranquero writes: > On Thu, Jun 3, 2010 at 04:38, Lennart Borgman = wrote: > >> (setq x (url-generic-parse-url "file:///c:/some/file.txt")) >> (url-filename x) =3D> "/c:/some/file.txt" >> >> Should not that be "c:/some/file.txt"? [...] > I'd rather fix it the good way and watch the fireworks. > > =A0 =A0 Juanma > > =3D=3D=3D 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)) If I say: (setq x (url-generic-parse-url "file:///home/larsi/foo.txt")) Then I get (url-filename x) =3D> "/home/larsi/foo.txt" as expected. Would your patch break that? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/