summaryrefslogtreecommitdiff
path: root/lisp/image-dired.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-01-28 13:09:59 -0500
committerChong Yidong <cyd@stupidchicken.com>2011-01-28 13:09:59 -0500
commit6fc0aac3632372ac488ccdd269fdf86c53701f28 (patch)
tree4050090a93f434649759667493cc33f06d049a69 /lisp/image-dired.el
parent65401ee3fefe38cb3a8a350a17f8b0a3a4ccb579 (diff)
downloademacs-6fc0aac3632372ac488ccdd269fdf86c53701f28.tar.gz
Fix gratuitous argument passing error in image-dired (Bug#7817).
* lisp/image-dired.el (image-dired-mouse-display-image): No-op if no file is found.
Diffstat (limited to 'lisp/image-dired.el')
-rw-r--r--lisp/image-dired.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index 41fee0b0df2..489195837fc 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -2187,15 +2187,15 @@ matching tag will be marked in the dired buffer."
Track this in associated dired buffer if `image-dired-track-movement' is
non-nil."
(interactive "e")
- (let (file)
- (mouse-set-point event)
- (goto-char (posn-point (event-end event)))
- (setq file (image-dired-original-file-name))
- (if image-dired-track-movement
- (image-dired-track-original-file))
- (image-dired-create-display-image-buffer)
- (display-buffer image-dired-display-image-buffer)
- (image-dired-display-image file)))
+ (mouse-set-point event)
+ (goto-char (posn-point (event-end event)))
+ (let ((file (image-dired-original-file-name)))
+ (when file
+ (if image-dired-track-movement
+ (image-dired-track-original-file))
+ (image-dired-create-display-image-buffer)
+ (display-buffer image-dired-display-image-buffer)
+ (image-dired-display-image file))))
(defun image-dired-mouse-select-thumbnail (event)
"Use mouse EVENT to select thumbnail image.