[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 809d48b 020/271: Minor tweaks.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 809d48b 020/271: Minor tweaks. |
Date: |
Thu, 05 Feb 2015 18:29:28 +0000 |
branch: master
commit 809d48b47b5c86d436846bb184a5e5bd3d8cf275
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Minor tweaks.
---
context-coloring.el | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index feba386..03b43b6 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -135,13 +135,10 @@ calling FUNCTION with the parsed list of tokens."
(interactive)
(context-coloring-tokenize 'context-coloring-apply-tokens))
-(defun context-coloring-idle-timer ()
+(defun context-coloring-colorize-if-current ()
(when (eq context-coloring-buffer (window-buffer (selected-window)))
(context-coloring-colorize-buffer)))
-(defun context-coloring-after-change (start end length)
- (setq context-coloring-changed t))
-
;;; Minor mode
@@ -151,7 +148,8 @@ calling FUNCTION with the parsed list of tokens."
nil " Context" nil
(if (not context-coloring-mode)
(progn
- (cancel-timer context-coloring-colorize-buffer-timer))
+ (when (boundp 'context-coloring-colorize-idle-timer)
+ (cancel-timer context-coloring-colorize-idle-timer)))
;; Colorize once initially. Why this doesn't work, I cannot say.
;; (context-coloring-colorize-buffer)
@@ -160,8 +158,8 @@ calling FUNCTION with the parsed list of tokens."
(set (make-local-variable 'context-coloring-buffer) (current-buffer))
;; Only recolor idly.
- (set (make-local-variable 'context-coloring-colorize-buffer-timer)
- (run-with-idle-timer 1 t 'context-coloring-idle-timer))))
+ (set (make-local-variable 'context-coloring-colorize-idle-timer)
+ (run-with-idle-timer 1 t 'context-coloring-colorize-if-current))))
;;;###autoload
(defun context-coloring-mode-enable ()
- [elpa] master updated (c8087b9 -> dc9644e), Jackson Ray Hamilton, 2015/02/05
- [elpa] master e3fc05a 011/271: Create bin and scripts directories., Jackson Ray Hamilton, 2015/02/05
- [elpa] master aaf199e 006/271: Fix global wraparound., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 809d48b 020/271: Minor tweaks.,
Jackson Ray Hamilton <=
- [elpa] master 98df7db 010/271: Optimize cli a little bit., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5fd312b 002/271: More planning and research., Jackson Ray Hamilton, 2015/02/05
- [elpa] master ebc0b99 013/271: Add rollover font lock optimization., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 615ce2c 004/271: Wow, actually works., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6d79b91 024/271: Idly colorizing after changes working. Cancelling seemingly not working., Jackson Ray Hamilton, 2015/02/05
- [elpa] master fd4b629 007/271: Add mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6e991c4 014/271: Fix off-by-one error., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b35380b 019/271: Vastly improve idle timer strategy., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7ac8db6 012/271: Fix a bug where strings were matched., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 806398e 016/271: Use asynchronous command execution strategy., Jackson Ray Hamilton, 2015/02/05