From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: A few issues with thumbs.el Date: Thu, 09 Jun 2005 10:22:41 -0400 Message-ID: <87ll5jd398.fsf-monnier+emacs@gnu.org> References: <87u0kqrsur.fsf-monnier+emacs@gnu.org> <87hdgon2p2.fsf@jurta.org> <87vf508myc.fsf-monnier+emacs@gnu.org> <87wtp3d626.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118328083 19490 80.91.229.2 (9 Jun 2005 14:41:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2005 14:41:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 09 16:41:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgO03-00019O-Rq for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 16:27:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgO6z-0007Zc-Qw for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 10:34:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DgO52-000742-VJ for emacs-devel@gnu.org; Thu, 09 Jun 2005 10:32:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DgO4v-0006zm-8w for emacs-devel@gnu.org; Thu, 09 Jun 2005 10:32:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgO4v-0006tb-4G for emacs-devel@gnu.org; Thu, 09 Jun 2005 10:32:17 -0400 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DgNvo-0000Ji-Dp for emacs-devel@gnu.org; Thu, 09 Jun 2005 10:22:52 -0400 Original-Received: from alfajor ([70.48.82.205]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050609142241.FPGE19894.tomts20-srv.bellnexxia.net@alfajor>; Thu, 9 Jun 2005 10:22:41 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 47456D73A3; Thu, 9 Jun 2005 10:22:41 -0400 (EDT) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Thu, 9 Jun 2005 15:35:49 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38433 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38433 >> Some files even run programs upon load (typically >> things like "ispell --version"), and while it's often sub-optimal, it's >> still OK as long as the program itself won't change any state either. > Yeah. In fact I want to do that to detect whether the convert.exe in > the path is the ImageMagick's or Windows' one (alternatively, I'm > thinking of temporarily removing %windir%/* directories from exec-path > before trying to find convert.exe). I'm not sure what the convert.exe that comes with Windows does, but I assume it's of no use to thumbs.el. In such a case running the program might not be that useful since all it will allow us to do is to tell the user that his "convert" isn't the one we need. We could do that just as well when we actually really have to run it (as part of a generic error-handling or sanity-checking code that ensures that convert.exe indeed produced the file we wanted). OTOH giving preference to a convert.exe which is not in %windir%/* might indeed help make the code run in more circumstances, so it's probably a good idea (although it may still want to use a convert.exe found in %windir%/* if it couldn't find any other). Stefan