From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: A few Windows build fixes Date: Fri, 02 Sep 2011 08:48:27 -0400 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 1314967725 17054 80.91.229.12 (2 Sep 2011 12:48:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 12:48:45 +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 14:48:41 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 1QzTAm-00011D-C8 for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 14:48:40 +0200 Original-Received: from localhost ([::1]:44372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzTAk-0003A1-VV for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2011 08:48:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzTAi-00039w-MV for emacs-devel@gnu.org; Fri, 02 Sep 2011 08:48:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzTAh-0003FF-Gz for emacs-devel@gnu.org; Fri, 02 Sep 2011 08:48:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:38308 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzTAh-0003FA-EO for emacs-devel@gnu.org; Fri, 02 Sep 2011 08:48:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAHzQYE64rwMJ/2dsb2JhbABCqGV5gUYBAQQBViMFCwsOJhIUGA0QAROIBbcThmUEoBWEQA X-IronPort-AV: E=Sophos;i="4.68,319,1312171200"; d="scan'208";a="134122687" Original-Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 02 Sep 2011 08:48:27 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 26C376623F; Fri, 2 Sep 2011 08:48:27 -0400 (EDT) In-Reply-To: (Andy Moreton's message of "Fri, 02 Sep 2011 12:43:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:143712 Archived-At: >> 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 [...] > 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. That's also my impression. The way cywin-mount.el does it seems good enough. >> similar function in ntlib, because lib-src programs will need to use >> it as well (see the example with emacsclient posted here). I don't think so. E.g. emacsclient doesn't need to know about those things, because it should just pass its arguments untouched to server.el which can then do whatever it feels like doing with it, including un-cygwinize file names. > 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 ? No, the whole point of my discussion is that it should *not* be a file-name-handler (i.e. unlike Tramp and cygwin-mount) because that's too intrusive. If you want cygwin-name support within Emacs (i.e. as a file-name-handler), then cygwin-mount is the right way to do it. Stefan