* bug image-dired fail with C-t i at first use.
@ 2011-01-30 14:22 Thierry Volpiatto
0 siblings, 0 replies; only message in thread
From: Thierry Volpiatto @ 2011-01-30 14:22 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-30 14:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30 14:22 bug image-dired fail with C-t i at first use Thierry Volpiatto
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).