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

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

[nongnu] elpa/eglot-inactive-regions 879c5cf032 20/66: Advice default fo


From: ELPA Syncer
Subject: [nongnu] elpa/eglot-inactive-regions 879c5cf032 20/66: Advice default fontify region function instead of local one
Date: Fri, 6 Dec 2024 06:59:52 -0500 (EST)

branch: elpa/eglot-inactive-regions
commit 879c5cf032a9a2b0104462160137a7b9e9489e02
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>

    Advice default fontify region function instead of local one
    
    CC modes extend the fontification region before chaining up to the
    default fontification function. Then they chain up to the default. We
    want to run after that so we have the updated fontification region.
---
 clangd-inactive-regions.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 2d29fd1850..6ad6c238f5 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -70,10 +70,10 @@ Allowed methods:
   ""
   :global nil
   (cond (clangd-inactive-regions-mode
-         (add-function :after (local 'font-lock-fontify-region-function)
+         (add-function :after (default-value 
'font-lock-fontify-region-function)
                        #'clangd-inactive-regions--fontify))
         (t
-         (remove-function (local 'font-lock-fontify-region-function)
+         (remove-function (default-value 'font-lock-fontify-region-function)
                           #'clangd-inactive-regions--fontify)
          (clangd-inactive-regions-cleanup))))
 



reply via email to

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