emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/org-superstar c58d1e2689 046/162: force org-superstar to c


From: Stefan Kangas
Subject: [nongnu] elpa/org-superstar c58d1e2689 046/162: force org-superstar to clean up --font-lock-keywords
Date: Fri, 31 Dec 2021 19:35:23 -0500 (EST)

branch: elpa/org-superstar
commit c58d1e268944427580cb8f00cf86d33aa8dfcbf8
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>

    force org-superstar to clean up --font-lock-keywords
---
 README.org       | 2 --
 org-superstar.el | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 7adc91d2c2..b2c48651da 100644
--- a/README.org
+++ b/README.org
@@ -36,8 +36,6 @@
         more involved than to get it on MELPA, with more checks and
         monitoring before things can go live.
 
-
-
 ** =2020-02-02=
    *Good news!* The project is reaching an /acceptable/ first draft state.
    This means I am now preparing getting this package properly wrapped
diff --git a/org-superstar.el b/org-superstar.el
index c76941c5a5..db75f9dff6 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -519,12 +519,15 @@ routines of ‘\\[org-superstar-mode]’."
   :require 'org
   (cond
    (org-superstar-mode
+    (font-lock-remove-keywords nil org-superstar--font-lock-keywords)
     (org-superstar--update-font-lock-keywords)
     (font-lock-add-keywords nil org-superstar--font-lock-keywords
                             'append)
     (org-superstar--fontify-buffer))
    (t
     (font-lock-remove-keywords nil org-superstar--font-lock-keywords)
+    (setq org-superstar--font-lock-keywords
+          (default-value 'org-superstar--font-lock-keywords))
     (org-superstar--unprettify-ibullets)
     (org-superstar--unprettify-hbullets)
     (org-superstar--fontify-buffer))))



reply via email to

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