]> git.eshelyaron.com Git - emacs.git/commitdiff
image-dired: Disable 'image-map' in thumbnail buffer
authorStefan Kangas <stefankangas@gmail.com>
Fri, 23 Sep 2022 15:22:47 +0000 (17:22 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 23 Sep 2022 15:22:47 +0000 (17:22 +0200)
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

index 30cd83871bd303744654ad4fea65752d27ddb72c..c074f3312d5bb2b3f181c7180e18bbd854dace76 100644 (file)
@@ -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)