emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tumme fails with default custom settings


From: Stephen Berman
Subject: Tumme fails with default custom settings
Date: Fri, 20 Apr 2007 15:39:07 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux)

Yesterday I tried tumme again for the first time since last August and
encountered problems I don't recall having before.  I found a very
easy fix, by changing the default custom settings of two variables,
but these defaults have been around a long time, so I wonder if
there's something about my system that's causing the problems (I'm
running openSUSE 10.2, last August it was SUSE 10.0).  But in case
this is an Emacs bug, here's a detailed recipe for reproducing the
problems (which is reliable on my system).

1. Make sure that ~/.emacs.d/tumme/ is empty or does not exist.

2. emacs -Q

3. M-x tumme RET <path/to/some/pictures> RET

4. Now the window is vertically split: in the upper window a dired
buffer of <path/to/some/pictures>, in the lower window a *tumme*
buffer contains as many 32x32 squares as there are picture files in
<path/to/some/picture>.  The squares are empty.  *Messages* contains
the following:

Attachment: txttmSeISdEi5.txt
Description: *Messages*

All of these files exist.

5. Clicking with mouse-2 or pressing RET on one of the squares in the
*tumme* buffer pops open a *tumme-display-image* buffer containing a
single 32x32 empty square.  If I type `s'
(tumme-display-current-image-sized) with the cursor on this square,
the echo area reports "Full size image displayed" but all I see is the
same empty square; *Messages* now also has "Cannot find image file
`~/.emacs.d/tumme/.tumme_temp'" and in fact this file does not exist.

6. If I type `f' (tumme-display-current-image-full) with the cursor on
this square, again the echo area reports "Full size image displayed"
and now the buffer does indeed display the full-sized image; moreover,
~/.emacs.d/tumme/.tumme_temp now exists.  However, now typing `s'
again still does nothing.

Now, here's the fix I found for these problems.  Do `M-x
customize-group RET tumme RET', then change the value of `Tumme Cmd
Create Thumbnail Options' and of `Tumme Cmd Create Temp Image Options'
from this (same for both variables):

%p -size %wx%h "%f" -resize %wx%h +profile "*" jpeg:"%t"

to this (for both):

%p -size %wx%h "%f" -resize %wx%h jpeg:"%t"

and save both settings (it suffices to save them for the current
session to see the effect).  Now repeat step 3 above and everything
works as it should: the *tumme* buffer shows thumbnails of the
pictures, and clicking on a thumbnail pops open a
*tumme-display-image* buffer containing a scaled version of the
picture.  Typing `f' with the cursor on that image makes it
full-sized, then typing `s' returns to the scaled image.

The convert(1) man page is just a stub and makes no mention of the
+profile flag, and I haven't had time to delve into the online doc.  I
don't know what I'm missing by not using +profile, but it makes tumme
work for me.  So is this a bug in tumme or Emacs or convert?  As a
test I ran convert twice from the shell on an image file using the
default tumme options:

convert -size 100x100 my-image.jpg -resize 100x100 +profile "*" tumme-thumb.jpg

In one case I ran this from an empty directory; this produced no shell
output and a single thumbnail image:

  -rw-r--r--  1 steve users 5153 2007-04-20 15:03 tumme-thumb.jpg

In the other case I ran the command from /tmp, which contains many
files (no other jpegs), and here is the shell output:

   No pages will be processed (FirstPage > LastPage).
convert: unable to open image `syslinux-mtools-81hbX3': Permission denied.
convert: no decode delegate for this image format `syslinux-mtools-81hbX3'.
convert: unable to open image `syslinux-mtools-epttz4': Permission denied.
convert: no decode delegate for this image format `syslinux-mtools-epttz4'.
convert: unable to open image `syslinux-mtools-l4MOCL': Permission denied.
convert: no decode delegate for this image format `syslinux-mtools-l4MOCL'.
convert: no decode delegate for this image format `test0'.
convert: no decode delegate for this image format `test1'.
convert: no decode delegate for this image format `xdvi-sLjX9m'.
convert: no decode delegate for this image format `xorg.conf.8564'.
convert: no decode delegate for this image format `xorg.conf.8740'.
convert: no decode delegate for this image format `xorg.conf.8913'.

Also, the following files were written to /tmp:

  -rw-r--r--  1 steve users 12699 2007-04-20 15:01 tumme-thumb-0.jpg
  -rw-r--r--  1 steve users     0 2007-04-20 15:01 tumme-thumb-10.jpg
  -rw-r--r--  1 steve users     0 2007-04-20 15:01 tumme-thumb-1.jpg
  -rw-r--r--  1 steve users  1886 2007-04-20 15:01 tumme-thumb-2.jpg
  -rw-r--r--  1 steve users  7965 2007-04-20 15:01 tumme-thumb-3.jpg
  -rw-r--r--  1 steve users   253 2007-04-20 15:01 tumme-thumb-4.jpg
  -rw-r--r--  1 steve users   203 2007-04-20 15:01 tumme-thumb-5.jpg
  -rw-r--r--  1 steve users     0 2007-04-20 15:01 tumme-thumb-6.jpg
  -rw-r--r--  1 steve users     0 2007-04-20 15:01 tumme-thumb-7.jpg
  -rw-r--r--  1 steve users     0 2007-04-20 15:01 tumme-thumb-8.jpg
  -rw-r--r--  1 steve users     0 2007-04-20 15:01 tumme-thumb-9.jpg

This is my convert version:

Version: ImageMagick 6.3.0 02/08/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC


In GNU Emacs 22.0.98.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2007-04-20 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.70199902
configured using `configure  '--with-x-toolkit=gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: identity

Recent input:
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> q q q C-x b <return> C-x <down-mouse-4> 
<mouse-4> <double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<down-mouse-4> <mouse-4> <help-echo> C-x C-b C-x o 
<down> <down> <down> d x C-x 1 M-x <up> <return> <up> 
<return> q C-x k <return> C-x C-b C-x k <return> <help-echo> 
<down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <down-mouse-4> <mouse-4> <down-mouse-4> 
<mouse-4> <double-down-mouse-4> <double-mouse-4> M-x 
c u s <tab> - g r <tab> <return> t u m <tab> <return> 
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> 
<down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <help-echo> <down-mouse-4> <mouse-4> 
<double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> 
<down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5> 
<mouse-5> <down-mouse-5> <mouse-5> <help-echo> <down-mouse-5> 
<mouse-5> <help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<M-backspace> <backspace> <help-echo> <down-mouse-5> 
<mouse-5> <help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> <M-left> 
<M-left> <M-backspace> <backspace> <help-echo> <down-mouse-1> 
<help-echo> <help-echo> <down-mouse-1> M-x t u m <tab> 
<return> <up> <return> <help-echo> <down-mouse-1> <mouse-1> 
<return> <down-mouse-1> <mouse-1> <return> <help-echo> 
<help-echo> <down-mouse-5> <mouse-5> <down-mouse-4> 
<mouse-4> <down-mouse-5> <mouse-5> C-x o s f s q q 
C-x k <return> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> C-x 
1 <down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <down-mouse-5> <mouse-5> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> 
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo> 
M-x r e p o <tab> r <tab> <return>

Recent messages:
tumme-thumbnail-mode enabled
(New file) [14 times]
tumme-display-image-mode enabled
byte-code: End of buffer
byte-code: Beginning of buffer
byte-code: End of buffer
Full size image displayed [3 times]
byte-code: Beginning of buffer [3 times]
Making completion list...
Loading emacsbug...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]