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 ms11 with LMTPS id SM0UCBDA4F9FFQAA0tVLHw (envelope-from ) for ; Mon, 21 Dec 2020 15:32:32 +0000 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 cDXjAxDA4F/QSAAAbx9fmQ (envelope-from ) for ; Mon, 21 Dec 2020 15:32:32 +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 6B25494014B for ; Mon, 21 Dec 2020 15:32:31 +0000 (UTC) Received: from localhost ([::1]:45654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krNAk-00062V-3c for larch@yhetil.org; Mon, 21 Dec 2020 10:32:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krN7h-0003zJ-IE for emacs-orgmode@gnu.org; Mon, 21 Dec 2020 10:29:22 -0500 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:36319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krN7f-0005IN-Pa for emacs-orgmode@gnu.org; Mon, 21 Dec 2020 10:29:21 -0500 Received: by mail-pg1-x52d.google.com with SMTP id w5so6557443pgj.3 for ; Mon, 21 Dec 2020 07:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=lNgiXmJ8BuVrG3OZ2kDffODkEItCM9bBuXnVTv07P3g=; b=dq2ICh5Wv5RxhqYd12x6E3t10ktFqWoVoh2iM2ecYPBhEZsi/TuNWAwKcVmP0hpl/A oJ2ngy0Hw/TxMG9JO6VrGJTeg469uAfdWYr9/LiXe/zavJp0DEGuztfuA+UKcudRs8WT AY8ZhmjH1F/0ZyXnYw744GEJKBwkW8WoKr8mbAj+mpfdDp61khTMH2RKNlGcBAuaZAtE g5XAiwMv26jQUiggXdoSkSKJk9Iny+oPvL15C3QEa0IkqlWyhkwXOhnt87Nb3lWJb9fs e/vvPzBfqZOghH16CFKRT4zUNDJznYnMOzlRLIdi3aJ1lpOt+BAtFmM0outViVQKVy2M vnHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=lNgiXmJ8BuVrG3OZ2kDffODkEItCM9bBuXnVTv07P3g=; b=huAN/KkG2lFVvCufhRhQwLFTZYisdQkqyMnvKauoQD+nhri9JKHWcUz5aaq8Sfvfty c78kjWtNA+I+R23AmxSUAP6zKYhQN8fPYOR+Lw6fJlYCRPWzOv4YGUjKCUCf2Pi+vdXk jSBBbfeq6jpmW0ydwJOrYInjR/aDs+jxK8QT4OFJCgv3n04PkuKEu9IbpYCBEIbGqUvz JuXIUxlXyfnPGP8m1sCx1zhOFKWHsdUkbWokVvXEk91Zm9MqfeB6W63GO3gtHcBeB+be 7mV2ZSl1vTDB0GL78Yrdt58AOD0AjCbdOCWeKGszykqO46AgT/tnRTyAZnuEITLMlEES xwdA== X-Gm-Message-State: AOAM532kodH2dsG5z43NI14c6UWHN9pPjc2SNP2n1sFvsM+qgd5xdxKb IVe69eISumoT0EABjtYhs18cCKh9uc0= X-Google-Smtp-Source: ABdhPJzePm0unxf1MCUJReRr9DzFwqyKX7gV1cJTGfGUdrbtwXg34mjdz/BuuvcvRkVbOeVxIXJYgA== X-Received: by 2002:a65:67cf:: with SMTP id b15mr15672877pgs.429.1608564557406; Mon, 21 Dec 2020 07:29:17 -0800 (PST) Received: from localhost ([50.7.251.66]) by smtp.gmail.com with ESMTPSA id u68sm13777024pfu.195.2020.12.21.07.29.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 07:29:16 -0800 (PST) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [PATCH] Document changes of headline fontification introduced in 979e82fc3 Date: Mon, 21 Dec 2020 23:32:55 +0800 Message-ID: <87o8in18ew.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=dq2ICh5W; dmarc=pass (policy=none) header.from=gmail.com; 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: 6B25494014B X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: dyxvYCFVEiaR --=-=-= Content-Type: text/plain I just got someone confused [1] about the new headline fontification behaviour when all the headline components inherit the headline face. I think it will be useful to document the change in ORG-NEWS and show how to restore the old appearance. Patch attached. [1] https://github.com/yantar92/org/issues/8 Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Document-changes-of-headline-fontification-introduce.patch >From 4fa9c08fabb17bddd760ec8491c140b7d1d1c91f Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Mon, 21 Dec 2020 23:26:49 +0800 Subject: [PATCH] Document changes of headline fontification introduced in 979e82fc3 * etc/ORG-NEWS (=org-goto-first-child= now works before first heading): Document that all the headline components inherit the headline face instead of default face. Provide example how to restore the old behaviour. --- etc/ORG-NEWS | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index d685f30b6..fd19b2f1a 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -157,6 +157,35 @@ headings in the buffer. Previously =org-goto-first-child= would do nothing before first heading, except return nil. +*** Faces of all the heading text elements now conform to the headline face + +In the past, faces of todo keywords, emphasised text, tags, and +priority cookies inherited =default= face. The resulting headline +fontification was not always consistent, as discussed in [[https://lists.gnu.org/archive/html/emacs-orgmode/2020-09/msg00331.html][this bug +report]]. Now, the relevant faces adapt to face used to fontify the +current headline level. + +Users who prefer to keep the old behaviour should change their face +customisation explicitly stating that =default= face is inherited. + +Example of old face customisation: + +#+begin_src emacs-lisp +(setq org-todo-keyword-faces '(("TODO" + :background "chocolate" + :height 0.75))) +#+end_src + +To preserve the old behaviour the above customisation should be +changed to + +#+begin_src emacs-lisp +(setq org-todo-keyword-faces '(("TODO" + :inherit default + :background "chocolate" + :height 0.75))) +#+end_src + * Version 9.4 ** Incompatible changes *** Possibly broken internal file links: please check and fix -- 2.26.2 --=-=-=--