emacs-orgmode
[Top][All Lists]
Advanced

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

[CLOSED] text-property displayed image has a center-line when the text f


From: Christopher M. Miles
Subject: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute
Date: Sun, 02 Oct 2022 18:45:41 +0800
User-agent: mu4e 1.8.9; emacs 29.0.50

I hate to rewrite those steps more than 3 times. But I also know Emacs
contributors should not be forced to fix bug for me. Also I can't fix
this bug by myself. So I think it's not a bug, I can tolerate this
center line. Maybe I mastered skill for modify code in Emacs, I might
come back to fix this bug by myself. But now, let me close it. I'm not
hating anybody, just hate this process. Thanks for checking out.

Eli Zaretskii <eliz@gnu.org> writes:

>> From: "Christopher M. Miles" <numbchild@gmail.com>
>> Cc: "Christopher M. Miles" <numbchild@gmail.com>, Org Mode
>>  <emacs-orgmode@gnu.org>
>> Date: Sun, 02 Oct 2022 15:03:26 +0800
>> 
>> Ihor Radchenko <yantar92@gmail.com> writes:
>> 
>> > "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.
>> 
>> Thanks very much for figuring out this issue, Ihor.
>> 
>> I see, I originally post this issue on Emacs-help mailing list, Eli let
>> me forward this thread to Org mode mailing list. Now I need to forward
>> to Emacs-devel mailing list.
>> 
>> In case the background info is missing, link original message here:
>> 
>> https://list.orgmode.org/87mtae2718.fsf@localhost/T/#m35d40f37fdf80f413ddb8d40e3017a6f102651e9
>
> Please report this as a bug, with "M-x report-emacs-bug", and please
> include there all the details, including the recipe to reproduce the
> issue.
>
> Thanks.


-- 

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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