diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-01-28 13:09:59 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-01-28 13:09:59 -0500 |
commit | 6fc0aac3632372ac488ccdd269fdf86c53701f28 (patch) | |
tree | 4050090a93f434649759667493cc33f06d049a69 /lisp/image-dired.el | |
parent | 65401ee3fefe38cb3a8a350a17f8b0a3a4ccb579 (diff) | |
download | emacs-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.el | 18 |
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. |