[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug image-dired fail with C-t i at first use.
From: |
Thierry Volpiatto |
Subject: |
bug image-dired fail with C-t i at first use. |
Date: |
Sun, 30 Jan 2011 15:22:47 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.92 (gnu/linux) |
Hi,
C-t i fail when using it the very first time because image-dired-dir
doesn't exists yet.(C-t d only create dir).
Following patch fix it, but may be other functions need this too.
---
lisp/image-dired.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index 4891958..bf73a5b 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -1790,6 +1790,8 @@ should feel snappy enough.
If optional argument ORIGINAL-SIZE is non-nil, display image in its
original size."
+ (unless (file-directory-p image-dired-dir)
+ (make-directory image-dired-dir t))
(let ((new-file (expand-file-name image-dired-temp-image-file))
width height command ret
(image-type 'jpeg))
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug image-dired fail with C-t i at first use.,
Thierry Volpiatto <=