Subject: [PATCH] * lisp/image.el (put-image): Fix typo.

From: Visuwesh <[email-masked]>
Date: Thu, 14 Jul 2022 19:39:15 +0530

Tags: patch

This fixes a typo in put-image.

BTW, even with this patch applied, I still can't access the keys in
image-map: I think it is because one cannot place the point on the
image?  Is this intended?  If yes, can we change mm-inline-image to use
insert-image instead (it currently uses put-image)?  Thanks.

In GNU Emacs 29.0.50 (build 11, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2022-07-14 built on astatine
Repository revision: d37ba6f259b972aa44c66ecb76210e03a3084183
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure --with-sound=alsa --with-x-toolkit=lucid --with-json
 --without-xaw3d --without-gconf --without-libsystemd --without-cairo'

>From 07de01f5f9096e9a2e57d93ccd9edd76c7467e11 Mon Sep 17 00:00:00 2001
From: Visuwesh <[email-masked]>
Date: Thu, 14 Jul 2022 19:25:19 +0530
Subject: [PATCH] * lisp/image.el (put-image): Fix typo.

---
 lisp/image.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/image.el b/lisp/image.el
index bdaaec608e..cb5ef4e8d1 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -613,7 +613,7 @@ put-image
       (put-text-property 0 (length string) 'display prop string)
       (overlay-put overlay 'put-image t)
       (overlay-put overlay 'before-string string)
-      (overlay-put overlay 'map image-map)
+      (overlay-put overlay 'keymap image-map)
       overlay)))

-- 
2.35.1