From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: A few issues with thumbs.el Date: Thu, 9 Jun 2005 15:35:49 +0200 Message-ID: References: <87u0kqrsur.fsf-monnier+emacs@gnu.org> <87hdgon2p2.fsf@jurta.org> <87vf508myc.fsf-monnier+emacs@gnu.org> <87wtp3d626.fsf-monnier+emacs@gnu.org> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118325352 9035 80.91.229.2 (9 Jun 2005 13:55:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2005 13:55:52 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 09 15:55:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgNA9-0000X4-K4 for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 15:33:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgNH5-0007MB-21 for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 09:40:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DgNGj-0007GR-Ma for emacs-devel@gnu.org; Thu, 09 Jun 2005 09:40:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DgNGi-0007FU-Gt for emacs-devel@gnu.org; Thu, 09 Jun 2005 09:40:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgNGi-0007Eh-1H for emacs-devel@gnu.org; Thu, 09 Jun 2005 09:40:24 -0400 Original-Received: from [64.233.182.206] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DgNCS-0003nk-Fv for emacs-devel@gnu.org; Thu, 09 Jun 2005 09:36:00 -0400 Original-Received: by nproxy.gmail.com with SMTP id d4so10863nfe for ; Thu, 09 Jun 2005 06:35:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qwjFxIv60I409UcDkiPxFf+jKRUP1ZxrAqlcqD3K3AebvunilVkuJKxWK6lJFkloyxcWnRVaNN4J3WlnsEBm+BPEPs+nEaQLVqtoVyhUwRdymJGihWG3jvw0n6QK+7ZZ4hiO11uVMuF1uonbTEAJHMdKSxXqHH+ck1aAHdPVcEc= Original-Received: by 10.48.250.12 with SMTP id x12mr11962nfh; Thu, 09 Jun 2005 06:35:49 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Thu, 9 Jun 2005 06:35:49 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <87wtp3d626.fsf-monnier+emacs@gnu.org> Content-Disposition: inline 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:38430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38430 > Indeed, the delete-upon-load is also a heuristic and it's not necessarily > better than any other. I think anything is OK, as long as it's run at le= ast > once per Emacs session where you use thumbs without being run too often t= o > slow everything down. OK, I'll do a little thinking about that. > It's more or less a "pure" function. That's what I thought. Thanks. > 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). > toto_NNNN.jpg would be the thumb for (e.g.) baz/toto.gif. > The NNNN is in case you want to add a hash or counter. Ah, OK.=20 I have a few fixes for thumbs.el (with my latest patches it could fail to create a valid temporary file name if thumbs-thumbdir or thumbs-temp-dir do not end in slash), but I'll wait till I've given consideration to these issues. --=20 /L/e/k/t/u