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 0C97G/YQOWPfEAAAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 06:17:58 +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 qKulGvYQOWMrUwEAG6o9tA (envelope-from ) for ; Sun, 02 Oct 2022 06:17:58 +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 083093C286 for ; Sun, 2 Oct 2022 06:17:58 +0200 (CEST) Received: from localhost ([::1]:57546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeqQO-0006dG-Px for larch@yhetil.org; Sun, 02 Oct 2022 00:17:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeqPQ-0006d7-Vi for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 00:16:57 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:44916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeqPP-0006Ju-9O for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 00:16:56 -0400 Received: by mail-pf1-x434.google.com with SMTP id v186so7543994pfv.11 for ; Sat, 01 Oct 2022 21:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=oN5p6UOBqQznmzdVtqPybME2FZ/o2Umh0TbUUVGSJUU=; b=Vf+iySAouWocC5/3WNc3MO5Y9dsnLlnnPxpDsrkosWJ7AuQqs/xU3O7BWy63fWfmsv FOn7JxRgHpN2x+mG5vLeLiCAhjs10nQlB5vzKefzJPbhdnII2Jwa6HvXlV06j0jI4ZJA AumAITE5JtdyhlLcmSuI8GJZFgacSXVem4KyrYvzYLqld6qliHdv+vjB0i/VzUtLrhvi RaZZCVnGXQCJCvVw4V7iH7AuLynKrlaUfJjTw0fJbt3Wy2r/TvU8Lfe8qjRfWyol0Ba2 2u4XSGZSSlSv3VQXhKIU189KQXYx/YAFv+hmjgTyoVfKZmOnDCilPqBWru3MXYD45Od0 azJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=oN5p6UOBqQznmzdVtqPybME2FZ/o2Umh0TbUUVGSJUU=; b=SWe7erhJjP8HYBTf/4XRrdPUZaoho93+n3RmtYV9ai59yjhI8gDs5x/3cVNOE0VrcC dqTQq2O0/ZaheNSuiCgGoBdJt7i+GIz6jTJPdq0gGUyyTg/qs/+wxUxU8O8rqQfwgM1t ISyYMoAwp4CpemUdF7IIrgnUkizvB7xIHX+xQUcF+Rcq8zEEQ4tdlHWZJuDNI+II4jH3 JzMHro9sQDjPVDWKPLcjTEsDYhWsweIHAXOry2EFLapDPFITTPEM4YQAGrITMkKUG3Dn BgXHqvGPCJTnNFjuzHiLzDW6F+FSCkuujuGqXuUIgbY9szHhPQ/d0ZIin7ekLKKykDsa 9ZYw== X-Gm-Message-State: ACrzQf1Yuu53UszbwGOeRX+u5WbpwHFyHa5nLE88UVnyeaBQO5elrWYX 6cgy6ER9O4Dc+gdmlJTn7Tg= X-Google-Smtp-Source: AMsMyM7I9gfPRdS5satdIgff1ybLoE8YUPdF0VQS/Cix7kK2ZoUWz/Mx4ikdCbFVRaY7nxDKdNO8Bg== X-Received: by 2002:aa7:9e52:0:b0:53e:49b2:1c6e with SMTP id z18-20020aa79e52000000b0053e49b21c6emr16461653pfq.70.1664684213859; Sat, 01 Oct 2022 21:16:53 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id y14-20020a62ce0e000000b00537e1b30793sm4694393pfg.11.2022.10.01.21.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Oct 2022 21:16:53 -0700 (PDT) From: Ihor Radchenko To: "Christopher M. Miles" Cc: Org Mode Subject: Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image? In-Reply-To: <63383737.050a0220.63781.8825SMTPIN_ADDED_BROKEN@mx.google.com> 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> Date: Sun, 02 Oct 2022 12:17:39 +0800 Message-ID: <87mtae2718.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=yantar92@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1664684278; h=from:from:sender:sender: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:dkim-signature; bh=oN5p6UOBqQznmzdVtqPybME2FZ/o2Umh0TbUUVGSJUU=; b=ZSpYQQspsGa0uUAQbfLPw+rrqYnxXhXQfTuw2HTf0netpj7iKsKDBEfKLkS0lYWnbvHcxG J/HM6byFyNUGTD1XpbtpEf8y7521CJwhKcrwYlUFNogDOh2T8hbb5MWV3yLQXXmf5y5IA+ csZDbY01HiEg5U0Hg+Uth1Q7GfNiDOQvAC85EHBgDfEKf431BulROKwLBbIhGeLaGDdzDF I1LIWx7yMko5eWaFg4JclYJqPiCkYT8VfGC5DureDd7ec7URL7jM0Q/Josw0mKGJoCFBqa EWN0SP0NoxIirYusnwQgoT3cU6jg5XkSF/PEdiT2ZtEx/b0HDQ4euAmX0Uxzqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664684278; a=rsa-sha256; cv=none; b=XsAbkqw5WjOWmnTWt2OPrS+wtJIv/wUccFipLJ1b6Jg7GRrpcOvxeEShASjRpIBBKmKaQS nNtw6SYsM4iwgMJDozOB72hy1b1xs66ABgzALrqZ49dKjqy5DgQLumrlxqfa3Qq1xPjCLb Bc7Jc50iFFVxDSXvQgyraA4xFds6xpussMhjPaln+PvMh7ZXEKIbd+ir3gpKZAYSlw+BXK MS7f+n6BPyaBWINe7OZ1wjsNhcb44YVxeU42nvxcUbzdmkJx2XgYhWchDci8T06yzS9EOk M5Me50XTJncZ6Mnk/yo9tTDefVrxQeYxjMShOfyZPP8L/pKpofVh6hZA3cLAlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vf+iySAo; dmarc=pass (policy=none) header.from=gmail.com; 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.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vf+iySAo; dmarc=pass (policy=none) header.from=gmail.com; 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: 083093C286 X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: j7o6/cccKUnG "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. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92