all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Miles <numbchild@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: [SOLVED] Re: [QUESTION] Mouse click on an text-property object displayed as image not working
Date: Sat, 16 Jan 2021 04:35:19 +0000	[thread overview]
Message-ID: <VI1PR1001MB1070D102D7902CD2D793B520A3A60@VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <8735z3e8sx.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]


Michael Heerdegen <michael_heerdegen@web.de> writes:

> Christopher Miles <numbchild@gmail.com> writes:
>
>>   keymap               [Show]
>
> That button is clickable btw.

Thanks for hint, I checked it out.

>
>> 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'.
>

Yes, I tested with setting buffer-local `image-map', now it works fine.

> Regards,
>
> Michael.

Thanks, Michael.


-- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2021-01-16  4:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-13  2:40 [QUESTION] Mouse click on an text-property object displayed as image not working Christopher Miles
2021-01-14 11:12 ` Michael Heerdegen
2021-01-14 15:03   ` Christopher Miles
2021-01-14 17:18     ` Michael Heerdegen
2021-01-16  4:35       ` Christopher Miles [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR1001MB1070D102D7902CD2D793B520A3A60@VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM \
    --to=numbchild@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.