[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6392d1f 40/47: Bind optional parameters earlier.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 6392d1f 40/47: Bind optional parameters earlier. |
Date: |
Mon, 18 May 2015 09:52:05 +0000 |
branch: master
commit 6392d1f3e0764414f019e4c76baf25b66101f5f6
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Bind optional parameters earlier.
---
context-coloring.el | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 057b4d8..c7a3f08 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -172,7 +172,9 @@ the END point (exclusive) with the face corresponding to
LEVEL."
(when (or context-coloring-comments-and-strings
context-coloring-syntactic-comments
context-coloring-syntactic-strings)
- (let ((font-lock-syntactic-face-function
+ (let ((min (or min (point-min)))
+ (max (or max (point-max)))
+ (font-lock-syntactic-face-function
(cond
((and context-coloring-syntactic-comments
(not context-coloring-syntactic-strings))
@@ -183,12 +185,10 @@ the END point (exclusive) with the face corresponding to
LEVEL."
(t
font-lock-syntactic-face-function))))
(save-excursion
- (font-lock-fontify-syntactically-region (or min (point-min))
- (or max (point-max)))
+ (font-lock-fontify-syntactically-region min max)
;; TODO: Make configurable at the dispatch level.
(when (eq major-mode 'emacs-lisp-mode)
- (font-lock-fontify-keywords-region (or min (point-min))
- (or max (point-max))))))))
+ (font-lock-fontify-keywords-region min max))))))
;;; js2-mode colorization
- [elpa] master 07c5852 30/47: Add idle change teardown function., (continued)
- [elpa] master 07c5852 30/47: Add idle change teardown function., Jackson Ray Hamilton, 2015/05/18
- [elpa] master ef544ef 29/47: Fontify keywords., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 5c5b429 32/47: Fix font-lock error., Jackson Ray Hamilton, 2015/05/18
- [elpa] master c0a6689 33/47: Only set defaults when the mode is enabled., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 59a6c8e 34/47: Fix timer disposal and timer buffer detection., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 88a921f 35/47: Improve defun regexp., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 438cb33 36/47: Fix incorrect last fontified position., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 1d7761c 37/47: Add constant comment test., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 4ff6e82 39/47: Remove verbose parsing., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 4bbce56 38/47: Add test for interruption., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 6392d1f 40/47: Bind optional parameters earlier.,
Jackson Ray Hamilton <=
- [elpa] master 5051a70 42/47: Update documentation for emacs lisp., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 6a4ad31 43/47: Add derived mode support., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 3b6a391 44/47: Minor cleanup., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 708276e 41/47: Compiler micro-optimizations., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 3bf805d 46/47: Version 6.3.0., Jackson Ray Hamilton, 2015/05/18
- [elpa] master c6e173b 45/47: Merge branch 'elisp', Jackson Ray Hamilton, 2015/05/18
- [elpa] master b525e2d 47/47: Merge commit '3bf805df83fe6f110f3e7e8ce2dc37e0cf6c14cb' from context-coloring, Jackson Ray Hamilton, 2015/05/18