From: Ihor Radchenko <yantar92@gmail.com>
To: "Christopher M. Miles" <numbchild@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?
Date: Sun, 02 Oct 2022 12:17:39 +0800 [thread overview]
Message-ID: <87mtae2718.fsf@localhost> (raw)
In-Reply-To: <63383737.050a0220.63781.8825SMTPIN_ADDED_BROKEN@mx.google.com>
"Christopher M. Miles" <numbchild@gmail.com> writes:
> I replaced step 5 with step 6 by extracting the logic code of
> org-link-beautify, but I found it does not have center-line. That's
> really weird.
> ...
> (put-text-property
> start end
> 'display (create-image "~/Downloads/.thumbnails/3veEPJrQrV1EtpH9.png" nil nil :ascent 'center :max-height 512))
> (make-local-variable 'image-map)
> (define-key image-map (kbd "<mouse-1>") 'org-open-at-point))
> #+end_src
On my side, the put-text-property does have center-line.
But only when buffer is in Org mode.
Yet, it is not Org's fault.
The reason you are seeing the horizontal line is org-link face.
org-link has underline. And the "center" line you are seeing is actually
underline coming from the face. I'd say it is emacs bug.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
next prev parent reply other threads:[~2022-10-02 4:17 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m2illt5rzj.fsf@numbchild>
2022-10-01 2:53 ` Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image? Christopher M. Miles
[not found] ` <6337ac4e.050a0220.c05b9.7747SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-01 5:37 ` Ihor Radchenko
2022-10-01 8:55 ` Christopher M. Miles
2022-10-01 8:58 ` Christopher M. Miles
[not found] ` <63380111.050a0220.592f2.fab7SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-01 10:33 ` Ihor Radchenko
2022-10-01 12:45 ` Christopher M. Miles
[not found] ` <63383737.050a0220.63781.8825SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-02 4:17 ` Ihor Radchenko [this message]
2022-10-02 7:03 ` Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute Christopher M. Miles
2022-10-02 7:03 ` Christopher M. Miles
2022-10-02 7:03 ` Christopher M. Miles
2022-10-02 7:41 ` Eli Zaretskii
2022-10-02 10:45 ` [CLOSED] " Christopher M. Miles
2022-10-02 10:45 ` Christopher M. Miles
2022-10-02 11:07 ` Eli Zaretskii
2022-10-02 14:56 ` Christopher M. Miles
2022-10-02 14:56 ` Christopher M. Miles
2022-10-02 14:56 ` Christopher M. Miles
2022-10-02 10:45 ` Christopher M. Miles
[not found] ` <63396d3d.050a0220.d98c9.1ea6SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-02 10:57 ` Ihor Radchenko
2022-10-02 11:16 ` Eli Zaretskii
2022-10-02 11:26 ` Ihor Radchenko
2022-10-19 7:33 ` [SOLVED] " Christopher M. Miles
2022-10-19 7:33 ` Christopher M. Miles
2022-10-19 7:33 ` Christopher M. Miles
[not found] <m2illt5rzj.fsf@numbchild@gmail.com>
2022-09-12 16:46 ` [QUESTION] why there is a horizontal line in middle of text-property displayed image? Eli Zaretskii
2022-09-13 1:56 ` [ISSUE] " Christopher M. Miles
[not found] ` <m2pmg0f2un.fsf@numbchild@gmail.com>
2022-09-15 6:22 ` Eli Zaretskii
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=87mtae2718.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=numbchild@gmail.com \
/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.