aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
authorGlenn Morris2009-09-01 07:24:13 +0000
committerGlenn Morris2009-09-01 07:24:13 +0000
commitc4f6e489aa5c0d3559f442587b32b01cf7dbdb8d (patch)
tree77117e072ab68f0ad7a1039105faaac2368d5429 /lisp/diff-mode.el
parentd80619faefb04b289ea2dfb9d83256d3a61159f6 (diff)
downloademacs-c4f6e489aa5c0d3559f442587b32b01cf7dbdb8d.tar.gz
emacs-c4f6e489aa5c0d3559f442587b32b01cf7dbdb8d.zip
Mark face aliases with "-face" suffix as obsolete.
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el34
1 files changed, 12 insertions, 22 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index cf4947d20fd..56bcde521ac 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1,7 +1,7 @@
1;;; diff-mode.el --- a mode for viewing/editing context diffs 1;;; diff-mode.el --- a mode for viewing/editing context diffs
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,2005, 2006,
4;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2007, 2008, 2009 Free Software Foundation, Inc.
5 5
6;; Author: Stefan Monnier <monnier@iro.umontreal.ca> 6;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
7;; Keywords: convenience patch diff 7;; Keywords: convenience patch diff
@@ -242,8 +242,7 @@ try to refine the current hunk, as well."
242 (t :weight bold)) 242 (t :weight bold))
243 "`diff-mode' face inherited by hunk and index header faces." 243 "`diff-mode' face inherited by hunk and index header faces."
244 :group 'diff-mode) 244 :group 'diff-mode)
245;; backward-compatibility alias 245(define-obsolete-face-alias 'diff-header-face 'diff-header "22.1")
246(put 'diff-header-face 'face-alias 'diff-header)
247(defvar diff-header-face 'diff-header) 246(defvar diff-header-face 'diff-header)
248 247
249(defface diff-file-header 248(defface diff-file-header
@@ -258,40 +257,35 @@ try to refine the current hunk, as well."
258 (t :weight bold)) ; :height 1.3 257 (t :weight bold)) ; :height 1.3
259 "`diff-mode' face used to highlight file header lines." 258 "`diff-mode' face used to highlight file header lines."
260 :group 'diff-mode) 259 :group 'diff-mode)
261;; backward-compatibility alias 260(define-obsolete-face-alias 'diff-file-header-face 'diff-file-header "22.1")
262(put 'diff-file-header-face 'face-alias 'diff-file-header)
263(defvar diff-file-header-face 'diff-file-header) 261(defvar diff-file-header-face 'diff-file-header)
264 262
265(defface diff-index 263(defface diff-index
266 '((t :inherit diff-file-header)) 264 '((t :inherit diff-file-header))
267 "`diff-mode' face used to highlight index header lines." 265 "`diff-mode' face used to highlight index header lines."
268 :group 'diff-mode) 266 :group 'diff-mode)
269;; backward-compatibility alias 267(define-obsolete-face-alias 'diff-index-face 'diff-index "22.1")
270(put 'diff-index-face 'face-alias 'diff-index)
271(defvar diff-index-face 'diff-index) 268(defvar diff-index-face 'diff-index)
272 269
273(defface diff-hunk-header 270(defface diff-hunk-header
274 '((t :inherit diff-header)) 271 '((t :inherit diff-header))
275 "`diff-mode' face used to highlight hunk header lines." 272 "`diff-mode' face used to highlight hunk header lines."
276 :group 'diff-mode) 273 :group 'diff-mode)
277;; backward-compatibility alias 274(define-obsolete-face-alias 'diff-hunk-header-face 'diff-hunk-header "22.1")
278(put 'diff-hunk-header-face 'face-alias 'diff-hunk-header)
279(defvar diff-hunk-header-face 'diff-hunk-header) 275(defvar diff-hunk-header-face 'diff-hunk-header)
280 276
281(defface diff-removed 277(defface diff-removed
282 '((t :inherit diff-changed)) 278 '((t :inherit diff-changed))
283 "`diff-mode' face used to highlight removed lines." 279 "`diff-mode' face used to highlight removed lines."
284 :group 'diff-mode) 280 :group 'diff-mode)
285;; backward-compatibility alias 281(define-obsolete-face-alias 'diff-removed-face 'diff-removed "22.1")
286(put 'diff-removed-face 'face-alias 'diff-removed)
287(defvar diff-removed-face 'diff-removed) 282(defvar diff-removed-face 'diff-removed)
288 283
289(defface diff-added 284(defface diff-added
290 '((t :inherit diff-changed)) 285 '((t :inherit diff-changed))
291 "`diff-mode' face used to highlight added lines." 286 "`diff-mode' face used to highlight added lines."
292 :group 'diff-mode) 287 :group 'diff-mode)
293;; backward-compatibility alias 288(define-obsolete-face-alias 'diff-added-face 'diff-added "22.1")
294(put 'diff-added-face 'face-alias 'diff-added)
295(defvar diff-added-face 'diff-added) 289(defvar diff-added-face 'diff-added)
296 290
297(defface diff-changed 291(defface diff-changed
@@ -301,8 +295,7 @@ try to refine the current hunk, as well."
301 :foreground "yellow" :weight bold :slant italic)) 295 :foreground "yellow" :weight bold :slant italic))
302 "`diff-mode' face used to highlight changed lines." 296 "`diff-mode' face used to highlight changed lines."
303 :group 'diff-mode) 297 :group 'diff-mode)
304;; backward-compatibility alias 298(define-obsolete-face-alias 'diff-changed-face 'diff-changed "22.1")
305(put 'diff-changed-face 'face-alias 'diff-changed)
306(defvar diff-changed-face 'diff-changed) 299(defvar diff-changed-face 'diff-changed)
307 300
308(defface diff-indicator-removed 301(defface diff-indicator-removed
@@ -330,24 +323,21 @@ try to refine the current hunk, as well."
330 '((t :inherit diff-header)) 323 '((t :inherit diff-header))
331 "`diff-mode' face used to highlight function names produced by \"diff -p\"." 324 "`diff-mode' face used to highlight function names produced by \"diff -p\"."
332 :group 'diff-mode) 325 :group 'diff-mode)
333;; backward-compatibility alias 326(define-obsolete-face-alias 'diff-function-face 'diff-function "22.1")
334(put 'diff-function-face 'face-alias 'diff-function)
335(defvar diff-function-face 'diff-function) 327(defvar diff-function-face 'diff-function)
336 328
337(defface diff-context 329(defface diff-context
338 '((((class color grayscale) (min-colors 88)) :inherit shadow)) 330 '((((class color grayscale) (min-colors 88)) :inherit shadow))
339 "`diff-mode' face used to highlight context and other side-information." 331 "`diff-mode' face used to highlight context and other side-information."
340 :group 'diff-mode) 332 :group 'diff-mode)
341;; backward-compatibility alias 333(define-obsolete-face-alias 'diff-context-face 'diff-context "22.1")
342(put 'diff-context-face 'face-alias 'diff-context)
343(defvar diff-context-face 'diff-context) 334(defvar diff-context-face 'diff-context)
344 335
345(defface diff-nonexistent 336(defface diff-nonexistent
346 '((t :inherit diff-file-header)) 337 '((t :inherit diff-file-header))
347 "`diff-mode' face used to highlight nonexistent files in recursive diffs." 338 "`diff-mode' face used to highlight nonexistent files in recursive diffs."
348 :group 'diff-mode) 339 :group 'diff-mode)
349;; backward-compatibility alias 340(define-obsolete-face-alias 'diff-nonexistent-face 'diff-nonexistent "22.1")
350(put 'diff-nonexistent-face 'face-alias 'diff-nonexistent)
351(defvar diff-nonexistent-face 'diff-nonexistent) 341(defvar diff-nonexistent-face 'diff-nonexistent)
352 342
353(defconst diff-yank-handler '(diff-yank-function)) 343(defconst diff-yank-handler '(diff-yank-function))