From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QFXSGhW38WUIqgAAe85BDQ:P1 (envelope-from ) for ; Wed, 13 Mar 2024 15:24:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QFXSGhW38WUIqgAAe85BDQ (envelope-from ) for ; Wed, 13 Mar 2024 15:24:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=b0xri53O; 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=1710339861; 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=VC+Xp7OmUgFbC9MmQrCRRwuR4+M0C9g+8cwN1IiJpU0=; b=DoEcoi2tr4R7+eUKZN57npfu/bKBBpD3VjphMMsmWUxGZqY+eyD5T0OJEHblQUrApK2+G4 d9tJa7Zd/rWUwYRSl2EqFtu5mT38w3BuIIzQyHP3lkHq3wtiNGYa01Wy3hcN2FYwzlQrIF bNBL60e9V8Udb+gQjEsLaYh8PdudOLW/QL+sghyB3CnLZzyZMHgKefSJsZWtY/sIn0nz0a LhY59PLH25JiOnPUkqMleutG4h9BOUe81DpOppx1hTTiGpSBtBPAczAg+fjhLnzwZss1Qy CIIY0gU+g+1+RYxqygZh+yBimRzsfMGu8Tf+fs8Ro7t4JbYWR1qZZWY7d0F1mQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=b0xri53O; 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=1710339861; a=rsa-sha256; cv=none; b=SMlqWYcxMI2rFV60P6Qt1OYtNTSqGShgbunDekiFGUIM/x/3qQ70DFUtukZWinv5Dvh/mG BgP/u+rYr1pwSg6X+NEAhRtYurZOd1XB5LLXvBZBG+v1WjkhkjbaLHqKXrMLMHnvZSUTfS HwE2hwOr+5uIemGhKQbrX7TaVIIl+6Ssu5gMkwUi6U81i6H7CuVE1ENNMfCfP82qUp5rW0 YnZK/PvL/DT+BytHZEihJk1JFgK+uCErkFys7HnT3AYDNmBOp8MDq+7GlHuyu0b+luCksy dDTHJd2A1l+k2oFFqv8ybM8RBof8Kvcdx3FxHD3V6ybWnVVjgVxKZ5BWoeHqMg== 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 39F2F38499 for ; Wed, 13 Mar 2024 15:24:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkPVv-0004E8-4e; Wed, 13 Mar 2024 10:23:27 -0400 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 1rkPVn-0004Dg-3M for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 10:23:20 -0400 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 1rkPVe-0002tn-9F for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 10:23:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E99AE240104 for ; Wed, 13 Mar 2024 15:23:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710339786; bh=/3S2YGEYPzaI6XlmZaTZh9VgAqn15DqPuEtliLFLNAc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=b0xri53OxKAPtGFnsnWNfDs8j7sOkm1buqJJaesZrq6a/Q2K21etHOQFX3dnGIW4X G/RrLpv9dwhD8xGuWKNbZ/wEdd54AMGx06WyA/Cy6joRT7KehFufUpx5KegowTE4jw v13Uxe3l9tRasfj9TBtmktp8WKYxLnyOy90p3X/wCvqkyWIOEZ3GsmIwAzGJXJqTrn fBwVXIHx7d5E9qQasrVUI0dhasFKBTqJ7TbNKDFxCC2fe0oXTimnJwlMrU0J8jNfo1 tuV920nLqBlywuVJMbXRTaQKomNuVIEKYDnK4mgzNNvP7OCPFtb5JM92vjQRRI+VxV HKKkWdZCY1KAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tvt5j6WkJz6txd; Wed, 13 Mar 2024 15:23:05 +0100 (CET) From: Ihor Radchenko To: Protesilaos Stavrou Cc: StrawberryTea , emacs-orgmode@gnu.org Subject: Re: [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: <87edce7ehv.fsf@protesilaos.com> References: <87le6zj9xt.fsf@strawberrytea.xyz> <875xy21e49.fsf@localhost> <87edce7ehv.fsf@protesilaos.com> Date: Wed, 13 Mar 2024 14:27:18 +0000 Message-ID: <87r0geurzt.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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.86 X-Spam-Score: -4.86 X-Migadu-Queue-Id: 39F2F38499 X-Migadu-Scanner: mx13.migadu.com X-TUID: dpGJK1FzOdqR Protesilaos Stavrou writes: >> 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. > > I think it makes sense to not override the background because otherwise > the heading can look visually "broken". See attached screenshot for an > example: it is called "demo-org-heading-with-background.png". In that > screenshot I include an overline for the heading, to show how this is > not limited to the background colour but extends to all face attributes. > To this end, I also attach "demo-org-heading-with-more-height.png" which > shows how the date is not scaling to match the heading's increased text > height. I agree that override (what we do now) is clearly not good. The question, however, is whether we should prioritize object face over the containing element face or vice versa: Should link properties take precedence over headline or should headline properties take precedence? For example, if link explicitly sets face height to be smaller, should we honor it? Or should we honor the headline face height, if set? Similar for background. In your example, the white background override does not really look nice when heading has its own background. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at