From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: A few issues with thumbs.el Date: Mon, 30 May 2005 22:38:56 +0200 Message-ID: <85r7foe9en.fsf@lola.goethe.zz> References: <87br6zuerw.fsf-monnier+emacs@gnu.org> <87u0kqrsur.fsf-monnier+emacs@gnu.org> <87hdgon2p2.fsf@jurta.org> <877jhgczj6.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117485958 18563 80.91.229.2 (30 May 2005 20:45:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 20:45:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 22:45:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dcr7G-0004mN-50 for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 22:44:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcrCD-0007I9-1v for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 16:49:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DcrAf-0006jo-7j for emacs-devel@gnu.org; Mon, 30 May 2005 16:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DcrAc-0006i4-C1 for emacs-devel@gnu.org; Mon, 30 May 2005 16:47:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcrAb-0006hU-MY for emacs-devel@gnu.org; Mon, 30 May 2005 16:47:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dcr8m-0004xE-Bv for emacs-devel@gnu.org; Mon, 30 May 2005 16:45:40 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Dcr6Q-0007Cc-Dh; Mon, 30 May 2005 16:43:14 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id DA5071CDB1F2; Mon, 30 May 2005 22:38:56 +0200 (CEST) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Mon, 30 May 2005 22:29:55 +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:37901 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37901 Juanma Barranquero writes: >> How about the following template? >> >> (format "%s/%s-%x.jpg" >> thumbs-thumbsdir >> (file-name-nondirectory filename) >> (sxhash contents)) > > A problem is that (sxhash contents) will be slower; I have no issue > with that, but perhaps someone will. Other than that, I'm OK with any > fix that produces valid filenames and minimizes collisions. I'd rather hash the file modification date rather than the contents. What's good enough for `make'... -- David Kastrup, Kriemhildstr. 15, 44793 Bochum