> Date: Thu, 18 Jun 2015 13:45:06 +0100
> From: Bryan Childs <godeater@gmail.com>
>
> (file-in-directory-p "~/.emacs.d/elpa/magit/" "~\\.emacs.d\\elpa")
> nil
> (file-in-directory-p "~/.emacs.d/elpa/magit-20150608.1139/"
> "~\\.emacs.d\\elpa")
> nil
I cannot reproduce this problem on my Windows machine. I get t, not
nil. (I don't have a 'magit' sub-directory, so I tried with a
different name, but it shouldn't matter.)
So there's some other factor at work here.
Where exactly is your "~" directory? Please show its full absolute
Windows file name. Also, what do you see if you evaluate the
following expressions, one by one, using 'M-:' ?
(file-attributes "~/.emacs.d/elpa/magit" 'string)
(file-attributes "~/.emacs.d/elpa" 'string)
(file-attributes "~/.emacs.d" 'string)
(file-attributes "~" 'string)
Finally, please try evaluating this in "emacs -Q":
(file-in-directory-p "~/.emacs.d/elpa/magit/" "~\\.emacs.d\\elpa")
Do you still get nil in "emacs -Q"?
Thanks.