[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7954efc 110/271: Rename instances of depth to level.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 7954efc 110/271: Rename instances of depth to level. |
Date: |
Thu, 05 Feb 2015 18:30:20 +0000 |
branch: master
commit 7954efc1abbfbf0787c9b155498235474d6f2aef
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Rename instances of depth to level.
---
context-coloring.el | 48 ++++++++++++++++++++++++------------------------
1 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 9f21dfc..2450e25 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -36,83 +36,83 @@
;;; Faces
-(defface context-coloring-depth--1-face
+(defface context-coloring-level--1-face
'((((type tty)) (:foreground "white"))
(((background light)) (:foreground "#7f7f7f"))
(((background dark)) (:foreground "#7f7f7f")))
- "Context coloring face, depth -1; comments."
+ "Context coloring face, level -1; comments."
:group 'context-coloring-faces)
-(defface context-coloring-depth-0-face
+(defface context-coloring-level-0-face
'((((type tty)) (:foreground "white"))
(((background light)) (:foreground "#000000"))
(((background dark)) (:foreground "#ffffff")))
- "Context coloring face, depth 0; global scope."
+ "Context coloring face, level 0; global scope."
:group 'context-coloring-faces)
-(defface context-coloring-depth-1-face
+(defface context-coloring-level-1-face
'((((type tty)) (:foreground "yellow"))
(((background light)) (:foreground "#2D6994"))
(((background dark)) (:foreground "#ffff80")))
- "Context coloring face, depth 1."
+ "Context coloring face, level 1."
:group 'context-coloring-faces)
-(defface context-coloring-depth-2-face
+(defface context-coloring-level-2-face
'((((type tty)) (:foreground "green"))
(((background light)) (:foreground "#592D94"))
(((background dark)) (:foreground "#cdfacd")))
- "Context coloring face, depth 2."
+ "Context coloring face, level 2."
:group 'context-coloring-faces)
-(defface context-coloring-depth-3-face
+(defface context-coloring-level-3-face
'((((type tty)) (:foreground "cyan"))
(((background light)) (:foreground "#A13143"))
(((background dark)) (:foreground "#d8d8ff")))
- "Context coloring face, depth 3."
+ "Context coloring face, level 3."
:group 'context-coloring-faces)
-(defface context-coloring-depth-4-face
+(defface context-coloring-level-4-face
'((((type tty)) (:foreground "blue"))
(((background light)) (:foreground "#AC7135"))
(((background dark)) (:foreground "#e7c7ff")))
- "Context coloring face, depth 4."
+ "Context coloring face, level 4."
:group 'context-coloring-faces)
-(defface context-coloring-depth-5-face
+(defface context-coloring-level-5-face
'((((type tty)) (:foreground "magenta"))
(((background light)) (:foreground "#ACA135"))
(((background dark)) (:foreground "#ffcdcd")))
- "Context coloring face, depth 5."
+ "Context coloring face, level 5."
:group 'context-coloring-faces)
-(defface context-coloring-depth-6-face
+(defface context-coloring-level-6-face
'((((type tty)) (:foreground "red"))
(((background light)) (:foreground "#539A2F"))
(((background dark)) (:foreground "#ffe390")))
- "Context coloring face, depth 6."
+ "Context coloring face, level 6."
:group 'context-coloring-faces)
(defconst context-coloring-face-count 7
"Number of faces defined for highlighting delimiter levels.
-Determines depth at which to cycle through faces again.")
+Determines level at which to cycle through faces again.")
;;; Face functions
-(defsubst context-coloring-level-face (depth)
- "Return face-name for DEPTH as a string
\"context-coloring-depth-DEPTH-face\".
-For example: \"context-coloring-depth-1-face\"."
+(defsubst context-coloring-level-face (level)
+ "Return face-name for LEVEL as a string
\"context-coloring-level-LEVEL-face\".
+For example: \"context-coloring-level-1-face\"."
(intern-soft
- (concat "context-coloring-depth-"
+ (concat "context-coloring-level-"
(number-to-string
(or
;; Has a face directly mapping to it.
- (and (< depth context-coloring-face-count)
- depth)
+ (and (< level context-coloring-face-count)
+ level)
;; After the number of available faces are used up, pretend the
0th
;; face doesn't exist.
(+ 1
- (mod (- depth 1)
+ (mod (- level 1)
(- context-coloring-face-count 1)))))
"-face")))
- [elpa] master e06fbe9 158/271: Add comment support for js2-mode., (continued)
- [elpa] master e06fbe9 158/271: Add comment support for js2-mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a2b6a5a 112/271: Use defvar-local., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6c8175e 153/271: Update compilation., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4f57f0c 163/271: Improve global test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master dc8e99c 130/271: Function name., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 2bb4d12 124/271: More cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d301048 154/271: Update compilation again., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1d9cf42 164/271: Refactor tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a0ccc5c 162/271: Improve and pass catch test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master c8fa33f 170/271: Improve async benchmarking., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7954efc 110/271: Rename instances of depth to level.,
Jackson Ray Hamilton <=
- [elpa] master 338716d 161/271: Refactor., Jackson Ray Hamilton, 2015/02/05
- [elpa] master fc81cf9 157/271: Don't use timers for js2-mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b4c220a 159/271: Always remove hooks., Jackson Ray Hamilton, 2015/02/05
- [elpa] master e040ca0 181/271: Just use stable emacs., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9e7ee77 155/271: Add catch test. Don't uncolorize., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 665a54a 167/271: Add more js-mode tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 43f2e3b 168/271: Increase reliability of async tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 28183e4 188/271: Readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master bdfdbe4 151/271: Improve benchmarks., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d27f2fe 182/271: Fix callback removal., Jackson Ray Hamilton, 2015/02/05