emacs-devel
[Top][All Lists]
Advanced

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

Re: Cygwin patches


From: Chong Yidong
Subject: Re: Cygwin patches
Date: Sun, 22 Nov 2009 20:50:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Ken Brown <address@hidden> writes:

> So are you saying that "file:" (with no slashes) is added by design?
> It doesn't work for me.  (After the call to cygpath, I have a path of
> the form C:/blah/blah/blah.html; I need to add "file://", since
> otherwise only "file:" gets added and I don't have a valid URL.)

Does this change (instead of the other patches we've been considering)
do the right thing on Cygwin?

*** emacs/lisp/net/browse-url.el.~1.86.~        2009-11-22 18:00:33.000000000 
-0500
--- emacs/lisp/net/browse-url.el        2009-11-22 20:49:42.000000000 -0500
***************
*** 443,449 ****
      ;; it in anonymous cases.  If it's not anonymous the next regexp
      ;; applies.
      ("^/\\([^:@address@hidden)?\\([^:]+\\):/*" . "ftp://\\1\\2/";)
!     ,@(if (memq system-type '(windows-nt ms-dos cygwin))
            '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/")
              ("^[\\/][\\/]+" . "file://")))
      ("^/+" . "file:///"))
--- 443,449 ----
      ;; it in anonymous cases.  If it's not anonymous the next regexp
      ;; applies.
      ("^/\\([^:@address@hidden)?\\([^:]+\\):/*" . "ftp://\\1\\2/";)
!     ,@(if (memq system-type '(windows-nt ms-dos))
            '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/")
              ("^[\\/][\\/]+" . "file://")))
      ("^/+" . "file:///"))




reply via email to

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