GNU bug report logs -
#11385
24.0.96; `image-dired-create-thumb': (file-error "Setting current directory" "no such file or directory" "$HOME/")
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 30 Apr 2012 17:33:01 UTC
Severity: normal
Tags: moreinfo
Found in version 24.0.96
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
I do not have a recipe from emacs -Q
However, I debugged the code that leads to the problem a bit, hoping it
will help. This is from the debugger, just before the error:
* call-process("C:/cygwin/bin/bash.exe" nil nil nil "-c"
#("convert -size 100x100
\".emacs-bmk-bmenu-image-file-icon.png\" -resize \"100x100>\" -strip
jpeg:\"c:/.emacs.d/image-dired/.emacs_028631bce981005b8fb0ffc7b6a1a0f9.thumb.png
\""
23 59 (mouse-face highlight)))
* image-dired-create-thumb(#(".emacs.png"
0 36 (mouse-face highlight))
"c:/.emacs.d/image-dired/.emacs_028631bce981005b8fb0ffc7b6a1a0f9.thumb.png")
* image-dired-get-thumbnail-image(#(".emacs.png"
0 36 (mouse-face highlight)))
In the minibuffer, which is where the current directory is being picked up, I
have this: c:/foo/bar/$HOME/. My value of env var $HOME is "c:\\".
I am not using vanilla Emacs completion. At the time the debugger was
entered (because I placed `(debug)' in the code), the completion
candidates are displayed in *Completions*, and they are (correctly)
all of the files in c:/.
I'm using code that, to display the candidates in *Completions*,
checks whether each is an image file, and if so optionally
displays a thumbnail of the image in *Completions*. It is this code
that calls `image-dired-get-thumbnail':
(when (and (require 'image-dired nil t)
(string-match-p (image-file-name-regexp) image-file))
(let ((thumb-img (append (image-dired-get-thumbnail-image image-file)
'(:margin 2)))
Debugging shows that (image-dired-thumb-name ".emacs.png") returns
"c:/foo/bar/$HOME/.emacs.png". Eventually, `image-dired-create-thumb' is
called, and it calls `call-process' as shown above.
In GNU Emacs 24.0.96.1 (i386-mingw-nt5.1.2600)
of 2012-04-28 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --no-opt --enable-checking --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'
This bug report was last modified 12 years and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.