[Top][All Lists]

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

Request to support Cygwin in convert-standard-filename function

From: Xi Shen
Subject: Request to support Cygwin in convert-standard-filename function
Date: Sun, 12 Jun 2016 02:51:14 +0000


I encounter a problem with `convert-standard-filename`, https://www.gnu.org/software/emacs/manual/html_node/elisp/Standard-File-Names.html. I call this function within a Cygwin environment, and this function could not return me a MS-DOS/Windows format path. I think it treats Cygwin environment as a normal *nix environment.

In Cygwin environment, the Emacs has a function called `cygwin-convert-file-name-to-windows` which converts a expanded path to a Windows path, e.g.:

    /cygdrive/c/Windows => c:\Windows

According to the description of the `convert-standard-filename`, it is expected to be used only in places where the callee wants to convert a *nix path to the underline OS path. I think it is appropriate we invoke the `cygwin-convert-file-name-to-windows`  function inside the `convert-standard-filename` function if it is called within a Cygwin environment.

I am eager to hear your feedback.



David S.

reply via email to

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