From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: thumbs.el and transparency Date: Sun, 29 Jan 2006 15:07:11 +0100 Message-ID: References: <17366.53124.274532.548329@kahikatea.snap.net.nz> <87y814vhxj.fsf@jurta.org> <17367.17105.271024.157799@kahikatea.snap.net.nz> <17369.17978.521026.397616@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138552851 14503 80.91.229.2 (29 Jan 2006 16:40:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 16:40:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 29 17:40:49 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 1F3Fbc-0001KH-OA for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 17:40:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3FeX-0007RM-Jm for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 11:43:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3DGK-0000mp-TG for emacs-devel@gnu.org; Sun, 29 Jan 2006 09:10:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3DGD-0000lR-Gs for emacs-devel@gnu.org; Sun, 29 Jan 2006 09:10:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3DG9-0000kn-V3 for emacs-devel@gnu.org; Sun, 29 Jan 2006 09:10:30 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F3DEI-0003na-7E for emacs-devel@gnu.org; Sun, 29 Jan 2006 09:08:34 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F3DD5-0000lD-8p for emacs-devel@gnu.org; Sun, 29 Jan 2006 15:07:19 +0100 Original-Received: from 1-1-3-38a.gml.gbg.bostream.se ([82.182.110.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Jan 2006 15:07:19 +0100 Original-Received: from brakjoller by 1-1-3-38a.gml.gbg.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Jan 2006 15:07:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 75 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 1-1-3-38a.gml.gbg.bostream.se User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2wUU8WybJETYKU/9VV8qx0YEmmc= 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:49674 Archived-At: Miles Bader writes: > I think the more complex the required window configuration, the more > annoying -- unlike traditional applications, users usually freely do > multiple things at once in emacs, and carefully crafted window > setups tend to quickly get messed up and/or interfere with the > user's other tasks. I agree, and as I said tumme will work without any special window configuration at all, but you would have to switch back and forth between buffers instead. I'd love to see suggestion on how to handle the different "views" without sacrificing usability. For example, when the user press RET on a thumbnail image, where should the sized (or full) image appear? Same window? "other-window"? What I often do is to set up two windows, one above the other and keep the thumbnail buffer on top and the image display buffer below: +---------------+ | thumbnails | | | +---------------+ | | | image displ. | | | +---------------+ That lets me see all thumbnails, move around them and easily display an image in the other window at the same time. Of course, this fits well with my needs and your milage will vary. > Having one "primary window" where the cursor is and another slave > window that gets popped up is manageable enough, and the most common > model in emacs; is there a command to invoke tumme that just give you > the "thumbnails" window, without requiring the "window configuration" > and "dired" steps? Not yet. When you call `tumme-display-thumbs', the thumbnail buffer is created and all thumbnails that was marked in dired will be displayed there, but the buffer is not opened. Maybe a simple `display-buffer' would do? This function does exactly that: (defun tumme-display-thumbs-and-buffer (&optional arg append) "Call `tumme-display-thumbs-and-open' and display thumbnail buffer. See command `tumme-display-thumbs-and-open' for details about the arguments. " (interactive) (tumme-display-thumbs arg append) (display-buffer tumme-thumbnail-buffer)) or, add the call to `display-buffer' last in `tumme-display-thumbs', which should probably be customizable. Does that work? > If the thumbnails could actually be inserted in the dired window that > would be coolest of all... then tumme would feel much more integrated > (at the expensive of requiring more space for lots of thumbnails). Agree, but that felt too advanced for me. > [BTW, it seems to display lots of gratitous messages in the buffer > when generating the thumbnails, like: > > (Shell command succeeded with no output) > (New file) [2 times] > (Shell command succeeded with no output) > (New file) [2 times] > > Maybe it's using a high-level function where it should be using > something lower-level...?] I use `shell-command', maybe that is wrong, I don't know. I copied much ideas and code from thumbs.el in the beginning.