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 12:43:03 +0100 Message-ID: References: <83vcth40ik.fsf@kalahari.s2.org> <83r5444ome.fsf@kalahari.s2.org> <87pqjmfgia.fsf@gmail.com> <8739ggf8ph.fsf@gmail.com> <8262lbu7g5.fsf@gmail.com> <83y5y7cthv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314963812 22934 80.91.229.12 (2 Sep 2011 11:43:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 11:43:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 02 13:43:25 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 1QzS9a-0004xV-Ds for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 13:43:22 +0200 Original-Received: from localhost ([::1]:38964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzS9Z-000163-Mv for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 07:43:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzS9X-00015x-72 for emacs-devel@gnu.org; Fri, 02 Sep 2011 07:43:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzS9W-0007kW-04 for emacs-devel@gnu.org; Fri, 02 Sep 2011 07:43:19 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzS9V-0007kL-Kr for emacs-devel@gnu.org; Fri, 02 Sep 2011 07:43:17 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QzS9T-0004vf-B9 for emacs-devel@gnu.org; Fri, 02 Sep 2011 13:43:15 +0200 Original-Received: from 193.34.186.16 ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Sep 2011 13:43:15 +0200 Original-Received: from andrewjmoreton by 193.34.186.16 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Sep 2011 13:43:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.34.186.16 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:kYRcota/CwFAY2XYGOJEjhr/2LU= 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:143711 Archived-At: On Fri 02 Sep 2011, Eli Zaretskii wrote: >> From: Andy Moreton >> Date: Fri, 02 Sep 2011 01:14:02 +0100 >> >> > (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. > > Full support for Cygwin-specific file names can only happen on the C > level. E.g., in w32.c:normalize_filename. We should probably have a > similar function in ntlib, because lib-src programs will need to use > it as well (see the example with emacsclient posted here). > > Anything else will necessarily be buggy or at least incomplete. I disagree. The right way to get the cygwin mount points is to run 'mount -m' and look at the output. Doing so at the C level properly involves calling into the cygwin DLL, which is fragile for a non-cygwin application. > And even on the C level, this should be a user option, because > otherwise users who don't have Cygwin anywhere in sight will be unable > to have a real `x:/cygdrive' directory on each of their logical disks. Agreed. While cygwin-mount.el is too intrusive, its approach of running mount is correct. Perhaps a conmbination of the mount table from cygwin-mount.el integrated with some tramp support would do it ? AndyM