bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6339: url-filename => "/c:/some/file.txt"


From: Stefan Monnier
Subject: bug#6339: url-filename => "/c:/some/file.txt"
Date: Thu, 06 Oct 2011 11:31:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]