emacs-devel
[Top][All Lists]
Advanced

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

Re: abbreviate-file-name on Windows seems incorrect


From: Chris Moore
Subject: Re: abbreviate-file-name on Windows seems incorrect
Date: Mon, 08 Jan 2007 14:07:17 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Stephen Leake <address@hidden> writes:

> (expand-file-name "~/foo")
> "c:/Projects/foo"
>
> (abbreviate-file-name "c:\\Projects\\foo")
> "c:\\Projects\\foo"

abbreviate-file-name is using string-match to see check whether
"c:\\Projects\\foo" matches the regexp "^c:/Projects\\(/\\|\\`\\)".
It doesn't, so no abbreviation happens.

It's the old MS-DOG confusion between \ and / again.




reply via email to

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