>>>> "Darryl" == Darryl Okahata
<darrylo(a)sr.hp.com> writes:
Darryl> Raymond Toy <toy(a)rtp.ericsson.se> wrote:
> I think I have a better solution: Just realize that
"c:\foo" is an
> absolute pathname and let xemacs deal with it. This can be handled by
Darryl> I think you either have to convert the slashes ("\" -->
"/"), or
Darryl> quote the backslashes ("\" --> "\\"); otherwise, the
elisp reader will
Darryl> treat the backslashes as escape sequences.
Actually, gnuclient has clean_string which appears to quote things
correctly, so I don't need to convert \ to /.
Darryl> [ Also, I think much of your patch was correct. The absolute path
Darryl> detection needed fixing, and something needed to be done with the
Darryl> backslashes. The only clearly broken part was translating the drive
Darryl> letters (e.g., "c:\" to "/c/"). ]
Here is an updated that uses your suggested solution. It appears to
work.
Should that be conditionalized on just __CYGWIN32__ or should it be
defined(__CYGWIN32__) && !defined(WINDOWSNT)?
This patch still doesn't handle the case of "\foo". If someone can
tell me how to get the current drive letter, I'll fix this too.
Ray