From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aHpKAPOO6WDCKgEAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 14:13:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CDCGN/KO6WAafAAAbx9fmQ (envelope-from ) for ; Sat, 10 Jul 2021 12:13:38 +0000 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 5C8FD1C565 for ; Sat, 10 Jul 2021 14:13:38 +0200 (CEST) Received: from localhost ([::1]:38890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2BrU-0008JZ-Fx for larch@yhetil.org; Sat, 10 Jul 2021 08:13:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Br2-0008J0-MJ for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 08:13:08 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Br0-0007jq-If for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 08:13:08 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 66FEC240103 for ; Sat, 10 Jul 2021 14:12:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1625919176; bh=eHrRxLKCVbF5P1+MF/g1kAc/hL1EmYNR6klZf4aoJfI=; h=From:To:Cc:Subject:Date:From; b=MvSyXFLExHh1uo2vyzdI29d/2vGLBN72o6PzN6Phqkxumxi6tK6iQlTLqql9m1k46 glQYB8Kp7sIuJQFbBklTvtV/G0MShPV1fSqM/8Vo5ocJ+zJub8I76QvrbId2iIOgD0 byAns7Pqrd4my4mcgDjO+NIz++jrwJRoje0e6eAr+NvFS4SgQDFpm8ShKsQKeuoo7M me6ppy3PDiIN4rkMr2UrkZY2/FwbllJObFAgyeyGVVkfYY0vYXvc86FXyf9kKaFScQ EV4e0AiE6vAydK53WHguu9sYTfDWgaGPpPoeXengde0cD9gI16VI5I0V9kLketmJ/5 TYcKtx3CpEPrQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GMTSR3VHqz9rxL; Sat, 10 Jul 2021 14:12:55 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Subject: Re: [PATCH] [BUG] Bad fontification in full displayed links References: <87fswnonl6.fsf@posteo.net> <87k0lz2azm.fsf@localhost> Date: Sat, 10 Jul 2021 12:12:47 +0000 In-Reply-To: <87k0lz2azm.fsf@localhost> (Ihor Radchenko's message of "Sat, 10 Jul 2021 09:50:21 +0800") Message-ID: <875yxi9xkw.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625919218; 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=wVcBzmMzBw8Exxm9E3UbQZSmZzrDPh199Ru27jsONzY=; b=C8X9fsE+VKE07ait4nbiyiHRQVpYjm40E05zZ4qIKZ6G04vlHxfoA0Bhkor1pDH5V1k3+V twuDnHhSGu7uSwU924lzualOHoj1GJ2DO6v/06omaRGO9QNtVzTr8Fg/bebvoUjYL23CiC dRgWb6f851u5RGr5mD3upYSqYV97gRiYA6UVGK9jnVDcDmNhRgR3DfXIkFIX4NxH+9XoJb mUL/jfZOgp0QKKqpmbiJSDrRflD5uNn+9O/Y9s1S+kBiHxmzhiv3TRhN1/751+c5F69JoG 9fAukYfaiENkJZeb+Mo6EVaPablEhVMeVa86O/DyKo91ggQWJYWGKDvTzf9sJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625919218; a=rsa-sha256; cv=none; b=WA/hW4GhkE8C6itY/tDqHofEphKz/KkWDZOx6bgXOmlt7XXgiYi4m32YG+IKLPVPOOH/MH U7XPGEaKPsLm/7bo1poG62x8nth/KSt0VpYtgC2Tr1CPZwLDxw/7PhGJ720c/LbSHKh/tm dpgWC9/kg92NvZJF6UIeC13aNM18kFhZlKftlD5NdDYbmxrXSMDBrKOzw/13Ie0Oz65P9b u+H4qK6BwWl9yfS8N+PD0GBeWLLQAlWnPZtH8/hJRbGUwPNMlRK9sfTk4d3BbJzLsAgw0r VENtpSxcIt43u/cgGiYEBxyPytSRnmW9imR8ZURUXjvIc03XXOUmB7nND04JNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MvSyXFLE; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MvSyXFLE; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5C8FD1C565 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: NyICm2Gy+0eX --=-=-= Content-Type: text/plain Hi Ihor, Ihor Radchenko writes: > Why not just (add-face-text-property start end face-property)? You are right, I think that solution is much simpler. I attach a new patch and I have included your name in the commit message, for the suggestion. Thanks! Best regards, Juan Manuel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org.el-prevent-partial-fontification-when-a-link-is-.patch >From 0e31ba4ce76e436712285b163b8595b0a973da94 Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Sat, 10 Jul 2021 13:53:44 +0200 Subject: [PATCH] org.el: prevent partial fontification when a link is displayed full * lisp/org.el (org-activate-links): apply `face-property' variable in other cases when handle invisible parts in bracket links: `(add-face-text-property start end face-property)' suggestion from Ihor Radchenko --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index ffcc5945d..eca12a5e7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5228,7 +5228,7 @@ This includes angle, plain, and bracket links." 'org-link)) properties))) (add-text-properties start visible-start hidden) - (add-face-text-property visible-start visible-end face-property) + (add-face-text-property start end face-property) (add-text-properties visible-start visible-end properties) (add-text-properties visible-end end hidden) (org-rear-nonsticky-at visible-start) -- 2.32.0 --=-=-=--