From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A few Windows build fixes Date: Fri, 02 Sep 2011 10:07:24 +0300 Message-ID: <83y5y7cthv.fsf@gnu.org> References: <83vcth40ik.fsf@kalahari.s2.org> <83r5444ome.fsf@kalahari.s2.org> <87pqjmfgia.fsf@gmail.com> <8739ggf8ph.fsf@gmail.com> <8262lbu7g5.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314947255 11790 80.91.229.12 (2 Sep 2011 07:07:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 07:07:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 02 09:07:30 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 1QzNqb-0003H1-Vp for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 09:07:30 +0200 Original-Received: from localhost ([::1]:42475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzNqb-0006YN-5B for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 03:07:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzNqY-0006Xr-7c for emacs-devel@gnu.org; Fri, 02 Sep 2011 03:07:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzNqX-00055b-C8 for emacs-devel@gnu.org; Fri, 02 Sep 2011 03:07:26 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzNqX-00055N-5o for emacs-devel@gnu.org; Fri, 02 Sep 2011 03:07:25 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQV00K00VPWU000@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 02 Sep 2011 10:07:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.83.44]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQV00K2EVSASP20@a-mtaout20.012.net.il>; Fri, 02 Sep 2011 10:07:23 +0300 (IDT) In-reply-to: <8262lbu7g5.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:143707 Archived-At: > 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. 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.