From: Stefan Kangas Date: Fri, 23 Sep 2022 15:22:47 +0000 (+0200) Subject: image-dired: Disable 'image-map' in thumbnail buffer X-Git-Tag: emacs-29.0.90~1856^2~294 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f4ec56d83ecb16e1add2840678befd1a27258e8;p=emacs.git 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. --- 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)