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

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

[elpa] master 310aca4 228/271: Use `save-excursion' before fontifying.


From: Jackson Ray Hamilton
Subject: [elpa] master 310aca4 228/271: Use `save-excursion' before fontifying.
Date: Thu, 05 Feb 2015 18:31:29 +0000

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

    Use `save-excursion' before fontifying.
---
 context-coloring.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index cc9f909..d0579d1 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -161,7 +161,8 @@ END (exclusive) with the face corresponding to LEVEL."
 
 (defsubst context-coloring-maybe-colorize-comments-and-strings ()
   (when context-coloring-comments-and-strings
-    (font-lock-fontify-syntactically-region (point-min) (point-max))))
+    (save-excursion
+      (font-lock-fontify-syntactically-region (point-min) (point-max)))))
 
 
 ;;; js2-mode colorization



reply via email to

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