|
From: Oleksandr G. <gav...@gm...> - 2010-04-16 18:46:55
|
On 2010-04-15 23:55, Keith Marshall wrote:
> On Thursday 15 April 2010 19:16:32 Bill Janssen wrote:
>>> Just
>>>
>>> (load "E:/home/usr/share/emacs/site-lisp/cygwin-mount.el")
>>> (cygwin-mount-activate)
>>
>> Unfortunately, I don't have cygwin installed (and don't want to
>> have it installed), so the programs this depends on won't work.
>>
>> Anyone else? msys filepaths with GNU Emacs?
>
> This is a native MS-W32 build of emacs, right?
Yes.
> with native MS-W32 paths, by design. It is most unlikely that it
> will be possible to teach it to understand MSYS path syntax;
No. It easy to teach it to understand MSYS path syntax.
This done trough
file-name-handler-alist
*Alist of elements (REGEXP . HANDLER) for file names handled
specially. If a file name matches REGEXP, then all I/O on that
file is done by calling HANDLER.
in elisp. There are added special patterns:
("^/cygdrive/[A-Za-z]/" . cygwin-mount-map-drive-hook-function)
("^//[A-Za-z]/" . cygwin-mount-map-drive-hook-function)
("^/[^:@]*$\\|^/|/[^/:]+\\(\\'\\|/\\)" . cygwin-mount-name-hook-function)
So if you type C-x C-f (open file command) and enter path /bin/cmd
it open 'E:\bin\msys\bin\cmd' file.
> that to work, emacs would need to be linked with the MSYS runtime
> library, which means you would need to create an MSYS specific build
> of the emacs binaries. (Charles Wilson has provided us with a fully
> functional MSYS specific build of vim, which we distribute, but no
> one has yet done likewise for emacs).
>
For vim it really need make MSYS build to get it work with MSYS.
With Emacs you can use native build from FSF:
http://ftp.gnu.org/pub/gnu/emacs/windows/
and with cygwin-mount.el teach Emacs understand MSYS path.
--
Best regards!
|