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: Pascal Quesseveur
Subject: Re: browse-url and URL handlers (MS-Windows)
Date: Tue, 11 Oct 2022 18:59:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt)

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


-- 
Pascal Quesseveur
pquessev@gmail.com




reply via email to

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