Subject: bug#27: incorrect code in dired-insert-directory

From: Chong Yidong <[email-masked]>
Date: Sun, 20 Apr 2008 09:46:40 -0400

> This line near the end of dired-insert-directory is wrong:
> 
>  (if (and (or hdr wildcard) (not (looking-at "^  /.*:$")))
> 
> The problem is that "^ /.*:$" does not recognize a directory name on
> MS Windows... The regexp works only for Unix and GNU/Linux, not for
> Windows, which has directories that have drive letters

Patch welcome (I'd work on this, but I can't test it since I don't have
Windows available).