[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 97194c7 023/271: Apply tokens with lexically-bound buffer
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 97194c7 023/271: Apply tokens with lexically-bound buffer as current. |
Date: |
Thu, 05 Feb 2015 18:29:30 +0000 |
branch: master
commit 97194c7d48b14528ff9e6a44ae3bd8b82aa566a3
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Apply tokens with lexically-bound buffer as current.
---
context-coloring.el | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 2b7e33c..16ef241 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -80,10 +80,12 @@ For example: \"context-coloring-depth-1-face\"."
;;; Path constants
-(defconst context-coloring-path (file-name-directory (or load-file-name
buffer-file-name))
+(defconst context-coloring-path
+ (file-name-directory (or load-file-name buffer-file-name))
"This file's directory.")
-(defconst context-coloring-tokenizer-path (expand-file-name "./bin/tokenizer"
context-coloring-path)
+(defconst context-coloring-tokenizer-path
+ (expand-file-name "./bin/tokenizer" context-coloring-path)
"Path to the external tokenizer executable.")
@@ -128,7 +130,8 @@ calling FUNCTION with the parsed list of tokens."
(when (equal "finished\n" event)
(let ((tokens (let ((json-array-type 'list))
(json-read-from-string output))))
- (context-coloring-apply-tokens tokens)
+ (with-current-buffer buffer
+ (context-coloring-apply-tokens tokens))
(message "%s (%f)" "Colorization complete."
(float-time)))))))
;; Give the process its input.
- [elpa] master 409a05b 017/271: Enable font lock again., (continued)
- [elpa] master 409a05b 017/271: Enable font lock again., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a72314c 008/271: Write temp files., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6a2a7df 018/271: Use idle timers instead of font lock., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 0a4248b 009/271: Update chunk size., Jackson Ray Hamilton, 2015/02/05
- [elpa] master ffd69f5 026/271: Minutia., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f349ecb 027/271: Minutia., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 35453e0 015/271: Only color changed regions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 222276b 001/271: Init., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 09166f9 021/271: Some progress, probably have to switch back to lexical., Jackson Ray Hamilton, 2015/02/05
- [elpa] master e448e2f 025/271: Cancelling working., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 97194c7 023/271: Apply tokens with lexically-bound buffer as current.,
Jackson Ray Hamilton <=
- [elpa] master b4b86ac 033/271: Fix after-change-functions with add-hook. Fix nulls., Jackson Ray Hamilton, 2015/02/05
- [elpa] master cce215d 030/271: Add readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 169b1f4 028/271: Set JSLint options to not care., Jackson Ray Hamilton, 2015/02/05
- [elpa] master df36161 031/271: Fix screenshot link., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 16e984c 039/271: Update installation instructions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3e6f2cf 037/271: Cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master bd8fc87 034/271: Restore test files. Start on uglify tokenizer., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 099e8c1 003/271: Write basic tokenizer cli., Jackson Ray Hamilton, 2015/02/05
- [elpa] master fef44f5 038/271: Fix broken link., Jackson Ray Hamilton, 2015/02/05
- [elpa] master e4ee2ec 042/271: Catch parse errors., Jackson Ray Hamilton, 2015/02/05