aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/pcvs-info.el44
2 files changed, 37 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f9868fd85ff..6ec845adcf3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,14 @@
12005-06-10 Miles Bader <miles@gnu.org> 12005-06-10 Miles Bader <miles@gnu.org>
2 2
3 * pcvs-info.el (cvs-header, cvs-filename, cvs-unknown)
4 (cvs-handled, cvs-need-action, cvs-marked, cvs-msg):
5 Remove "-face" suffix from face names.
6 (cvs-header-face, cvs-filename-face, cvs-unknown-face)
7 (cvs-handled-face, cvs-need-action-face, cvs-marked-face)
8 (cvs-msg-face): New backward-compatibility aliases for renamed faces.
9 (cvs-fi-up-to-date-face, cvs-fi-unknown-face, cvs-fileinfo-pp):
10 Use renamed pcvs faces.
11
3 * info.el (info-title-1, info-title-2, info-title-3) 12 * info.el (info-title-1, info-title-2, info-title-3)
4 (info-title-4): Remove "-face" suffix from and downcase face names. 13 (info-title-4): Remove "-face" suffix from and downcase face names.
5 (Info-title-1-face, Info-title-2-face, Info-title-3-face) 14 (Info-title-1-face, Info-title-2-face, Info-title-3-face)
diff --git a/lisp/pcvs-info.el b/lisp/pcvs-info.el
index cf367072838..d56fa19fd32 100644
--- a/lisp/pcvs-info.el
+++ b/lisp/pcvs-info.el
@@ -61,7 +61,7 @@ to confuse some users sometimes."
61;;;; Faces for fontification 61;;;; Faces for fontification
62;;;; 62;;;;
63 63
64(defface cvs-header-face 64(defface cvs-header
65 '((((class color) (background dark)) 65 '((((class color) (background dark))
66 (:foreground "lightyellow" :weight bold)) 66 (:foreground "lightyellow" :weight bold))
67 (((class color) (background light)) 67 (((class color) (background light))
@@ -69,8 +69,10 @@ to confuse some users sometimes."
69 (t (:weight bold))) 69 (t (:weight bold)))
70 "PCL-CVS face used to highlight directory changes." 70 "PCL-CVS face used to highlight directory changes."
71 :group 'pcl-cvs) 71 :group 'pcl-cvs)
72;; backward-compatibility alias
73(put 'cvs-header-face 'face-alias 'cvs-header)
72 74
73(defface cvs-filename-face 75(defface cvs-filename
74 '((((class color) (background dark)) 76 '((((class color) (background dark))
75 (:foreground "lightblue")) 77 (:foreground "lightblue"))
76 (((class color) (background light)) 78 (((class color) (background light))
@@ -78,8 +80,10 @@ to confuse some users sometimes."
78 (t ())) 80 (t ()))
79 "PCL-CVS face used to highlight file names." 81 "PCL-CVS face used to highlight file names."
80 :group 'pcl-cvs) 82 :group 'pcl-cvs)
83;; backward-compatibility alias
84(put 'cvs-filename-face 'face-alias 'cvs-filename)
81 85
82(defface cvs-unknown-face 86(defface cvs-unknown
83 '((((class color) (background dark)) 87 '((((class color) (background dark))
84 (:foreground "red")) 88 (:foreground "red"))
85 (((class color) (background light)) 89 (((class color) (background light))
@@ -87,8 +91,10 @@ to confuse some users sometimes."
87 (t (:slant italic))) 91 (t (:slant italic)))
88 "PCL-CVS face used to highlight unknown file status." 92 "PCL-CVS face used to highlight unknown file status."
89 :group 'pcl-cvs) 93 :group 'pcl-cvs)
94;; backward-compatibility alias
95(put 'cvs-unknown-face 'face-alias 'cvs-unknown)
90 96
91(defface cvs-handled-face 97(defface cvs-handled
92 '((((class color) (background dark)) 98 '((((class color) (background dark))
93 (:foreground "pink")) 99 (:foreground "pink"))
94 (((class color) (background light)) 100 (((class color) (background light))
@@ -96,8 +102,10 @@ to confuse some users sometimes."
96 (t ())) 102 (t ()))
97 "PCL-CVS face used to highlight handled file status." 103 "PCL-CVS face used to highlight handled file status."
98 :group 'pcl-cvs) 104 :group 'pcl-cvs)
105;; backward-compatibility alias
106(put 'cvs-handled-face 'face-alias 'cvs-handled)
99 107
100(defface cvs-need-action-face 108(defface cvs-need-action
101 '((((class color) (background dark)) 109 '((((class color) (background dark))
102 (:foreground "orange")) 110 (:foreground "orange"))
103 (((class color) (background light)) 111 (((class color) (background light))
@@ -105,8 +113,10 @@ to confuse some users sometimes."
105 (t (:slant italic))) 113 (t (:slant italic)))
106 "PCL-CVS face used to highlight status of files needing action." 114 "PCL-CVS face used to highlight status of files needing action."
107 :group 'pcl-cvs) 115 :group 'pcl-cvs)
116;; backward-compatibility alias
117(put 'cvs-need-action-face 'face-alias 'cvs-need-action)
108 118
109(defface cvs-marked-face 119(defface cvs-marked
110 '((((min-colors 88) (class color) (background dark)) 120 '((((min-colors 88) (class color) (background dark))
111 (:foreground "green1" :weight bold)) 121 (:foreground "green1" :weight bold))
112 (((class color) (background dark)) 122 (((class color) (background dark))
@@ -116,14 +126,18 @@ to confuse some users sometimes."
116 (t (:weight bold))) 126 (t (:weight bold)))
117 "PCL-CVS face used to highlight marked file indicator." 127 "PCL-CVS face used to highlight marked file indicator."
118 :group 'pcl-cvs) 128 :group 'pcl-cvs)
129;; backward-compatibility alias
130(put 'cvs-marked-face 'face-alias 'cvs-marked)
119 131
120(defface cvs-msg-face 132(defface cvs-msg
121 '((t (:slant italic))) 133 '((t (:slant italic)))
122 "PCL-CVS face used to highlight CVS messages." 134 "PCL-CVS face used to highlight CVS messages."
123 :group 'pcl-cvs) 135 :group 'pcl-cvs)
136;; backward-compatibility alias
137(put 'cvs-msg-face 'face-alias 'cvs-msg)
124 138
125(defvar cvs-fi-up-to-date-face 'cvs-handled-face) 139(defvar cvs-fi-up-to-date-face 'cvs-handled)
126(defvar cvs-fi-unknown-face 'cvs-unknown-face) 140(defvar cvs-fi-unknown-face 'cvs-unknown)
127(defvar cvs-fi-conflict-face 'font-lock-warning-face) 141(defvar cvs-fi-conflict-face 'font-lock-warning-face)
128 142
129;; There is normally no need to alter the following variable, but if 143;; There is normally no need to alter the following variable, but if
@@ -332,19 +346,17 @@ For use by the cookie package."
332 (case type 346 (case type
333 (DIRCHANGE (concat "In directory " 347 (DIRCHANGE (concat "In directory "
334 (cvs-add-face (cvs-fileinfo->full-name fileinfo) 348 (cvs-add-face (cvs-fileinfo->full-name fileinfo)
335 'cvs-header-face t 349 'cvs-header t 'cvs-goal-column t)
336 'cvs-goal-column t)
337 ":")) 350 ":"))
338 (MESSAGE 351 (MESSAGE
339 (cvs-add-face (format "Message: %s" (cvs-fileinfo->full-log fileinfo)) 352 (cvs-add-face (format "Message: %s" (cvs-fileinfo->full-log fileinfo))
340 'cvs-msg-face)) 353 'cvs-msg))
341 (t 354 (t
342 (let* ((status (if (cvs-fileinfo->marked fileinfo) 355 (let* ((status (if (cvs-fileinfo->marked fileinfo)
343 (cvs-add-face "*" 'cvs-marked-face) 356 (cvs-add-face "*" 'cvs-marked)
344 " ")) 357 " "))
345 (file (cvs-add-face (cvs-fileinfo->pp-name fileinfo) 358 (file (cvs-add-face (cvs-fileinfo->pp-name fileinfo)
346 'cvs-filename-face t 359 'cvs-filename t 'cvs-goal-column t))
347 'cvs-goal-column t))
348 (base (or (cvs-fileinfo->base-rev fileinfo) "")) 360 (base (or (cvs-fileinfo->base-rev fileinfo) ""))
349 (head (cvs-fileinfo->head-rev fileinfo)) 361 (head (cvs-fileinfo->head-rev fileinfo))
350 (type 362 (type
@@ -357,7 +369,7 @@ For use by the cookie package."
357 (downcase (symbol-name type)) 369 (downcase (symbol-name type))
358 "-face")))) 370 "-face"))))
359 (or (and (boundp sym) (symbol-value sym)) 371 (or (and (boundp sym) (symbol-value sym))
360 'cvs-need-action-face)))) 372 'cvs-need-action))))
361 (cvs-add-face str face cvs-status-map))) 373 (cvs-add-face str face cvs-status-map)))
362 (side (or 374 (side (or
363 ;; maybe a subtype 375 ;; maybe a subtype