emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Adaptive Org faces in headings?


From: Protesilaos Stavrou
Subject: Re: [PATCH] Adaptive Org faces in headings?
Date: Mon, 05 Oct 2020 13:11:11 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On 2020-09-26, 08:31 +0200, Bastien <bzg@gnu.org> wrote:

> Bastien <bzg@gnu.org> writes:
>
>> Ihor Radchenko <yantar92@gmail.com> writes:
>>
>>> The attached patch seems to fix the issue.
>>
>> Applied as 979e82fc3, thanks a lot!
>
> Also, marking the initial bug report as closed, thanks again.

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!


#+begin_src diff
 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)
#+end_src

-- 
Protesilaos Stavrou
protesilaos.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]