aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-06-10 07:43:31 +0000
committerMiles Bader2005-06-10 07:43:31 +0000
commit221711eb2335203b863267f915053b5d24dea68e (patch)
tree3cfe334baf6af9c0979ecb45c665789cbb327309
parent541a6d0de2860e20b7e18d8df0d1f5f33b4a1495 (diff)
downloademacs-221711eb2335203b863267f915053b5d24dea68e.tar.gz
emacs-221711eb2335203b863267f915053b5d24dea68e.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-368
Remove "-face" suffix from diff-mode faces 2005-06-10 Miles Bader <miles@gnu.org> * lisp/diff-mode.el (diff-header, diff-file-header, diff-index) (diff-hunk-header, diff-removed, diff-added, diff-changed) (diff-function, diff-context, diff-nonexistent): Remove "-face" suffix from face names. (diff-header-face, diff-file-header-face, diff-index-face) (diff-hunk-header-face, diff-removed-face, diff-added-face) (diff-changed-face, diff-function-face, diff-context-face) (diff-nonexistent-face): New backward-compatibility aliases for renamed faces. (diff-header-face, diff-file-header-face) (diff-index, diff-index-face, diff-hunk-header) (diff-hunk-header-face, diff-removed, diff-removed-face) (diff-added, diff-added-face, diff-changed-face, diff-function) (diff-function-face, diff-context-face, diff-nonexistent) (diff-nonexistent-face): Use renamed diff-mode faces.
-rw-r--r--lisp/ChangeLog17
-rw-r--r--lisp/diff-mode.el72
2 files changed, 63 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ab88f6429be..ff79ba52ba5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,22 @@
12005-06-10 Miles Bader <miles@gnu.org> 12005-06-10 Miles Bader <miles@gnu.org>
2 2
3
4 * diff-mode.el (diff-header, diff-file-header, diff-index)
5 (diff-hunk-header, diff-removed, diff-added, diff-changed)
6 (diff-function, diff-context, diff-nonexistent): Remove "-face"
7 suffix from face names.
8 (diff-header-face, diff-file-header-face, diff-index-face)
9 (diff-hunk-header-face, diff-removed-face, diff-added-face)
10 (diff-changed-face, diff-function-face, diff-context-face)
11 (diff-nonexistent-face): New backward-compatibility aliases for
12 renamed faces.
13 (diff-header-face, diff-file-header-face)
14 (diff-index, diff-index-face, diff-hunk-header)
15 (diff-hunk-header-face, diff-removed, diff-removed-face)
16 (diff-added, diff-added-face, diff-changed-face, diff-function)
17 (diff-function-face, diff-context-face, diff-nonexistent)
18 (diff-nonexistent-face): Use renamed diff-mode faces.
19
3 * progmodes/compile.el (compilation-warning-face) 20 * progmodes/compile.el (compilation-warning-face)
4 (compilation-info-face): Remove "-face" suffix from face names. 21 (compilation-info-face): Remove "-face" suffix from face names.
5 (compilation-warning-face, compilation-info-face): 22 (compilation-warning-face, compilation-info-face):
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 5deb7880bdf..fa8ef2e1565 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -175,7 +175,7 @@ when editing big diffs)."
175;;;; font-lock support 175;;;; font-lock support
176;;;; 176;;;;
177 177
178(defface diff-header-face 178(defface diff-header
179 '((((class color) (min-colors 88) (background light)) 179 '((((class color) (min-colors 88) (background light))
180 :background "grey85") 180 :background "grey85")
181 (((class color) (min-colors 88) (background dark)) 181 (((class color) (min-colors 88) (background dark))
@@ -187,9 +187,11 @@ when editing big diffs)."
187 (t :weight bold)) 187 (t :weight bold))
188 "`diff-mode' face inherited by hunk and index header faces." 188 "`diff-mode' face inherited by hunk and index header faces."
189 :group 'diff-mode) 189 :group 'diff-mode)
190(defvar diff-header-face 'diff-header-face) 190;; backward-compatibility alias
191(put 'diff-header-face 'face-alias 'diff-header)
192(defvar diff-header-face 'diff-header)
191 193
192(defface diff-file-header-face 194(defface diff-file-header
193 '((((class color) (min-colors 88) (background light)) 195 '((((class color) (min-colors 88) (background light))
194 :background "grey70" :weight bold) 196 :background "grey70" :weight bold)
195 (((class color) (min-colors 88) (background dark)) 197 (((class color) (min-colors 88) (background dark))
@@ -201,58 +203,76 @@ when editing big diffs)."
201 (t :weight bold)) ; :height 1.3 203 (t :weight bold)) ; :height 1.3
202 "`diff-mode' face used to highlight file header lines." 204 "`diff-mode' face used to highlight file header lines."
203 :group 'diff-mode) 205 :group 'diff-mode)
204(defvar diff-file-header-face 'diff-file-header-face) 206;; backward-compatibility alias
207(put 'diff-file-header-face 'face-alias 'diff-file-header)
208(defvar diff-file-header-face 'diff-file-header)
205 209
206(defface diff-index-face 210(defface diff-index
207 '((t :inherit diff-file-header-face)) 211 '((t :inherit diff-file-header))
208 "`diff-mode' face used to highlight index header lines." 212 "`diff-mode' face used to highlight index header lines."
209 :group 'diff-mode) 213 :group 'diff-mode)
210(defvar diff-index-face 'diff-index-face) 214;; backward-compatibility alias
215(put 'diff-index-face 'face-alias 'diff-index)
216(defvar diff-index-face 'diff-index)
211 217
212(defface diff-hunk-header-face 218(defface diff-hunk-header
213 '((t :inherit diff-header-face)) 219 '((t :inherit diff-header))
214 "`diff-mode' face used to highlight hunk header lines." 220 "`diff-mode' face used to highlight hunk header lines."
215 :group 'diff-mode) 221 :group 'diff-mode)
216(defvar diff-hunk-header-face 'diff-hunk-header-face) 222;; backward-compatibility alias
223(put 'diff-hunk-header-face 'face-alias 'diff-hunk-header)
224(defvar diff-hunk-header-face 'diff-hunk-header)
217 225
218(defface diff-removed-face 226(defface diff-removed
219 '((t :inherit diff-changed-face)) 227 '((t :inherit diff-changed))
220 "`diff-mode' face used to highlight removed lines." 228 "`diff-mode' face used to highlight removed lines."
221 :group 'diff-mode) 229 :group 'diff-mode)
222(defvar diff-removed-face 'diff-removed-face) 230;; backward-compatibility alias
231(put 'diff-removed-face 'face-alias 'diff-removed)
232(defvar diff-removed-face 'diff-removed)
223 233
224(defface diff-added-face 234(defface diff-added
225 '((t :inherit diff-changed-face)) 235 '((t :inherit diff-changed))
226 "`diff-mode' face used to highlight added lines." 236 "`diff-mode' face used to highlight added lines."
227 :group 'diff-mode) 237 :group 'diff-mode)
228(defvar diff-added-face 'diff-added-face) 238;; backward-compatibility alias
239(put 'diff-added-face 'face-alias 'diff-added)
240(defvar diff-added-face 'diff-added)
229 241
230(defface diff-changed-face 242(defface diff-changed
231 '((((type tty pc) (class color) (background light)) 243 '((((type tty pc) (class color) (background light))
232 :foreground "magenta" :weight bold :slant italic) 244 :foreground "magenta" :weight bold :slant italic)
233 (((type tty pc) (class color) (background dark)) 245 (((type tty pc) (class color) (background dark))
234 :foreground "yellow" :weight bold :slant italic)) 246 :foreground "yellow" :weight bold :slant italic))
235 "`diff-mode' face used to highlight changed lines." 247 "`diff-mode' face used to highlight changed lines."
236 :group 'diff-mode) 248 :group 'diff-mode)
237(defvar diff-changed-face 'diff-changed-face) 249;; backward-compatibility alias
250(put 'diff-changed-face 'face-alias 'diff-changed)
251(defvar diff-changed-face 'diff-changed)
238 252
239(defface diff-function-face 253(defface diff-function
240 '((t :inherit diff-context-face)) 254 '((t :inherit diff-context))
241 "`diff-mode' face used to highlight function names produced by \"diff -p\"." 255 "`diff-mode' face used to highlight function names produced by \"diff -p\"."
242 :group 'diff-mode) 256 :group 'diff-mode)
243(defvar diff-function-face 'diff-function-face) 257;; backward-compatibility alias
258(put 'diff-function-face 'face-alias 'diff-function)
259(defvar diff-function-face 'diff-function)
244 260
245(defface diff-context-face 261(defface diff-context
246 '((t :inherit shadow)) 262 '((t :inherit shadow))
247 "`diff-mode' face used to highlight context and other side-information." 263 "`diff-mode' face used to highlight context and other side-information."
248 :group 'diff-mode) 264 :group 'diff-mode)
249(defvar diff-context-face 'diff-context-face) 265;; backward-compatibility alias
266(put 'diff-context-face 'face-alias 'diff-context)
267(defvar diff-context-face 'diff-context)
250 268
251(defface diff-nonexistent-face 269(defface diff-nonexistent
252 '((t :inherit diff-file-header-face)) 270 '((t :inherit diff-file-header))
253 "`diff-mode' face used to highlight nonexistent files in recursive diffs." 271 "`diff-mode' face used to highlight nonexistent files in recursive diffs."
254 :group 'diff-mode) 272 :group 'diff-mode)
255(defvar diff-nonexistent-face 'diff-nonexistent-face) 273;; backward-compatibility alias
274(put 'diff-nonexistent-face 'face-alias 'diff-nonexistent)
275(defvar diff-nonexistent-face 'diff-nonexistent)
256 276
257(defconst diff-yank-handler '(diff-yank-function)) 277(defconst diff-yank-handler '(diff-yank-function))
258(defun diff-yank-function (text) 278(defun diff-yank-function (text)