From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id jEWkAiAU6GBhKAEAgWs5BA (envelope-from ) for ; Fri, 09 Jul 2021 11:17:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MMtmOR8U6GCkdQAA1q6Kng (envelope-from ) for ; Fri, 09 Jul 2021 09:17:19 +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 4C3901F7BC for ; Fri, 9 Jul 2021 11:17:19 +0200 (CEST) Received: from localhost ([::1]:53168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1mdK-0004zg-7o for larch@yhetil.org; Fri, 09 Jul 2021 05:17:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1mbJ-0002jy-41 for emacs-orgmode@gnu.org; Fri, 09 Jul 2021 05:15:13 -0400 Received: from mout01.posteo.de ([185.67.36.65]:47099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1mbE-0006bR-NI for emacs-orgmode@gnu.org; Fri, 09 Jul 2021 05:15:12 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 70850240026 for ; Fri, 9 Jul 2021 11:15:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1625822104; bh=D+T62cB9lbF7paGHnbhzOYCiz4VfJpcHjSS0Z/4lctk=; h=From:To:Subject:Date:From; b=qENdSfP8STpWAnXKtisRtGaP9CyX+Dm/0QQvBYeszlDmw0DY6KReW5KB8x0XifCZe QAvNJYH78AdhNVic3996rl7AiAmS1UL+p2EYTzwNUuI8qufVqeS+Ygv2ZNwwHRqu5E aRVgkWhCKS/WtAsWr2bATheo8t0wMl94QzuzsL5lgnxjbNPmfPVqJA+hv6YgkSAgK4 vqNE4V0LhQN3EnwV3N3V1oAmhFbrnZ4WVhTAkXwdeF4bIguWVObyV8R9iZFtCnu/YO 1Ff0QlYCFqpiUxr+a/WTpumf1q7vp3gZaHwxEvlCKIUyAFjuh6Hx71nL24bvcMU9d+ 7CYiLMxaKT3vQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GLnYg3vz5z9rxW for ; Fri, 9 Jul 2021 11:15:03 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [PATCH] [BUG] Bad fontification in full displayed links Date: Fri, 09 Jul 2021 09:15:01 +0000 Message-ID: <87fswnonl6.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=1625822239; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YseDD9ARRuuKIFuhbDONZOWk8TJIfo2ZkeymJxJAuls=; b=ZFXe+2cIJG7O7da7jEGuKUPIO7gm1z7IGyCb6tvkS2by9HiqbRH0fEPz6a7hWVbaFPLHj0 mC30VruATj80Rm1qMT3jkiwZNUihAV2kNamEQ1AQrVaZ87gh5o4Fv4au0gr0v8kQ/RLoi3 oXQCTWXMJkp0kW/c2drkf1OeipxCad65Gaa0xGVBWxNfzwcTAPl7/xvjecCjamnuQrCIq4 5Iv64DFtfIjCDmDICFCa7Cgd7UDy0amvn5iuPOGYHJG1bDGhq9z095y06oK9IQooO3Nqux vFokFMsuTJaDlxe2TKnehxtfUZwms2uRfv576KLQ/RpzOn5PUOlwvTWFX538kA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625822239; a=rsa-sha256; cv=none; b=C+nDQcW6Oye5o4QvvSfa5NgX09PVtcUjb6llo/mAWPRgeUoHqcLXDCJjWXf/Uak9htAnLa qAIPRq3CVpr4YFjzDJci+KePompjd7DC+p8erKUJigWVfpUxC2WxSZAIDXrMyRFBuqax8b hQyEsOYVk7Ilpikm3nJWpQrIMAQYf5QsI/rXJHFW8sziPYCsmJ6PmENwoVPtTE60ytoBQG 1sISxk2sRid/ufuQWzTH1zpdE+RYSH2d+xg4dLCL/9Mw9TWwiENWExL70orO9e4NDpx1DU 984ng84CDZ0O4In1IjA1ZnAjmWPwgO9uFgXMkVz9mTtoX2deIZOFOHCyEJgiZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qENdSfP8; 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: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qENdSfP8; 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: 4C3901F7BC X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: lIaMWfnP9VKs --=-=-= Content-Type: text/plain Hi, To reproduce the bug: 1. Put some link: [[target][description]] 2. Run `org-toggle-link-display' As a possible fix I'm attaching this patch. 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 --=-=-=--