> Ooops, I see I got my arguments to string-match backward. Swap them.
>
> Eric
>
>>>> "Eric M. Ludlam" <eric@...> seems to think that:
>>It seems to be most confused by "c:/". There probably needs to be
>>some sort of MS windows specific short cut matching the drive letter
>>in there, sort of like:
>>
>>(defun ede-up-directory (dir)
>> "Return a path that is up one directory.
>>Argument DIR is the directory to trim upwards."
>> (if (string-match dir "^[A-Z]:[\\/]$")
>> nil
..
(if (string-match "^[A-Z]:[\\/]$" dir)
nil
That works!
I knew that an easy fix :-)
For some reason it was not happening on mingw build, but mingw
build had some weird 'file-attributes', which screwed up
file mod time by -1 second and reported errors to vc-state.
Thanks.