From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: A few Windows build fixes Date: Fri, 02 Sep 2011 01:14:02 +0100 Message-ID: <8262lbu7g5.fsf@gmail.com> References: <83vcth40ik.fsf@kalahari.s2.org> <83r5444ome.fsf@kalahari.s2.org> <87pqjmfgia.fsf@gmail.com> <8739ggf8ph.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314922467 16957 80.91.229.12 (2 Sep 2011 00:14:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 00:14:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 02 02:14:22 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QzHOl-0003xE-SP for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 02:14:20 +0200 Original-Received: from localhost ([::1]:33498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzHOk-0005Kz-UO for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 20:14:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzHOj-0005Jm-3E for emacs-devel@gnu.org; Thu, 01 Sep 2011 20:14:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzHOh-000561-SZ for emacs-devel@gnu.org; Thu, 01 Sep 2011 20:14:17 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:39450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzHOh-00055u-Hi for emacs-devel@gnu.org; Thu, 01 Sep 2011 20:14:15 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QzHOg-0003wI-1F for emacs-devel@gnu.org; Fri, 02 Sep 2011 02:14:14 +0200 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Sep 2011 02:14:14 +0200 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Sep 2011 02:14:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:jc+MF04wJwqJQiLABcYdaY/GcOU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143701 Archived-At: On Thu 01 Sep 2011, Vijay Lakshminarayanan wrote: > Stefan Monnier writes: > >> cygwin-mount.el is a good package, but it has at least the following >> problems: >> - it affects all file-name operations within Emacs. That's good if you >> (the user) want to pretend that Emacs understands cygwin names and >> want to be able to type them in, perform completion and stuff. But it >> is too intrusive otherwise. >> - it can bump into ambiguities ("/home" can mean the "home" subdir in >> cygwin's root directory, or it can mean C:/home). This is not >> cygwin-mount's fault, but because of how it works, it doesn't try to >> solve those ambiguities too carefully. >> >> So what I proposed above is to use something that also understands >> cygwin file names, but only at those places in the code where it's >> likely to appear (i.e. for file names that come from outside Emacs), at >> which point we can more easily try and resolve ambiguities and we're less >> likely to introduce problems. > > Going through w32-fns.el, I see there's `w32-convert-standard-filename' > which actually replaces /cygdrive/ paths correctly. Indeed, > > (convert-standard-filename > "/cygdrive/c/programs/emacs-24.0.50/lisp/w32-fns.el") > > ; => "c:\\programs\\emacs-24.0.50\\lisp\\w32-fns.el" > > does the right thing. This is buggy. The '/cygdrive' prefix can be replaced per-user or system wide - see the cygwin mount(1) manpage for details. AndyM