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

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

[elpa] master c0a6689 33/47: Only set defaults when the mode is enabled.


From: Jackson Ray Hamilton
Subject: [elpa] master c0a6689 33/47: Only set defaults when the mode is enabled.
Date: Mon, 18 May 2015 09:52:00 +0000

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

    Only set defaults when the mode is enabled.
---
 context-coloring.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index 3a05bc2..bf1d533 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -193,7 +193,6 @@ the END point (exclusive) with the face corresponding to 
LEVEL."
                                                 (or max (point-max)))
         ;; TODO: Make configurable at the dispatch level.
         (when (eq major-mode 'emacs-lisp-mode)
-          (font-lock-set-defaults)
           (font-lock-fontify-keywords-region (or min (point-min))
                                              (or max (point-max))))))))
 
@@ -1432,6 +1431,9 @@ elisp tracks, and asynchronously for shell command 
tracks."
     (font-lock-mode 0)
     (jit-lock-mode nil)
 
+    ;; ...but we do use font-lock functions here.
+    (font-lock-set-defaults)
+
     ;; Safely change the valye of this function as necessary.
     (make-local-variable 'font-lock-syntactic-face-function)
 



reply via email to

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