From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Patch: file: -> file:/// in w32 Date: Sun, 19 Feb 2006 00:25:17 +0100 Message-ID: <43F7ACDD.30203@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000902000104090409070906" X-Trace: sea.gmane.org 1140305270 16741 80.91.229.2 (18 Feb 2006 23:27:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2006 23:27:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 19 00:27:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FAbUS-0003Hl-9Z for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2006 00:27:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAbUR-0001im-Ov for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2006 18:27:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FAbS5-00011S-0M for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:25:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FAbS3-000114-28 for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:25:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAbS2-00010p-Jg for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:25:18 -0500 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FAbXi-0007ax-H9 for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:31:10 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.070) id 43E9FE4200291317 for emacs-devel@gnu.org; Sun, 19 Feb 2006 00:25:17 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: Emacs Devel X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50730 Archived-At: This is a multi-part message in MIME format. --------------000902000104090409070906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I believe a file url in w32 should begin with "file:///" not just "file:". (I am unsure about ms-dos here.) A tiny patch is attached for this. --------------000902000104090409070906 Content-Type: text/plain; name="browse-url-file.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="browse-url-file.patch" Index: lisp/net/browse-url.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/net/browse-url.el,v retrieving revision 1.53 diff -c -r1.53 browse-url.el *** lisp/net/browse-url.el 6 Feb 2006 11:33:04 -0000 1.53 --- lisp/net/browse-url.el 16 Feb 2006 23:38:42 -0000 *************** *** 458,464 **** ;; applies. ("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "ftp://\\1\\2/") (,@ (if (memq system-type '(windows-nt ms-dos cygwin)) ! '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/") ("^[\\/][\\/]+" . "file://")))) ("^/+" . "file:/"))) "*An alist of (REGEXP . STRING) pairs used by `browse-url-of-file'. --- 458,464 ---- ;; applies. ("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "ftp://\\1\\2/") (,@ (if (memq system-type '(windows-nt ms-dos cygwin)) ! '(("^\\([a-zA-Z]:\\)[\\/]" . "file:///\\1/") ("^[\\/][\\/]+" . "file://")))) ("^/+" . "file:/"))) "*An alist of (REGEXP . STRING) pairs used by `browse-url-of-file'. --------------000902000104090409070906 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------000902000104090409070906--