diff options
| author | Lars Ingebrigtsen | 2022-07-14 19:40:06 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-07-14 19:40:06 +0200 |
| commit | d2186160a9e978960c0f96bc3b4fc65b5affc170 (patch) | |
| tree | 05de2f4ac0720fc5fcd1477058d8ff8900204760 | |
| parent | e8021719022a7c7bbbc15fe986a39f16f32869ac (diff) | |
| download | emacs-d2186160a9e978960c0f96bc3b4fc65b5affc170.tar.gz emacs-d2186160a9e978960c0f96bc3b4fc65b5affc170.zip | |
Make image-map commands work with inline image attachments in mm
* lisp/gnus/mm-view.el (mm-inline-image): Use insert-image so that
point movement is more pleasant and so that image-map commands
work (bug#56554).
| -rw-r--r-- | lisp/gnus/mm-view.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index 57ce36a9442..5cfde5a8647 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el | |||
| @@ -86,7 +86,7 @@ This is only used if `mm-inline-large-images' is set to | |||
| 86 | (defun mm-inline-image (handle) | 86 | (defun mm-inline-image (handle) |
| 87 | (let ((b (point-marker)) | 87 | (let ((b (point-marker)) |
| 88 | (inhibit-read-only t)) | 88 | (inhibit-read-only t)) |
| 89 | (put-image | 89 | (insert-image |
| 90 | (let ((image (mm-get-image handle))) | 90 | (let ((image (mm-get-image handle))) |
| 91 | (if (eq mm-inline-large-images 'resize) | 91 | (if (eq mm-inline-large-images 'resize) |
| 92 | (gnus-rescale-image | 92 | (gnus-rescale-image |
| @@ -98,7 +98,7 @@ This is only used if `mm-inline-large-images' is set to | |||
| 98 | (truncate (* mm-inline-large-images-proportion | 98 | (truncate (* mm-inline-large-images-proportion |
| 99 | (- (nth 3 edges) (nth 1 edges))))))) | 99 | (- (nth 3 edges) (nth 1 edges))))))) |
| 100 | image)) | 100 | image)) |
| 101 | b) | 101 | " ") |
| 102 | (insert "\n") | 102 | (insert "\n") |
| 103 | (mm-handle-set-undisplayer | 103 | (mm-handle-set-undisplayer |
| 104 | handle | 104 | handle |