From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qGs/ETZuOWOnUgEAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 12:55:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0UMmEDZuOWNxOwEAG6o9tA (envelope-from ) for ; Sun, 02 Oct 2022 12:55:50 +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 206B842D81 for ; Sun, 2 Oct 2022 12:55:49 +0200 (CEST) Received: from localhost ([::1]:47706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oewdQ-0003SO-5v for larch@yhetil.org; Sun, 02 Oct 2022 06:55:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oewZL-0001uZ-Gz; Sun, 02 Oct 2022 06:51:36 -0400 Received: from [2409:8a28:603a:44b0:52d2:f5ff:fe16:c591] (port=56005 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oewZK-0005Kb-8Y; Sun, 02 Oct 2022 06:51:35 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 773E06694909; Sun, 2 Oct 2022 18:51:20 +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> <83a66eaczp.fsf@gnu.org> User-agent: mu4e 1.8.9; emacs 29.0.50 From: "Christopher M. Miles" To: Eli Zaretskii Cc: numbchild@gmail.com, yantar92@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org 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 In-reply-to: <83a66eaczp.fsf@gnu.org> 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 2409:8a28:603a:44b0:52d2:f5ff:fe16:c591 (deferred) Received-SPF: softfail client-ip=2409:8a28:603a:44b0:52d2:f5ff:fe16:c591; envelope-from=numbchild@gmail.com; helo=Mac-mini.local 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=1664708149; 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=irZfKnyq32dQzTFC3dl+mEuVYFKwBMcK/lcU6+apCdM=; b=Whtj+jeNcy66CfLBskOryvduTu5ZGg6BikS/BhwQ/Ewilcgs9kS7u1iuGrdOgKhR0MXaZl xY8WFyp2Zdw634YweIpkDzF4Q2eqjEW2GSMIoi1blbWSlO2avRRmibsvIHoHOsvqoIzFm6 t5FM5emZNcNRF2vWa0XhBFQ1LnHgyvzmbqm1wyVXrmlQaijRLM36ibf1e96Px+LAXm0JZd lIIsGgYVV3R99dTrMyYoc/Vp/ZsuhHJSjWm78mhGqXIpHf2MSpkHapL9IKFHKyiFyGhHDs T3J1ZjEdl2KY8KZAOr/axGD5juRFQMXfia6rGrwbqBrc63508RXezJR/Erh0Vg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664708149; a=rsa-sha256; cv=none; b=rhAGtTZJ16wm4hNRDBDAc5tqxM7nVPy/tZfLzYP6ru8Dx9elbmvarq6ntucx4HW7QjcS+I iovbWCoiw9q7mThAl12e+tDdEzcbwGB6LiXImbvYRWwKkTzsLI5hz1tRqQiQxir3CQgxG2 Q/jLwgSvqLPWHCMsIwdcFSYZ32wIcIymi30SA3Y4dt5jGzG8GDHv12c9eqZdaiLwc3mijO m8m1mNrSKkgMe8sZB0EaDv3qeuHxJzqtSWmGB+nWfsRljbh/1vKzGCY9JyRKiRQ1CWe3Hg OF/fxHMBl+FKJ9oVtgeSjVMINDy10BvWbeKC9oGGj6E1j/PDMqhRqfJlDkVwKQ== 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: 3.26 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: 206B842D81 X-Spam-Score: 3.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8n2rvmRfqxwV --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 writes: >> From: "Christopher M. Miles" >> Cc: "Christopher M. Miles" , Org Mode >> >> Date: Sun, 02 Oct 2022 15:03:26 +0800 >>=20 >> Ihor Radchenko writes: >>=20 >> > "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/3veEPJrQrV1Et= pH9.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 actual= ly >> > underline coming from the face. I'd say it is emacs bug. >>=20 >> Thanks very much for figuring out this issue, Ihor. >>=20 >> 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. >>=20 >> In case the background info is missing, link original message here: >>=20 >> https://list.orgmode.org/87mtae2718.fsf@localhost/T/#m35d40f37fdf80f413d= db8d40e3017a6f102651e9 > > 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. =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----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmM5bSQACgkQG13xyVro msOdjQf+OEiyoPEBCF5t6rUW4ABBLfgbnGgWF6KSHUaw0jdAE2c/zTHc45npqpcP okXjWwlGsFwfcJxIz6NrtJAUf8D2gMJWChrRWRdicjacyk4pcK7DsJszxIK0UGpf i4gId0Er1zx9YjVI9ZZ4qqohz7aJw4sk+P4GydBzBYppaPxKUwaKN71286OLDlgm ygYNtkI7z79uxRD9Ug+ACKDcL4deEpVkmm2h44jPcWVnYZn6C4vdiVcXYOcpC0u5 YkxCFtL3Glcpo2psxEVhO8MGfMHL44usq8256oeUH23L0SqIpKDdBy9hdPFxR+h/ 0/gHzWoCGOP2q2NHtWTT1l36X7KAGg== =zy6B -----END PGP SIGNATURE----- --=-=-=--