help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QUESTION] Mouse click on an text-property object displayed as image


From: Michael Heerdegen
Subject: Re: [QUESTION] Mouse click on an text-property object displayed as image not working
Date: Thu, 14 Jan 2021 18:18:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Miles <numbchild@gmail.com> writes:

>   keymap               [Show]

That button is clickable btw.

> So I should define keymap on ~image-map~. But this is global. Is there
> any other good solution to get around this adding keybinding on global
> map? Maybe make this ~image-map~ buffer locally?

This is the harder part of the question.  Seems in your case
`org-display-inline-images' is attaching the keymap property.  You could
try to override the property, depending on when your code is run.  The
overlays seem to be collected in `org-inline-image-overlays'.  If a
changed buffer-local binding of `image-map' does not make sense in your
case you could also advice `org-display-inline-images'.

Regards,

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]