From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CE53D5Si5WX6bQAAe85BDQ:P1 (envelope-from ) for ; Mon, 04 Mar 2024 11:29:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id CE53D5Si5WX6bQAAe85BDQ (envelope-from ) for ; Mon, 04 Mar 2024 11:29:40 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=B5kMgMcT; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709548180; 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=XLoHrlkr2juBIh7tAKXsb64gIBd8K+cHBmt1iAlaIs0=; b=Sfm2Yvu6/bEovN1JUJ9GGXmbm6ya+Crorh8mtIHbYhX5txDVNJ9kQTb1MBirvrwFV+x+OA CS8tV7+nSiCK+YvhR2pGTlgCS94/pxVTMoMxrHyREKybh6HAUKXk3a0cYSDvlPmmXaCNKt 69mov008K34pb1HSAOy9Ipu1adqkb0w0vVJxi7wZOPdLPTRtB3qs+2LYMKMWCKcrW/WLzv xHQSZ6n5vjOBZVXt9Ei/6yU2f2MbExPsdG4DO0pLRhERShmdhWCraAtOlv6CSDcnQOWbbF FsFhmULC9N7l0IP4R2gHFxCpAf4oAUbHxzXUulLxh2XaReP18DtPBFew1hzCWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=B5kMgMcT; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709548180; a=rsa-sha256; cv=none; b=OmshNB3O+6ovLxXIhFF8e524B9Z2LavV8RaGPfcCRS3S7w39lvnPnY4LhKkgMVBwF6Q9rn 2rTWOUpLXFqh01QSYUdkJElfh4M5HZQ4oX2Tqm4ZB2qiOx+tVAl04ZqVQ3Px8Q9KrOEeTu 9yUcf0nw6TEuWhtPk8fA+Ih8JXc+sdj2pHbYSDV38LFUMMg2rj3DmrNM4Z9SzXbTBHOpbP yPpLd/c6pMzwekCr5wOISohwKlnGx3sGU7vOFgD8lPCl722zKeCw/bjaL06fgTkleam6ye N3+nXbbhaWf619ESOpvUvOmpu8P7QSeqoDoSWwHh2GnDO9msrVYKt5unQTvAEg== 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 0162C7492E for ; Mon, 4 Mar 2024 11:29:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rh5Yp-0001ST-UN; Mon, 04 Mar 2024 05:28:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rh5Yn-0001Rs-OL for emacs-orgmode@gnu.org; Mon, 04 Mar 2024 05:28:41 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rh5Yl-0001P7-8n for emacs-orgmode@gnu.org; Mon, 04 Mar 2024 05:28:40 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C28F1240104 for ; Mon, 4 Mar 2024 11:28:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709548116; bh=xH/wzGoRJHnd9d1nUJdioV/oHCXRDs28klLkaCY+HQ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=B5kMgMcTxqkmoVdWRhGCFEEIyzsqRAFS1vIEzoAXy4iJRYgT/iMBVvrm0w9KIQ0iE em0GD/GIy9ZGBjzLxpH0tI3QfPrkw9vyzO6HyyJAK5elGTvxzOeuQ1iLHtBUNnzjGN GgWR+xvCyNa/n39gnxv46xkXtO1TM3eczwABcNCeKtdyr/wa9tCCVrOo+IpgUtOVHW ODfDGuvObTWFYJeVU0NHD2qvBrWCPa5l0VVMwJC6isjOgD9bJo0f5r7Rd43aF8GzR/ spF5MWMcWkMtuSiImssOZKbJPufW6IojDG8M0GenOO9MEEkljwfRzYCSAwht/W4bN5 xqo4XZQB5RboA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TpFKH3H12z9rxB; Mon, 4 Mar 2024 11:28:34 +0100 (CET) From: Ihor Radchenko To: StrawberryTea , Protesilaos Stavrou Cc: emacs-orgmode@gnu.org Subject: [DISCUSSION] Face priority in Org fontification (was: [BUG] org dates, radio links, and special keywords override heading backgrounds [9.7 (9.7-??-902dacb @ /home/st/.config/emacs/.local/straight/build-30.0.50/org/)]) In-Reply-To: <87le6zj9xt.fsf@strawberrytea.xyz> References: <87le6zj9xt.fsf@strawberrytea.xyz> Date: Mon, 04 Mar 2024 10:32:38 +0000 Message-ID: <875xy21e49.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.85 X-Spam-Score: -4.85 X-Migadu-Queue-Id: 0162C7492E X-Migadu-Scanner: mx11.migadu.com X-TUID: bdHWaIkUcaQk StrawberryTea writes: > Hello. Currently, if you have a heading background, and you have a date, > radio link, or special keyword, the background is overridden. I have > attached a patch that fixes this issue by using the `prepend' property > instead of the `t' property. Here is also a minimal example to reproduce > the issue: This is not an exhaustive list. We have a number of markup objects that are fontified overriding the containing element/paragraph/heading face: - target links - timestamps - footnotes - radio targets - macros - inline export snippets I am not 100% sure we should unconditionally prepend their faces to the containing headline/table/etc. CCing Protesilaos. This discussion might be of interest for him. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at