From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6CMWM6xSfV9kTQAA0tVLHw (envelope-from ) for ; Wed, 07 Oct 2020 05:31:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gOTuLqxSfV/RWAAAB5/wlQ (envelope-from ) for ; Wed, 07 Oct 2020 05:31:24 +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 C8CE49403CA for ; Wed, 7 Oct 2020 05:31:23 +0000 (UTC) Received: from localhost ([::1]:59960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ22r-0007RE-Qi for larch@yhetil.org; Wed, 07 Oct 2020 01:31:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ21a-0007Qw-4h for emacs-orgmode@gnu.org; Wed, 07 Oct 2020 01:30:03 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ21W-0006BV-Bq; Wed, 07 Oct 2020 01:30:00 -0400 X-Originating-IP: 213.207.159.29 Received: from kronos (unknown [213.207.159.29]) (Authenticated sender: public@protesilaos.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 2B7BA20004; Wed, 7 Oct 2020 05:29:51 +0000 (UTC) From: Protesilaos Stavrou To: Kyle Meyer Subject: Re: [PATCH] Adaptive Org faces in headings? References: <878sii4yj7.fsf@protesilaos.com> <871rje9qkf.fsf@protesilaos.com> <87k0x3l4h2.fsf@gnu.org> <87o8mbxxdr.fsf@protesilaos.com> <87363gn72q.fsf@localhost> <87ft78he8m.fsf@gnu.org> <875z81dp71.fsf@gnu.org> <87tuv9c79c.fsf@protesilaos.com> <87imbmoefg.fsf@kyleam.com> Date: Wed, 07 Oct 2020 08:29:49 +0300 In-Reply-To: <87imbmoefg.fsf@kyleam.com> (Kyle Meyer's message of "Wed, 07 Oct 2020 00:20:03 -0400") Message-ID: <87d01ubo36.fsf@protesilaos.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=217.70.183.200; envelope-from=info@protesilaos.com; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/07 01:29:53 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: Bastien , Org-mode , Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Spam-Score: 4.79 X-TUID: N2+IpvbB09L6 --=-=-= Content-Type: text/plain On 2020-10-07, 00:20 -0400, Kyle Meyer wrote: > Protesilaos Stavrou writes: > >> Sorry to re-open this issue. The following change extends Ihor's patch >> to also cover checkbox statistics. Seems to work just fine on my end. >> Thanks again! > > Thanks for the patch. Looks good on my end too. > > Would you mind adding a commit message and sending the git-format-patch > output (details at )? Tried to format the patch. Please see the attached file. If it does not work, feel free to dismiss it and just apply the change yourself. -- Protesilaos Stavrou protesilaos.com --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Make-headline-faces-precede-checkbox-statistics.patch >From 6fc8c6f2c5c81402e2d4a5416b68d8d595f7aaee Mon Sep 17 00:00:00 2001 From: Protesilaos Stavrou Date: Wed, 7 Oct 2020 08:04:24 +0300 Subject: [PATCH] Make headline faces precede checkbox statistics * lisp/org.el (org-set-font-lock-defaults): Apply `prepend' to checkbox statistics. Affects `org-checkbox-statistics-done' and `org-checkbox-statistics-todo'. This builds on commit 979e82fc3: org-level-N faces are no longer overridden by elements placed on top of them. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 425e9391b..23c86ba0c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5684,7 +5684,7 @@ needs to be inserted at a specific position in the font-lock sequence.") 1 'org-checkbox prepend) (when (cdr (assq 'checkbox org-list-automatic-rules)) '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]" - (0 (org-get-checkbox-statistics-face) t))) + (0 (org-get-checkbox-statistics-face) prepend))) ;; Description list items '("^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)" 1 'org-list-dt prepend) -- 2.28.0 --=-=-=--