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: tumme testing Date: Mon, 13 Feb 2006 19:55:27 +0200 Organization: JURTA Message-ID: <87k6bzb0ts.fsf@jurta.org> References: <17366.53124.274532.548329@kahikatea.snap.net.nz> <87bqxgynfn.fsf@jurta.org> <87accya7ds.fsf@jurta.org> <873bioa7fx.fsf@jurta.org> <7dbe73ed0602121321y40121fabha6c48bacd55f9d2@mail.gmail.com> <7dbe73ed0602121541t48756d62l3ce6c0f6cc2a9e64@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139855091 27059 80.91.229.2 (13 Feb 2006 18:24:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2006 18:24:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 19:24:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F8iMj-0005Gl-3v for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 19:24:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8iMi-0008Mi-IZ for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 13:24:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8iLj-000874-Rz for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8iLi-000865-4X for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8iLh-000862-Td for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:57 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F8iQC-0002kq-Ko for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:27:36 -0500 Original-Received: from mail.neti.ee (80-235-43-67-dsl.mus.estpak.ee [80.235.43.67]) by Relayhost2.neti.ee (Postfix) with ESMTP id 648F56296; Mon, 13 Feb 2006 20:22:55 +0200 (EET) Original-To: bob@rattlesnake.com In-Reply-To: (Robert J. Chassell's message of "Mon, 13 Feb 2006 00:24:41 +0000 (UTC)") 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:50472 Archived-At: > 1. A `very small' image option. Instead of `tumme-thumb-size' which > fits the standard, a `tumme-very-small-thumb-size', perhaps only > 32 pixels (or maybe 48; I don't know; the value should be held in > a variable that has a default but can be set in your .emacs file). > > The function would be > > (tumme-dired-insert-marked-thumbs &optional size) > > and, interactively, would be called for the `very small' size with a > prefix option. Using a different size requires handling it at different levels: how to specify the size interactively (like a prefix option you proposed above), how to specify the size statically (with an user option), where to save thumbnails with different sizes (use some file name convention). I think it would be good to add a new user option with an alist with the size-to-geometry mapping where "size" is a subjective word describing an approximate size: '(("Very small" . "32x32") ("Normal" . "128x128") ("Large" . "256x256")) For example, the Gimp uses the following vocabulary for the size words describing the preview sizes: Tiny Very small Small Medium Large Very large Huge Enormous Gigantic > 2. The ability to put set configurable space around images. This > variable would be set in your .emacs file. It might have some > default value other than 0; I don't know. I like to add two new user options for this: (defcustom tumme-dired-thumb-relief 0 "*Size of button-like border around thumbnails in dired buffer." :type 'integer :group 'tumme) (defcustom tumme-dired-thumb-margin 1 "*Size of the margin around thumbnails in dired buffer." :type 'integer :group 'tumme) Their default values 0 (relief) and 1 (margin) seems good to me. -- Juri Linkov http://www.jurta.org/emacs/