[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with tumme.el
From: |
twurgl |
Subject: |
problem with tumme.el |
Date: |
Thu, 11 Jan 2007 14:15:19 -0500 |
I can show the thumbnails of the image files fine. I can use "R" or "L" once
and it rotates the thumbnail/file.
But any time after that it complains and says "Could not rotate image" for any
file.
I tracked it down and found that a temp file is used:
~/.emacs.d/tumme/.tumme_rotate_temp
The command that generated this: jpegtran -rotate 90 -copy all file.jpg >
~/.emacs.d/tumme/.tumme_rotate_temp
The problem is that the ">" fails if the file already exists.
So I made a change to "tumme-rotate-original" that checks if that file is
there and deletes it before running the
current rotate command.
Here is a patch:
*** tumme.el.~1~ Thu Aug 24 15:12:48 2006
--- tumme.el Thu Jan 11 13:57:41 2007
***************
*** 1886,1889 ****
--- 1886,1891 ----
(if (not (string-match "\.[jJ][pP[eE]?[gG]$" file))
(error "Only JPEG images can be rotated!"))
+ (if (file-exists-p tumme-temp-rotate-image-file)
+ (delete-file tumme-temp-rotate-image-file))
(setq command (format-spec
tumme-cmd-rotate-original-options
Thanks
tom
- problem with tumme.el,
twurgl <=
- Re: problem with tumme.el, Mathias Dahl, 2007/01/12
- Re: problem with tumme.el, Nick Roberts, 2007/01/12
- Re: problem with tumme.el, Stefan Monnier, 2007/01/12
- Re: problem with tumme.el, Chris Moore, 2007/01/12
- Re: problem with tumme.el, Stefan Monnier, 2007/01/12
- Re: problem with tumme.el, Mathias Dahl, 2007/01/12
- Re: problem with tumme.el, twurgl, 2007/01/12
- Re: problem with tumme.el, Mathias Dahl, 2007/01/12