From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Christopher M. Miles" Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute Date: Sun, 02 Oct 2022 15:03:26 +0800 Message-ID: <26172.8763159894$1664694595@news.gmane.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> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26126"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 29.0.50 Cc: "Christopher M. Miles" , Org Mode To: Ihor Radchenko , Emacs Devel Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sun Oct 02 09:09:48 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 1oet6h-0006ai-Sn for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 09:09:47 +0200 Original-Received: from localhost ([::1]:47072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oet6g-0004iF-D6 for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 03:09:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oet5T-0004hp-SZ for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 03:08:32 -0400 Original-Received: from [39.171.214.39] (port=19801 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oet5R-0002RN-Q3 for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 03:08:31 -0400 Original-Received: by Mac-mini.local (Postfix, from userid 501) id 7D770668F43E; Sun, 2 Oct 2022 15:08:07 +0800 (CST) In-reply-to: <87mtae2718.fsf@localhost> X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.214.39 (deferred) Received-SPF: softfail client-ip=39.171.214.39; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001 autolearn=no autolearn_force=no X-Spam_action: reject 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:149007 gmane.emacs.devel:296586 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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/#m35d40f37fdf80f413ddb8= d40e3017a6f102651e9 =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmM5ONMACgkQG13xyVro msNEZQf+JW8I5dZ5wB8WJNJAbFR7RnelJyPcebb5/PCBsm7mkN3yd4OOZ1riSWhg xZmjwLpZFpkYho88IgPHC/MHaq0QulmmP9uBTZluLrcGkkLYotDVA0ztwM7yYRyN 0Gvj7zxqU/xjB96wOBrYMAOVfEtEujWA367m7ouNg2nHWvfV0TIt/D4rA5kOtXE1 vQBmboiYcH5Qd5AP+0To7zGgcRCKQVW3Ae/TH+uRPfjtjpIpvLcHiDRnSWDOUlRv ZeilIzAaCrdyo6BJBcZxZmvV5xzIK4Wx80TVOI+xv731CiFCsHc7VsrCG3iH7nj9 xA6me7bKXwiqKkC5Z6qVSDWe3xVgAg== =ZcoV -----END PGP SIGNATURE----- --=-=-=--