emacs-devel
[Top][All Lists]
Advanced

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

Re: browse-url and URL handlers (MS-Windows)


From: Eli Zaretskii
Subject: Re: browse-url and URL handlers (MS-Windows)
Date: Tue, 11 Oct 2022 20:16:21 +0300

> From: Pascal Quesseveur <pquessev@gmail.com>
> Date: Tue, 11 Oct 2022 18:59:48 +0200
> 
> >"EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> 
> 
>   EZ> Is the below the right fix?
> 
>   EZ> diff --git a/lisp/url/url-parse.el b/lisp/url/url-parse.el
>   EZ> index 91f47d0..cc3e236 100644
>   EZ> --- a/lisp/url/url-parse.el
>   EZ> +++ b/lisp/url/url-parse.el
>   EZ> @@ -201,6 +201,9 @@ url-generic-parse-url
>   EZ>             (when (looking-at "\\?")
>   EZ>               (skip-chars-forward "^#"))
>   EZ>             (setq file (buffer-substring save-pos (point)))
>   EZ> +            (if (and (eq system-type 'windows-nt)
>   EZ> +                     (string-match-p "/[A-Z]:/" file))
>   EZ> +                (setq file (substring file 1)))
>   EZ>             ;; 3.5 Fragment
>   EZ>             (when (looking-at "#")
>   EZ>               (let ((opoint (point)))
> 
>   It fixes the error in url-generic-parse-url (you have to add "a-z"
> in the regexp) but then browse-url-emacs doesn't work anymore. Call to
> browse-url-emacs must be interrupted by C-g.

Can you show a recipe with browse-url-emacs, starting from "emacs -Q",
which infloops?



reply via email to

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