From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Cygwin patches Date: Sun, 22 Nov 2009 20:50:29 -0500 Message-ID: <876392m2l6.fsf@stupidchicken.com> References: <4B06F562.8060504@cornell.edu> <4B071784.5030901@cornell.edu> <83my2gpa83.fsf@gnu.org> <4B07D914.8070608@cornell.edu> <836394oxr9.fsf@gnu.org> <4B0859F2.8080202@cornell.edu> <39880.128.165.0.81.1258867518.squirrel@webmail.lanl.gov> <4B0935CC.5010704@cornell.edu> <874oomcgcz.fsf@stupidchicken.com> <4B09C807.8000202@cornell.edu> <4B09E73E.8000800@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258941061 7598 80.91.229.12 (23 Nov 2009 01:51:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 01:51:01 +0000 (UTC) Cc: Eli Zaretskii , Lennart Borgman , emacs-devel@gnu.org To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 23 02:50:54 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NCO4o-0001mf-2Q for ged-emacs-devel@m.gmane.org; Mon, 23 Nov 2009 02:50:50 +0100 Original-Received: from localhost ([127.0.0.1]:40162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCO4n-0007I5-Nd for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2009 20:50:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCO4i-0007G6-Eq for emacs-devel@gnu.org; Sun, 22 Nov 2009 20:50:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCO4d-0007Bf-Kn for emacs-devel@gnu.org; Sun, 22 Nov 2009 20:50:43 -0500 Original-Received: from [199.232.76.173] (port=39832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCO4d-0007BO-Dk for emacs-devel@gnu.org; Sun, 22 Nov 2009 20:50:39 -0500 Original-Received: from pantheon-po45.its.yale.edu ([130.132.50.79]:40305) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NCO4a-0002pE-8u; Sun, 22 Nov 2009 20:50:36 -0500 Original-Received: from furry (adsl-99-58-202-243.dsl.wlfrct.sbcglobal.net [99.58.202.243]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nAN1oUBw014088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 22 Nov 2009 20:50:30 -0500 Original-Received: by furry (Postfix, from userid 1000) id EF2D7C071; Sun, 22 Nov 2009 20:50:29 -0500 (EST) In-Reply-To: <4B09E73E.8000800@cornell.edu> (Ken Brown's message of "Sun, 22 Nov 2009 20:37:02 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:117530 Archived-At: Ken Brown 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. ("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "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. ("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "ftp://\\1\\2/") ! ,@(if (memq system-type '(windows-nt ms-dos)) '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/") ("^[\\/][\\/]+" . "file://"))) ("^/+" . "file:///"))