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

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

[elpa] master 409a05b 017/271: Enable font lock again.


From: Jackson Ray Hamilton
Subject: [elpa] master 409a05b 017/271: Enable font lock again.
Date: Thu, 05 Feb 2015 18:29:27 +0000

branch: master
commit 409a05b1e90eef0c7546a62926e0a4bf81fe7fa3
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Enable font lock again.
---
 context-coloring.el |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index 8281676..6e5a2ba 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -119,6 +119,9 @@ For example: 'context-coloring-depth-1-face'."
   (interactive)
   (context-coloring-tokenize))
 
+(defun context-coloring-fontify-region (start end)
+  (context-coloring-tokenize))
+
 
 ;;; Minor mode
 
@@ -128,8 +131,9 @@ For example: 'context-coloring-depth-1-face'."
   nil " Context" nil
   (if (not context-coloring-mode)
       (progn
-        )
-    (set (make-local-variable 'context-coloring-tokenizer-output) nil)))
+        (jit-lock-unregister 'context-coloring-fontify-region))
+    (set (make-local-variable 'context-coloring-tokenizer-output) nil)
+    (jit-lock-register 'context-coloring-fontify-region)))
 
 ;;;###autoload
 (defun context-coloring-mode-enable ()



reply via email to

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