From: Protesilaos Stavrou <info@protesilaos.com>
To: Kyle Meyer <kyle@kyleam.com>
Cc: Bastien <bzg@gnu.org>, Org-mode <emacs-orgmode@gnu.org>,
Ihor Radchenko <yantar92@gmail.com>
Subject: Re: [PATCH] Adaptive Org faces in headings?
Date: Wed, 07 Oct 2020 08:29:49 +0300 [thread overview]
Message-ID: <87d01ubo36.fsf@protesilaos.com> (raw)
In-Reply-To: <87imbmoefg.fsf@kyleam.com> (Kyle Meyer's message of "Wed, 07 Oct 2020 00:20:03 -0400")
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
On 2020-10-07, 00:20 -0400, Kyle Meyer <kyle@kyleam.com> 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 <https://orgmode.org/worg/org-contribute.html>)?
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Make-headline-faces-precede-checkbox-statistics.patch --]
[-- Type: text/x-patch, Size: 1172 bytes --]
From 6fc8c6f2c5c81402e2d4a5416b68d8d595f7aaee Mon Sep 17 00:00:00 2001
From: Protesilaos Stavrou <info@protesilaos.com>
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
next prev parent reply other threads:[~2020-10-07 5:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-26 5:16 Adaptive Org faces in headings? Protesilaos Stavrou
2020-04-26 7:42 ` Ihor Radchenko
2020-09-05 14:47 ` Bastien
2020-09-06 19:58 ` Protesilaos Stavrou
2020-09-05 21:39 ` Diego Zamboni
2020-09-07 4:08 ` Protesilaos Stavrou
2020-09-09 8:49 ` Bastien
2020-09-09 9:11 ` TEC
2020-09-09 14:44 ` Bastien
2020-09-12 7:33 ` Protesilaos Stavrou
2020-09-17 8:25 ` [PATCH] " Ihor Radchenko
2020-09-18 9:52 ` Protesilaos Stavrou
2020-09-20 3:24 ` Sheng Yang
2020-10-27 18:30 ` Rob Davenport
2020-10-28 15:37 ` Rob Davenport
2020-09-21 16:05 ` Mikhail Skorzhinskii
2020-09-23 12:25 ` Bastien
2020-09-23 12:28 ` Protesilaos Stavrou
2020-09-26 6:31 ` Bastien
2020-10-05 10:11 ` Protesilaos Stavrou
2020-10-07 4:20 ` Kyle Meyer
2020-10-07 5:29 ` Protesilaos Stavrou [this message]
2020-10-08 3:37 ` Kyle Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d01ubo36.fsf@protesilaos.com \
--to=info@protesilaos.com \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=kyle@kyleam.com \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).