From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MAR7AEg5OWNlDAEAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 09:10:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eNZWAEg5OWM/BgAAauVa8A (envelope-from ) for ; Sun, 02 Oct 2022 09:10:00 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 931343FBDA for ; Sun, 2 Oct 2022 09:09:59 +0200 (CEST) Received: from localhost ([::1]:47072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oet6s-0004iF-Mv for larch@yhetil.org; Sun, 02 Oct 2022 03:09:58 -0400 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 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 Received: by Mac-mini.local (Postfix, from userid 501) id 7D770668F43E; Sun, 2 Oct 2022 15:08:07 +0800 (CST) 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> User-agent: mu4e 1.8.9; emacs 29.0.50 From: "Christopher M. Miles" To: Ihor Radchenko , Emacs Devel Cc: "Christopher M. Miles" , Org Mode 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 In-reply-to: <87mtae2718.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664694599; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=1tt/pMYaNNkGrvExXjZsoES5PeRySqgJEvnLsFM9FtE=; b=Yj3q3ArbGI+I8/UUyojGofLJysrt0FblojMxO5WplOMKcMwZefBcwBgq0lONCb9Gyt4VoX xFhIH6k4w96kvVmjeEXBWwzrla3cA2iu/6i8CbB5ZtqEDvfPzj54FbNij15NeQKAPRaMkk KuVRSKy94nIK1f8I5ziEppgzbyomeEcork1ijt8lH/upvm8SjDeDlJ/IV/uX7PTtqFpNi4 4oISzjiqjvgpRcI27pqaMSfxbnYC/2L9tPsnMzW0ItzyW7k4Hvfs6crHm21YrBhPZPIBGd Z0bftX7fTQvAXgDcQ6Zo2ZdRqmy7mU05rGAq0BtB2X/lh67Di6T5wTjBFXiG0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664694599; a=rsa-sha256; cv=none; b=gmry35vkhW1eN14DW89qdy5xXytGCe3cjTWMZI3zkvC6sL0BeB7OtSlEfWQ/AuZsLKO3Hk PxoopxzaSsn6+9HjQums3yT5Q6trglv1a303Bl9hkofevm+2Rn+4Pcwa8u/Ih+bmpU3gCv U/FVHrf9+eycSmX9wsAiurQZ8PN9sSHqS7GsyKyCUdx0AzSvISg6RrTDLeyCWwOWOgl99k tdhFLnvi6RaEw7TjuVi2PCwESeOH15kDkJ/ejHQAWSRXWhKePObZghE65x+rL8xKVsDi6r 78X2oCUn7yrezdABqKsUP/E+W7ONIz5uZu0EG+nCOdA39JG5R8G9aorTmt57hQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 931343FBDA X-Spam-Score: 2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: WD+b6LRe5h+W --=-=-= 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----- --=-=-=--