From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: A few issues with thumbs.el Date: Mon, 30 May 2005 21:57:33 +0300 Organization: JURTA Message-ID: <877jhgczj6.fsf@jurta.org> References: <87br6zuerw.fsf-monnier+emacs@gnu.org> <87u0kqrsur.fsf-monnier+emacs@gnu.org> <87hdgon2p2.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 1117479743 30415 80.91.229.2 (30 May 2005 19:02:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 19:02:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 21:02:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DcpW6-0000CA-77 for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 21:01:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcpZW-0000xX-Na for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 15:05:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DcpYo-0000qe-4d for emacs-devel@gnu.org; Mon, 30 May 2005 15:04:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DcpYg-0000nL-JE for emacs-devel@gnu.org; Mon, 30 May 2005 15:04:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcpYg-0000n5-35 for emacs-devel@gnu.org; Mon, 30 May 2005 15:04:18 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DcpVR-0007Fd-CR for emacs-devel@gnu.org; Mon, 30 May 2005 15:00:57 -0400 Original-Received: from mail.neti.ee (80-235-41-167-dsl.mus.estpak.ee [80.235.41.167]) by Relayhost1.neti.ee (Postfix) with ESMTP id C58FF8ED5; Mon, 30 May 2005 21:59:15 +0300 (EEST) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Mon, 30 May 2005 12:03:56 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:37898 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37898 >> AFAIK, GIMP uses md5 for naming thumbnail files. It stores original >> file names as comments in image files. thumb.el could do the same >> adding comments with original file names, e.g.: > > I'd like that, but the most prevalent opinion has been that people > wants to have the filename directly visible in the thumbname, so > that's what I've finally implemented. Maybe just a file name without the directory part is enough for people to recognize the thumbnail file? This makes thumbnail filenames much shorter, so they fit into 80-character wide windows (currently thumbnail filenames are so long that they are truncated in dired buffers and the non-directory part is not visible without horizontal scrolling). How about the following template? (format "%s/%s-%x.jpg" thumbs-thumbsdir (file-name-nondirectory filename) (sxhash contents)) -- Juri Linkov http://www.jurta.org/emacs/