From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11385: 24.0.96; `image-dired-create-thumb': (file-error "Setting current directory" "no such file or directory" "$HOME/") Date: Sat, 12 May 2012 09:02:42 -0700 Message-ID: <710DA1B16B9D420CA39F9649EBA6A9F8@us.oracle.com> References: <6055A5E4A38745BAA1C8688E4A07B367@us.oracle.com> <8762c9gbro.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336838639 22936 80.91.229.3 (12 May 2012 16:03:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 May 2012 16:03:59 +0000 (UTC) Cc: 11385@debbugs.gnu.org To: "'Chong Yidong'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 12 18:03:58 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1STEnV-0006W6-N6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 May 2012 18:03:57 +0200 Original-Received: from localhost ([::1]:52575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STEnV-0005GX-4H for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 May 2012 12:03:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STEnR-0005G3-Sw for bug-gnu-emacs@gnu.org; Sat, 12 May 2012 12:03:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STEnP-000266-Nw for bug-gnu-emacs@gnu.org; Sat, 12 May 2012 12:03:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STEnP-000261-Kc for bug-gnu-emacs@gnu.org; Sat, 12 May 2012 12:03:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1STEna-0004tb-CU for bug-gnu-emacs@gnu.org; Sat, 12 May 2012 12:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 May 2012 16:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 11385-submit@debbugs.gnu.org id=B11385.133683861118782 (code B ref 11385); Sat, 12 May 2012 16:04:02 +0000 Original-Received: (at 11385) by debbugs.gnu.org; 12 May 2012 16:03:31 +0000 Original-Received: from localhost ([127.0.0.1]:50460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STEn4-0004ss-10 for submit@debbugs.gnu.org; Sat, 12 May 2012 12:03:30 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:21744) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STEmj-0004sN-62 for 11385@debbugs.gnu.org; Sat, 12 May 2012 12:03:28 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4CG2pVv030427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 May 2012 16:02:52 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4CG2p3q018820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 May 2012 16:02:51 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4CG2oiY001154; Sat, 12 May 2012 11:02:50 -0500 Original-Received: from dradamslap1 (/10.159.219.5) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 May 2012 09:02:50 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8762c9gbro.fsf@gnu.org> Thread-Index: Ac0rQsvCQ2PUS/7WRQG+b+3LbgDfgAFFJhwg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59963 Archived-At: > I don't see the problem. Feel free to keep debugging. The question is whether the string passed to `call-process' is legitimate, and if so, why it raises an error. This is the string: * 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-bmk-bmenu-image-file-icon_296198de66b39419 757fa05281dd3766.thumb.png\"" 23 59 (mouse-face highlight))) It is the `image-dired-create-thumb' code that creates that string, not I. Again, this is the error raised: Debugger entered--Lisp error: (file-error "Setting current directory" "no such file or directory" "c:/drews-lisp-20/$HOME/") I don't see code in `image-dired-create-thumb' that refers to the directory, so I don't know where that error is coming from. But clearly either (a) the caller (whoever it is) should have converted "c:/drews-lisp-20/$HOME/" to the value of $HOME (which is "c:/" in this case) or (b) the consumer of "c:/drews-lisp-20/$HOME/" should itself interpret it correctly. IOW, something is wrong, I think, in `image-dired-create-thumb', since it seems to be called with legitimate arguments and it raises an error. Again, this is the call to `image-dired-create-thumb': image-dired-create-thumb(#(".emacs-bmk-bmenu-image-file-icon.png" 0 36 (mouse-face highlight)) "c:/.emacs.d/image-dired/.emacs-bmk-bmenu-image-file-icon_296198de66b39419757fa0 5281dd3766.thumb.png") As you can see, there is nothing here about "c:/drews-lisp-20/$HOME/". And that function was called from this, which also seems legitimate: image-dired-get-thumbnail-image(#(".emacs-bmk-bmenu-image-file-icon.png" 0 36 (mouse-face highlight))) Surely `image-dired-get-thumbnail-image' should be able to return an image file or raise its own pertinent error (which it does): (error "%s is not a valid image file" file). It should not be the case that some low-level code raises an error here (and why does it?).