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

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

[elpa] master 3d91840 22/26: Remove `context-coloring-benchmark-coloriza


From: Jackson Ray Hamilton
Subject: [elpa] master 3d91840 22/26: Remove `context-coloring-benchmark-colorization'.
Date: Sat, 14 Feb 2015 08:19:39 +0000

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

    Remove `context-coloring-benchmark-colorization'.
---
 context-coloring.el |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index 47cb00b..b9f5cc4 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -412,22 +412,14 @@ elisp tracks, and asynchronously for shell command 
tracks."
 
 ;;; Colorization
 
-(defcustom context-coloring-benchmark-colorization nil
-  "If non-nil, track how long colorization takes and print
-messages with the colorization duration."
-  :group 'context-coloring)
-
 (defun context-coloring-colorize (&optional callback)
   "Color the current buffer by function context.
 
 Invoke CALLBACK when complete; see `context-coloring-dispatch'."
   (interactive)
-  (let ((start-time (float-time)))
-    (context-coloring-dispatch
-     (lambda ()
-       (when context-coloring-benchmark-colorization
-         (message "Colorization took %.3f seconds" (- (float-time) 
start-time)))
-       (when callback (funcall callback))))))
+  (context-coloring-dispatch
+   (lambda ()
+     (when callback (funcall callback)))))
 
 (defvar-local context-coloring-changed nil
   "Indication that the buffer has changed recently, which implies



reply via email to

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