From 9f4ec56d83ecb16e1add2840678befd1a27258e8 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 23 Sep 2022 17:22:47 +0200 Subject: [PATCH] image-dired: Disable 'image-map' in thumbnail buffer These bindings are more likely to mess up the buffer than to be helpful here; image manipulation is better done in the display buffer. * lisp/image/image-dired.el (image-dired-insert-thumbnail): Disable `image-map' in thumbnail buffer. --- lisp/image/image-dired.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/image/image-dired.el b/lisp/image/image-dired.el index 30cd83871bd..c074f3312d5 100644 --- a/lisp/image/image-dired.el +++ b/lisp/image/image-dired.el @@ -408,6 +408,8 @@ Add text properties ORIGINAL-FILE-NAME and ASSOCIATED-DIRED-BUFFER." (add-text-properties beg end (list 'image-dired-thumbnail t + ;; Disable `image-map' on thumbnails. + 'keymap nil 'original-file-name original-file-name 'associated-dired-buffer associated-dired-buffer 'tags (image-dired-list-tags original-file-name) -- 2.39.2