Subject: Re: bug#11385: 24.0.96; `image-dired-create-thumb': (file-error "Setting current directory" "no such file or directory" "$HOME/")

From: Eli Zaretskii <[email-masked]>
Date: Sat, 12 May 2012 20:11:34 +0300

> From: "Drew Adams" <[email-masked]>
> Date: Sat, 12 May 2012 09:34:16 -0700
> Cc: 'Chong Yidong' <[email-masked]>, [email-masked]
> 
> > You need to find out who ever sets default-directory to
> > "c:/drews-lisp-20/$HOME/".
> 
> Yes, it is my code that (mistakenly) does that.  That is what is provoking the
> problem, but I think the image-dired code should anyway protect against such a
> case, instead of leading to a low-level error.

I think $HOME is not generally recognized in file names.  Only a few
select functions know about it (substitute-in-file-name and
expand-file-name come to mind).