[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ce8ac8e 02/25: Add context-coloring-before-colorize abstra
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master ce8ac8e 02/25: Add context-coloring-before-colorize abstraction. |
Date: |
Mon, 30 May 2016 22:10:44 +0000 (UTC) |
branch: master
commit ce8ac8e32a952668f1bee67e1c834c6b0a65df26
Author: Jackson Hamilton <address@hidden>
Commit: Jackson Hamilton <address@hidden>
Add context-coloring-before-colorize abstraction.
---
context-coloring.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/context-coloring.el b/context-coloring.el
index e5b5a73..0a8e22c 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -1268,10 +1268,15 @@ override `context-coloring-default-delay'.
(when (funcall predicate)
properties)) context-coloring-dispatch-predicates))))
+(defun context-coloring-before-colorize ()
+ "Set up environment for colorization."
+ (context-coloring-update-maximum-face))
+
(defun context-coloring-dispatch ()
"Determine how to color the current buffer, and color it."
(let* ((dispatch (context-coloring-get-current-dispatch))
(colorizer (plist-get dispatch :colorizer)))
+ (context-coloring-before-colorize)
(catch 'interrupted
(funcall colorizer))))
@@ -1281,7 +1286,6 @@ override `context-coloring-default-delay'.
(defun context-coloring-colorize ()
"Color the current buffer by function context."
(interactive)
- (context-coloring-update-maximum-face)
(context-coloring-dispatch))
(defun context-coloring-colorize-with-buffer (buffer)
- [elpa] master updated (5f6e9e7 -> 6ee4481), Jackson Ray Hamilton, 2016/05/30
- [elpa] master ce8ac8e 02/25: Add context-coloring-before-colorize abstraction.,
Jackson Ray Hamilton <=
- [elpa] master d346f82 08/25: Ignore packaging-generated files., Jackson Ray Hamilton, 2016/05/30
- [elpa] master d9c171b 10/25: Handle multiple files in coverage reports., Jackson Ray Hamilton, 2016/05/30
- [elpa] master e93ef84 14/25: Remove obsolete variables., Jackson Ray Hamilton, 2016/05/30
- [elpa] master 48cd90e 18/25: Tweak copyright lines., Jackson Ray Hamilton, 2016/05/30
- [elpa] master aa94f91 20/25: Be more careful when disabling/enabling font-lock., Jackson Ray Hamilton, 2016/05/30
- [elpa] master 3007b29 24/25: Version 8.0.1., Jackson Ray Hamilton, 2016/05/30
- [elpa] master a0e907a 01/25: Ensure js2-mode parses synchronously., Jackson Ray Hamilton, 2016/05/30
- [elpa] master 6c92cc2 19/25: Rename variable., Jackson Ray Hamilton, 2016/05/30
- [elpa] master ceece60 15/25: Trivial cleanup., Jackson Ray Hamilton, 2016/05/30
- [elpa] master f6401a6 17/25: Narrow scope of `make compile'., Jackson Ray Hamilton, 2016/05/30