help-emacs-windows
[Top][All Lists]
Advanced

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

Re: [h-e-w] expand-file-name leaves forward slashes


From: Jason Rumney
Subject: Re: [h-e-w] expand-file-name leaves forward slashes
Date: Mon, 28 Aug 2006 15:05:03 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666

Stephen Leake wrote:
I'm now the ada-mode maintainer, and I'm testing the various ada-mode
functions on "pure Windows"; using the DOS shell instead of Cygwin.

It's not working, because all of the filenames have forward slashes as
directory separators!

To be specific, this:

(expand-file-name "c:/foo/bar")

is supposed to return

"c:\foo\bar"
No, it is supposed to return "c:/foo/bar", since Emacs uses forward slashes everywhere to avoid confusion with backslashes as escape characters in elisp strings. The function you are looking for is `convert-standard-filename'.






reply via email to

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