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: Mon, 30 May 2005 17:05:02 -0400 Message-ID: <87vf508myc.fsf-monnier+emacs@gnu.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 1117487187 21930 80.91.229.2 (30 May 2005 21:06:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 21:06:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 23:06:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DcrRs-0006xy-67 for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 23:05:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcrWp-0005cN-6V for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 17:10:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DcrVa-0005Ad-5K for emacs-devel@gnu.org; Mon, 30 May 2005 17:09:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DcrVV-00058A-No for emacs-devel@gnu.org; Mon, 30 May 2005 17:09:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcrVU-00055t-Br for emacs-devel@gnu.org; Mon, 30 May 2005 17:09:08 -0400 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DcrT9-0006Qy-JX for emacs-devel@gnu.org; Mon, 30 May 2005 17:06:43 -0400 Original-Received: from alfajor ([67.71.25.47]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050530210503.RXAJ25800.tomts13-srv.bellnexxia.net@alfajor>; Mon, 30 May 2005 17:05:03 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 95E98D7403; Mon, 30 May 2005 17:05:02 -0400 (EDT) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Mon, 30 May 2005 12:03:56 +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:37903 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37903 A few questions about thumbs.el: - It has some non-negligible actions at the top-level, which is contrary to the conventions (the reason for those conventions is that the file may get loaded without any intention to actually use the mode. E.g. it may be loaded by Custom, or by the byte-compiler, ...). These are bugs and should be fixed. I'm thinking of: ;; Make sure auto-image-file-mode is ON. (auto-image-file-mode t) ;; Create the thumbs directory if it does not exists. (setq thumbs-thumbsdir (expand-file-name thumbs-thumbsdir)) (when (not (file-directory-p thumbs-thumbsdir)) (progn (make-directory thumbs-thumbsdir) (message "Creating thumbnails directory"))) (when thumbs-thumbsdir-auto-clean (thumbs-cleanup-thumbsdir)) - I wish there was a way to put the thumbs directly next to the original image files. E.g. instead of ~/.emacs-thumbs/foo!bar!baz!toto!NNNN.jpg I'd like to use ~/foo/bar/baz/.emacs-thumbs/toto_NNNN.jpg. -- Stefan