[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few Windows build fixes

From: Andy Moreton
Subject: Re: A few Windows build fixes
Date: Fri, 02 Sep 2011 12:43:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

On Fri 02 Sep 2011, Eli Zaretskii wrote:

>> From: Andy Moreton <address@hidden>
>> 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

> 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.


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 ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]