From: Christopher Miles <numbchild@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: [QUESTION] Mouse click on an text-property object displayed as image not working
Date: Thu, 14 Jan 2021 15:03:21 +0000 [thread overview]
Message-ID: <VI1PR1001MB10706D1E310D662A3DD6D5B4A3A80@VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <8735z3g4bv.fsf@web.de>
[-- Attachment #1: Type: text/plain, Size: 2753 bytes --]
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Christopher Miles <numbchild@gmail.com> writes:
>
>> Here is my Emacs package https://github.com/stardiviner/org-link-beautify
>
> Without having looked at the code: is the reason of your problem that
> the keymap character property at the location of the image points to
> something like `image-map' instead of what you expect when you click
> there (C-u C-x = should tell you)?
>
> Michael.
Aha, I understand now. Because displaying as inline image, so text-property
keymap not working. Thanks for hint.
Here is the output of [C-u C-x =]
#+begin_example
position: 377333 of 458088 (82%), column: 0
character: [ (displayed as [) (codepoint 91, #o133, #x5b)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x5B
script: latin
syntax: (] which means: open, matches ]
category: .:Base, <:Not at eol, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 5b" or "C-x 8 RET LEFT SQUARE BRACKET"
buffer code: #x5B
file code: #x5B (encoded by coding system utf-8-unix)
display: by this font (glyph code)
ftcrhb:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 (#x3E)
Character code properties: customize what to show
name: LEFT SQUARE BRACKET
old-name: OPENING SQUARE BRACKET
general-category: Ps (Punctuation, Open)
decomposition: (91) ('[')
There are 2 overlays here:
From 377333 to 377379
face hl-line
priority -50
window #<window 32 on Clojure.org>
From 377333 to 377378
display [Show]
face default
keymap [Show]
modification-hooks (org-display-inline-remove-overlay)
org-image-overlay t
There are text properties here:
display [Show]
font-lock-multiline t
fontified t
help-echo "LINK: file:Data/Books/mmexport1532255776028.jpg"
htmlize-link (:uri "file:Data/Books/mmexport1532255776028.jpg")
invisible org-link
keymap [Show]
mouse-face highlight
type org-link-beautify
#+end_example
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?
--
[ 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 --]
next prev parent reply other threads:[~2021-01-14 15:03 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 [this message]
2021-01-14 17:18 ` Michael Heerdegen
2021-01-16 4:35 ` [SOLVED] " Christopher Miles
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=VI1PR1001MB10706D1E310D662A3DD6D5B4A3A80@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).