[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b83709f 07/11: Deprecate `comments-and-strings'.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master b83709f 07/11: Deprecate `comments-and-strings'. |
Date: |
Sat, 14 Mar 2015 20:21:43 +0000 |
branch: master
commit b83709f4ad9253631eee27d678c724d770a6b316
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Deprecate `comments-and-strings'.
---
context-coloring.el | 12 +++++++++---
test/context-coloring-test.el | 17 +++++++++++++++--
2 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 5382339..b4082fa 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -132,15 +132,21 @@ the END point (exclusive) with the face corresponding to
LEVEL."
end
`(face ,(context-coloring-bounded-level-face level))))
-(defcustom context-coloring-comments-and-strings t
+(defcustom context-coloring-comments-and-strings nil
"If non-nil, also color comments and strings using `font-lock'."
:group 'context-coloring)
-(defcustom context-coloring-syntactic-comments nil
+(make-obsolete-variable
+ 'context-coloring-comments-and-strings
+ "use `context-coloring-syntactic-comments' and
+ `context-coloring-syntactic-strings' instead."
+ "6.1.0")
+
+(defcustom context-coloring-syntactic-comments t
"If non-nil, also color comments using `font-lock'."
:group 'context-coloring)
-(defcustom context-coloring-syntactic-strings nil
+(defcustom context-coloring-syntactic-strings t
"If non-nil, also color comments using `font-lock'."
:group 'context-coloring)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 5801dd8..903da68 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -701,7 +701,7 @@ see that function."
(context-coloring-test-deftest-js-mode key-values)
(context-coloring-test-deftest-js2-mode key-values)
-(defun context-coloring-test-js-comments-and-strings ()
+(defun context-coloring-test-js-syntactic-comments-and-strings ()
"Test comments and strings."
(context-coloring-test-assert-region-level 1 8 0)
(context-coloring-test-assert-region-comment-delimiter 9 12)
@@ -711,8 +711,21 @@ see that function."
(context-coloring-test-assert-region-string 28 40)
(context-coloring-test-assert-region-level 40 41 0))
+(defun context-coloring-test-js-syntactic-comments-and-strings-setup ()
+ (setq context-coloring-syntactic-comments t)
+ (setq context-coloring-syntactic-strings t))
+
+(context-coloring-test-deftest-js-mode syntactic-comments-and-strings
+ :fixture-name comments-and-strings)
+(context-coloring-test-deftest-js2-mode syntactic-comments-and-strings
+ :fixture-name comments-and-strings)
+
+(defalias 'context-coloring-test-js-comments-and-strings
+ 'context-coloring-test-js-syntactic-comments-and-strings
+ "Test comments and strings. Deprecated.")
+
(defun context-coloring-test-js-comments-and-strings-setup ()
- "Setup comments and strings."
+ "Setup comments and strings. Deprecated."
(setq context-coloring-comments-and-strings t))
(context-coloring-test-deftest-js-mode comments-and-strings)
- [elpa] master updated (b36c4b4 -> 1d1af16), Jackson Ray Hamilton, 2015/03/14
- [elpa] master 5dff74a 01/11: Cleanup., Jackson Ray Hamilton, 2015/03/14
- [elpa] master 6d0ed0e 03/11: Cleanup dependency management., Jackson Ray Hamilton, 2015/03/14
- [elpa] master 32f67a7 02/11: Cleanup., Jackson Ray Hamilton, 2015/03/14
- [elpa] master ba015ce 04/11: Add option to only colorize comments specially., Jackson Ray Hamilton, 2015/03/14
- [elpa] master 5ef598f 05/11: Refactor tests for setups and reused fixtures., Jackson Ray Hamilton, 2015/03/14
- [elpa] master 7e208ed 08/11: Use the better zenburn red., Jackson Ray Hamilton, 2015/03/14
- [elpa] master bde8c44 06/11: Add syntactic strings option., Jackson Ray Hamilton, 2015/03/14
- [elpa] master b83709f 07/11: Deprecate `comments-and-strings'.,
Jackson Ray Hamilton <=
- [elpa] master f062d5a 10/11: Version 6.1.0., Jackson Ray Hamilton, 2015/03/14
- [elpa] master 4849fd4 09/11: Update options documentation., Jackson Ray Hamilton, 2015/03/14
- [elpa] master 1d1af16 11/11: Merge commit 'f062d5a55496e22cf89f2ef9778a24a840a5a68e' from context-coloring, Jackson Ray Hamilton, 2015/03/14