]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix previous commit
authorMark Oteiza <mvoteiza@udel.edu>
Wed, 7 Dec 2016 14:43:27 +0000 (09:43 -0500)
committerMark Oteiza <mvoteiza@udel.edu>
Wed, 7 Dec 2016 14:43:27 +0000 (09:43 -0500)
lisp/image-dired.el

index ee5678f95895860ba6fb5010b739fdaeecb6ded4..7978f07564550c49937a61f21db41b7bf20f7a31 100644 (file)
@@ -841,11 +841,10 @@ thumbnail buffer to be selected."
           (goto-char (point-max)))
         (dolist (curr-file files)
           (setq thumb-name (image-dired-thumb-name curr-file))
-          (when (not (file-exists-p thumb-name))
-            (if (and (not (file-exists-p thumb-name))
-                     (not (= 0 (image-dired-create-thumb curr-file thumb-name))))
-                (message "Thumb could not be created for file %s" curr-file)
-              (image-dired-insert-thumbnail thumb-name curr-file dired-buf)))))
+          (if (and (not (file-exists-p thumb-name))
+                   (not (= 0 (image-dired-create-thumb curr-file thumb-name))))
+              (message "Thumb could not be created for file %s" curr-file)
+            (image-dired-insert-thumbnail thumb-name curr-file dired-buf))))
       (if do-not-pop
           (display-buffer buf)
         (pop-to-buffer buf))