From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UMLAIgS5vmAW5gAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 02:25:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IJTnHQS5vmDuEQAAbx9fmQ (envelope-from ) for ; Tue, 08 Jun 2021 00:25:40 +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 BB1ABD9F8 for ; Tue, 8 Jun 2021 02:25:39 +0200 (CEST) Received: from localhost ([::1]:59480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqPYn-0006lD-Mi for larch@yhetil.org; Mon, 07 Jun 2021 20:25:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqPYH-0006l1-Ci for emacs-orgmode@gnu.org; Mon, 07 Jun 2021 20:25:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqPYE-0001iF-PQ for emacs-orgmode@gnu.org; Mon, 07 Jun 2021 20:25:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B5173240026 for ; Tue, 8 Jun 2021 02:24:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623111897; bh=9bP+MlmiuE2a/2DjeYn/R+jRZK7RMCMaYygF1tLsyoA=; h=From:To:Subject:Date:From; b=Bd1zhRuXxJ4yau8PhQ69pD9VODxxwAfIbKEuMEcenEdQ1wfsEUOJgSnn2SdcPz78i piHgkvLJ8EGufd59GahcNjWO8Tg3MOue9SFZkKY5kEUI4uKuHbA0M3eU4jNofkaZ4v rpWNTPOOBz+mNgHPBIM0JgoBySi0KW4PnSLCQBoNHn5Pt9r8mP6jUaBx/HqZeIVkrY rn1wF76imVD1+HkyhDiNRRJK6vYn9ssEp/78n/aCFy3orYKnfv8bX6X1m2Wl5pHcGu 6Rn7VOju9tqlvviLs7fkgdYJSnGtR0IsqoBOV9Q0QEQOCWFVdUXwvF3QRPDHBV1trh huwgljFyUhlGA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FzWGK0V4xz6tm9 for ; Tue, 8 Jun 2021 02:24:56 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [PATCH] org.el: prevent partial fontification when a link is full displayed (was org-link-set-parameters: when :display full, etc.) References: <87bl8m4prp.fsf@posteo.net> <87im2t7toj.fsf@posteo.net> <87mts2fwrl.fsf@posteo.net> Date: Tue, 08 Jun 2021 00:24:56 +0000 In-Reply-To: <87mts2fwrl.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Sun, 06 Jun 2021 22:34:06 +0000") Message-ID: <877dj5urs7.fsf_-_@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H3=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: , 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=1623111940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=SE8xsRzIKCufnCDL1Ckc55KNeEzVcfM4irwfp3HgEp0=; b=r5KSzFleS6QjNB8+96grlEkNNqiE3y59BsgwotTwehWQCQnUNgbQ6WMh5BZ/SGYSPLTABY irhCr6JHoe883OC/8CwlORltyqLCJJLQPBMd1UPYhYu/QZ9wIaLeSEt8AYrug0QAqPVQxB aVDG7xCVKP4AEAUgtjBpotsEN4zM6TGYvSwbypMhjMaG0KuetNl45OEDdWb9zoCRFJOBqr uBpFdr9XGGADG7rEN/gER5LCRYXUs/HczczxkcwWzZQdrWM231hKR/PETxqzgon2fmN8yn p0Alc/xKcNA0coXtfeLGIRWLetFq2QKpf89G4f9C9yuaRaJbH/gUCY1neMTK9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623111940; a=rsa-sha256; cv=none; b=PbGC6uGbdLkP8QnWCbR//S4M3ydOoPq4OKFce+fyCUeA+18OTuAFScwh+716nu9ir/KVA9 foCS8jVDDUszLm51tBMz5eFybgvQ8yYx+YG2I/mLr8D/rgZe7wFytChRQGWtV8iFFVxauk MCuXs6fDTQeJhmkMBpkjOZ7BsLTc03yCpc0yBNmTNqKUzvZ7sPvVueHQx6zhNLi5UxPtyR I1ArskVaOC1IRE9aF+UVBvs8NusZX/lvUHnirv4UzHnC0dYWGdXhEzg44UIExEyT5fP6Um 4dFArYs//iRLrQVz3WPLLjsnZ0wTKxYSK8cslE+3am9NDXi3HiPlOP/XRcfOcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Bd1zhRuX; 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-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Bd1zhRuX; 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: BB1ABD9F8 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: RH5SOY/98DVp --=-=-= Content-Type: text/plain As I commented in a previous post of this thread, to reproduce the bug, just run `org-toggle-link-display'. As a possible solution I'm attaching this patch (little tested). Best regards, Juan Manuel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org.el-prevent-partial-fontification-link-display-full.patch >From caf32a7e1fb1b4bddfa011520f5403d5b6b19ddd Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Tue, 8 Jun 2021 01:55:02 +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 --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 1bd9e02eb..b55d8798a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5224,9 +5224,11 @@ This includes angle, plain, and bracket links." ,(or (org-link-get-parameter type :display) 'org-link)) properties))) + (add-face-text-property start visible-start face-property) (add-text-properties start visible-start hidden) - (add-face-text-property visible-start visible-end face-property) + (add-face-text-property visible-start visible-end face-property) (add-text-properties visible-start visible-end properties) + (add-face-text-property visible-end end face-property) (add-text-properties visible-end end hidden) (org-rear-nonsticky-at visible-start) (org-rear-nonsticky-at visible-end))) -- 2.31.1 --=-=-=--