From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6D9mF/JAOWNVLgAAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 09:42:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YMdhF/JAOWNXawAA9RJhRA (envelope-from ) for ; Sun, 02 Oct 2022 09:42:42 +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 074E839D87 for ; Sun, 2 Oct 2022 09:42:42 +0200 (CEST) Received: from localhost ([::1]:46782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oetcX-0001nB-0e for larch@yhetil.org; Sun, 02 Oct 2022 03:42:41 -0400 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 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==; 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 Date: Sun, 02 Oct 2022 10:41:46 +0300 Message-Id: <83a66eaczp.fsf@gnu.org> From: Eli Zaretskii To: numbchild@gmail.com Cc: yantar92@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org In-Reply-To: Subject: Re: Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute 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> 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+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=1664696562; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tGvc3J+h+BV8mUkYjMh6xYCIyScDcGRI2dWXis+rPi4=; b=quXBan48jSOQn81obD7SeQ090cppB7+kzkc0VhrGZwWmPPKYc50yIRumQ0X6gsTV9v01Mw 8KjWMewmm2D6AQ8upqIYTwSgQ2L7kdlVuSrZXaoplBSaOhJTwY94UTI6H97R2xbBLzB8ER ZpDRUvI8aWYasz0onfKug4udu7KYf312DjbzKn4m4NHRaknFWIRBM33N1vJNrfvJmVC9Iw WsI7UWN/XxopkDfE+4D4axU7fNTlzRsHjGIXG2iIEazCt8G4AmtcRVySxHi3XRO1zzQddD oPPgZZF5M6aA9qByonMEJ2PnzhkwleUBc4A9+wSvo2A2NT8MFIsMn5VMxNYsXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664696562; a=rsa-sha256; cv=none; b=OqNMbvan/3fc5Xs27dq1ZnLeGcjmBb87+YfBgngAgKvoaQKUUGEW2Q/iUb1SUEdvlFW8fT G/gi7jCym1z33wkS1Tz05B4n7lizua9Ykr3a7eRgtYfDFw28y1MUTvFl0OfwernJecwepi 12c4oJ1GZxRiHFHXYLrZLAkP6QhRYSXde/jwBdyUxYosTr2UmyZIL09IiVzBW4mxXPo0l5 boL2KVrY0f8k/qKe2kv1T/3lvwi8UEpHwe4OsHDAUfciuxL3IpGLNHoAexleMSSHHr1oTB QlpseouksZKeZdn322JNGCeby9rMBsRFtrk7ZlwW+6ewS8qMFiIVKsapsQ9M1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=CBOfRrKa; dmarc=pass (policy=none) header.from=gnu.org; 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.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=CBOfRrKa; dmarc=pass (policy=none) header.from=gnu.org; 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: 074E839D87 X-Spam-Score: -3.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: HnNWeKtk8yc8 > 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.