From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute Date: Sun, 02 Oct 2022 10:41:46 +0300 Message-ID: <83a66eaczp.fsf@gnu.org> References: <6337ac4e.050a0220.c05b9.7747SMTPIN_ADDED_BROKEN@mx.google.com> <87r0zs14ur.fsf@localhost> <63380111.050a0220.592f2.fab7SMTPIN_ADDED_BROKEN@mx.google.com> <87o7uvsuid.fsf@localhost> <63383737.050a0220.63781.8825SMTPIN_ADDED_BROKEN@mx.google.com> <87mtae2718.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11543"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: numbchild@gmail.com Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sun Oct 02 09:42:31 2022 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oetcM-0002rF-Br for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 09:42:30 +0200 Original-Received: from localhost ([::1]:46782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oetcK-0001nB-S5 for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 03:42:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oetbo-0001my-Vj; Sun, 02 Oct 2022 03:41:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oetbo-0006uZ-NA; Sun, 02 Oct 2022 03:41:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tGvc3J+h+BV8mUkYjMh6xYCIyScDcGRI2dWXis+rPi4=; b=CBOfRrKa4JNa VFQ4exQRoteSMY0Vg7kb5n5RJjotai9viW+JwpKmwAHK4q0M9juSJBwIXewH3yZToawxD4VFA6qC5 Wjy6c/FkB1fqnmJADN4ZuYTMPAE//boyo/Xs/UUFDJO5TWOA+3wxkx+/jBbQbTrTypzzyVoz3Vxtf A4InwaqD8f2x05l1gNl0x4ppN4DLI0rEAsAC5FTix5uLJ6TDlfPAqDB5x6I/W2AK+AiFyuXl+hsed gqvnoGXIJ96RYJRcB1gmwpbtFUTyZD7yupyhRa6m3pE4yX6OAVLpsagPkMLykNJf358NHy4EUrDZ0 CuYR9FcDX6zEooNsD82LwA==; Original-Received: from [87.69.77.57] (port=1970 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oetbo-0006NO-5w; Sun, 02 Oct 2022 03:41:56 -0400 In-Reply-To: X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:149012 gmane.emacs.devel:296591 Archived-At: > From: "Christopher M. Miles" > Cc: "Christopher M. Miles" , Org Mode > > Date: Sun, 02 Oct 2022 15:03:26 +0800 > > Ihor Radchenko writes: > > > "Christopher M. Miles" 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 "") '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.