diff options
| author | Miles Bader | 2005-06-17 05:55:26 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-06-17 05:55:26 +0000 |
| commit | fa735daaabda51ee133fee08f0a72973e39f3a13 (patch) | |
| tree | dd96dd6b79c7312334af0591a3f24d59dd3337ff | |
| parent | 958e68763bd714013e01afcffc3e4a5ad4ddbee6 (diff) | |
| download | emacs-fa735daaabda51ee133fee08f0a72973e39f3a13.tar.gz emacs-fa735daaabda51ee133fee08f0a72973e39f3a13.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-432
Remove "-face" suffix from ediff faces
2005-06-17 Miles Bader <miles@gnu.org>
* lisp/ediff-init.el (ediff-current-diff-A, ediff-current-diff-B)
(ediff-current-diff-C, ediff-current-diff-Ancestor)
(ediff-fine-diff-A, ediff-fine-diff-B, ediff-fine-diff-C)
(ediff-fine-diff-Ancestor, ediff-even-diff-A, ediff-even-diff-B)
(ediff-even-diff-C, ediff-even-diff-Ancestor, ediff-odd-diff-A)
(ediff-odd-diff-B, ediff-odd-diff-C, ediff-odd-diff-Ancestor):
Remove "-face" suffix from face names.
(ediff-current-diff-face-A, ediff-current-diff-face-B)
(ediff-current-diff-face-C, ediff-current-diff-face-Ancestor)
(ediff-fine-diff-face-A, ediff-fine-diff-face-B)
(ediff-fine-diff-face-C, ediff-fine-diff-face-Ancestor)
(ediff-even-diff-face-A, ediff-even-diff-face-B)
(ediff-even-diff-face-C, ediff-even-diff-face-Ancestor)
(ediff-odd-diff-face-A, ediff-odd-diff-face-B)
(ediff-odd-diff-face-C, ediff-odd-diff-face-Ancestor):
New backward-compatibility aliases for renamed faces.
(ediff-current-diff-face-A, ediff-current-diff-face-B)
(ediff-current-diff-face-C, ediff-current-diff-face-Ancestor)
(ediff-fine-diff-face-A, ediff-fine-diff-face-B)
(ediff-fine-diff-face-C, ediff-fine-diff-face-Ancestor)
(ediff-even-diff-face-A, ediff-even-diff-face-B)
(ediff-even-diff-face-C, ediff-even-diff-face-Ancestor)
(ediff-odd-diff-face-A, ediff-odd-diff-face-B)
(ediff-odd-diff-face-C, ediff-odd-diff-face-Ancestor):
Use renamed ediff faces.
| -rw-r--r-- | lisp/ChangeLog | 26 | ||||
| -rw-r--r-- | lisp/ediff-init.el | 184 |
2 files changed, 134 insertions, 76 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 966795f4036..2425b3af8ce 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,31 @@ | |||
| 1 | 2005-06-17 Miles Bader <miles@gnu.org> | 1 | 2005-06-17 Miles Bader <miles@gnu.org> |
| 2 | 2 | ||
| 3 | * ediff-init.el (ediff-current-diff-A, ediff-current-diff-B) | ||
| 4 | (ediff-current-diff-C, ediff-current-diff-Ancestor) | ||
| 5 | (ediff-fine-diff-A, ediff-fine-diff-B, ediff-fine-diff-C) | ||
| 6 | (ediff-fine-diff-Ancestor, ediff-even-diff-A, ediff-even-diff-B) | ||
| 7 | (ediff-even-diff-C, ediff-even-diff-Ancestor, ediff-odd-diff-A) | ||
| 8 | (ediff-odd-diff-B, ediff-odd-diff-C, ediff-odd-diff-Ancestor): | ||
| 9 | Remove "-face" suffix from face names. | ||
| 10 | (ediff-current-diff-face-A, ediff-current-diff-face-B) | ||
| 11 | (ediff-current-diff-face-C, ediff-current-diff-face-Ancestor) | ||
| 12 | (ediff-fine-diff-face-A, ediff-fine-diff-face-B) | ||
| 13 | (ediff-fine-diff-face-C, ediff-fine-diff-face-Ancestor) | ||
| 14 | (ediff-even-diff-face-A, ediff-even-diff-face-B) | ||
| 15 | (ediff-even-diff-face-C, ediff-even-diff-face-Ancestor) | ||
| 16 | (ediff-odd-diff-face-A, ediff-odd-diff-face-B) | ||
| 17 | (ediff-odd-diff-face-C, ediff-odd-diff-face-Ancestor): | ||
| 18 | New backward-compatibility aliases for renamed faces. | ||
| 19 | (ediff-current-diff-face-A, ediff-current-diff-face-B) | ||
| 20 | (ediff-current-diff-face-C, ediff-current-diff-face-Ancestor) | ||
| 21 | (ediff-fine-diff-face-A, ediff-fine-diff-face-B) | ||
| 22 | (ediff-fine-diff-face-C, ediff-fine-diff-face-Ancestor) | ||
| 23 | (ediff-even-diff-face-A, ediff-even-diff-face-B) | ||
| 24 | (ediff-even-diff-face-C, ediff-even-diff-face-Ancestor) | ||
| 25 | (ediff-odd-diff-face-A, ediff-odd-diff-face-B) | ||
| 26 | (ediff-odd-diff-face-C, ediff-odd-diff-face-Ancestor): | ||
| 27 | Use renamed ediff faces. | ||
| 28 | |||
| 3 | * eshell/esh-test.el (eshell-test-ok, eshell-test-failed): | 29 | * eshell/esh-test.el (eshell-test-ok, eshell-test-failed): |
| 4 | Remove "-face" suffix from face names. | 30 | Remove "-face" suffix from face names. |
| 5 | (eshell-test-ok-face, eshell-test-failed-face): | 31 | (eshell-test-ok-face, eshell-test-failed-face): |
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el index 969097b6f76..3933fd760d2 100644 --- a/lisp/ediff-init.el +++ b/lisp/ediff-init.el | |||
| @@ -903,7 +903,7 @@ to temp files when Ediff needs to find fine differences." | |||
| 903 | 903 | ||
| 904 | 904 | ||
| 905 | 905 | ||
| 906 | (defface ediff-current-diff-face-A | 906 | (defface ediff-current-diff-A |
| 907 | (if ediff-emacs-p | 907 | (if ediff-emacs-p |
| 908 | '((((class color) (min-colors 16)) | 908 | '((((class color) (min-colors 16)) |
| 909 | (:foreground "firebrick" :background "pale green")) | 909 | (:foreground "firebrick" :background "pale green")) |
| @@ -915,24 +915,26 @@ to temp files when Ediff needs to find fine differences." | |||
| 915 | (t (:inverse-video t)))) | 915 | (t (:inverse-video t)))) |
| 916 | "Face for highlighting the selected difference in buffer A." | 916 | "Face for highlighting the selected difference in buffer A." |
| 917 | :group 'ediff-highlighting) | 917 | :group 'ediff-highlighting) |
| 918 | ;; backward-compatibility alias | ||
| 919 | (put 'ediff-current-diff-face-A 'face-alias 'ediff-current-diff-A) | ||
| 918 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 920 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 919 | ;; this variable is set to nil, then again to the appropriate face. | 921 | ;; this variable is set to nil, then again to the appropriate face. |
| 920 | (defvar ediff-current-diff-face-A 'ediff-current-diff-face-A | 922 | (defvar ediff-current-diff-face-A 'ediff-current-diff-A |
| 921 | "Face for highlighting the selected difference in buffer A. | 923 | "Face for highlighting the selected difference in buffer A. |
| 922 | DO NOT CHANGE this variable. Instead, use the customization | 924 | DO NOT CHANGE this variable. Instead, use the customization |
| 923 | widget to customize the actual face object `ediff-current-diff-face-A' | 925 | widget to customize the actual face object `ediff-current-diff-A' |
| 924 | this variable represents.") | 926 | this variable represents.") |
| 925 | (ediff-hide-face 'ediff-current-diff-face-A) | 927 | (ediff-hide-face 'ediff-current-diff-A) |
| 926 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. | 928 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. |
| 927 | ;; This means that some user customization may be trashed. | 929 | ;; This means that some user customization may be trashed. |
| 928 | (if (and ediff-xemacs-p | 930 | (if (and ediff-xemacs-p |
| 929 | (ediff-has-face-support-p) | 931 | (ediff-has-face-support-p) |
| 930 | (not (ediff-color-display-p))) | 932 | (not (ediff-color-display-p))) |
| 931 | (copy-face 'modeline 'ediff-current-diff-face-A)) | 933 | (copy-face 'modeline 'ediff-current-diff-A)) |
| 932 | 934 | ||
| 933 | 935 | ||
| 934 | 936 | ||
| 935 | (defface ediff-current-diff-face-B | 937 | (defface ediff-current-diff-B |
| 936 | (if ediff-emacs-p | 938 | (if ediff-emacs-p |
| 937 | '((((class color) (min-colors 16)) | 939 | '((((class color) (min-colors 16)) |
| 938 | (:foreground "DarkOrchid" :background "Yellow")) | 940 | (:foreground "DarkOrchid" :background "Yellow")) |
| @@ -946,23 +948,25 @@ this variable represents.") | |||
| 946 | (t (:inverse-video t)))) | 948 | (t (:inverse-video t)))) |
| 947 | "Face for highlighting the selected difference in buffer B." | 949 | "Face for highlighting the selected difference in buffer B." |
| 948 | :group 'ediff-highlighting) | 950 | :group 'ediff-highlighting) |
| 951 | ;; backward-compatibility alias | ||
| 952 | (put 'ediff-current-diff-face-B 'face-alias 'ediff-current-diff-B) | ||
| 949 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 953 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 950 | ;; this variable is set to nil, then again to the appropriate face. | 954 | ;; this variable is set to nil, then again to the appropriate face. |
| 951 | (defvar ediff-current-diff-face-B 'ediff-current-diff-face-B | 955 | (defvar ediff-current-diff-face-B 'ediff-current-diff-B |
| 952 | "Face for highlighting the selected difference in buffer B. | 956 | "Face for highlighting the selected difference in buffer B. |
| 953 | this variable. Instead, use the customization | 957 | this variable. Instead, use the customization |
| 954 | widget to customize the actual face `ediff-current-diff-face-B' | 958 | widget to customize the actual face `ediff-current-diff-B' |
| 955 | this variable represents.") | 959 | this variable represents.") |
| 956 | (ediff-hide-face 'ediff-current-diff-face-B) | 960 | (ediff-hide-face 'ediff-current-diff-B) |
| 957 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. | 961 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. |
| 958 | ;; This means that some user customization may be trashed. | 962 | ;; This means that some user customization may be trashed. |
| 959 | (if (and ediff-xemacs-p | 963 | (if (and ediff-xemacs-p |
| 960 | (ediff-has-face-support-p) | 964 | (ediff-has-face-support-p) |
| 961 | (not (ediff-color-display-p))) | 965 | (not (ediff-color-display-p))) |
| 962 | (copy-face 'modeline 'ediff-current-diff-face-B)) | 966 | (copy-face 'modeline 'ediff-current-diff-B)) |
| 963 | 967 | ||
| 964 | 968 | ||
| 965 | (defface ediff-current-diff-face-C | 969 | (defface ediff-current-diff-C |
| 966 | (if ediff-emacs-p | 970 | (if ediff-emacs-p |
| 967 | '((((class color) (min-colors 16)) | 971 | '((((class color) (min-colors 16)) |
| 968 | (:foreground "Navy" :background "Pink")) | 972 | (:foreground "Navy" :background "Pink")) |
| @@ -974,23 +978,25 @@ this variable represents.") | |||
| 974 | (t (:inverse-video t)))) | 978 | (t (:inverse-video t)))) |
| 975 | "Face for highlighting the selected difference in buffer C." | 979 | "Face for highlighting the selected difference in buffer C." |
| 976 | :group 'ediff-highlighting) | 980 | :group 'ediff-highlighting) |
| 981 | ;; backward-compatibility alias | ||
| 982 | (put 'ediff-current-diff-face-C 'face-alias 'ediff-current-diff-C) | ||
| 977 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 983 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 978 | ;; this variable is set to nil, then again to the appropriate face. | 984 | ;; this variable is set to nil, then again to the appropriate face. |
| 979 | (defvar ediff-current-diff-face-C 'ediff-current-diff-face-C | 985 | (defvar ediff-current-diff-face-C 'ediff-current-diff-C |
| 980 | "Face for highlighting the selected difference in buffer C. | 986 | "Face for highlighting the selected difference in buffer C. |
| 981 | DO NOT CHANGE this variable. Instead, use the customization | 987 | DO NOT CHANGE this variable. Instead, use the customization |
| 982 | widget to customize the actual face object `ediff-current-diff-face-C' | 988 | widget to customize the actual face object `ediff-current-diff-C' |
| 983 | this variable represents.") | 989 | this variable represents.") |
| 984 | (ediff-hide-face 'ediff-current-diff-face-C) | 990 | (ediff-hide-face 'ediff-current-diff-C) |
| 985 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. | 991 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. |
| 986 | ;; This means that some user customization may be trashed. | 992 | ;; This means that some user customization may be trashed. |
| 987 | (if (and ediff-xemacs-p | 993 | (if (and ediff-xemacs-p |
| 988 | (ediff-has-face-support-p) | 994 | (ediff-has-face-support-p) |
| 989 | (not (ediff-color-display-p))) | 995 | (not (ediff-color-display-p))) |
| 990 | (copy-face 'modeline 'ediff-current-diff-face-C)) | 996 | (copy-face 'modeline 'ediff-current-diff-C)) |
| 991 | 997 | ||
| 992 | 998 | ||
| 993 | (defface ediff-current-diff-face-Ancestor | 999 | (defface ediff-current-diff-Ancestor |
| 994 | (if ediff-emacs-p | 1000 | (if ediff-emacs-p |
| 995 | '((((class color) (min-colors 16)) | 1001 | '((((class color) (min-colors 16)) |
| 996 | (:foreground "Black" :background "VioletRed")) | 1002 | (:foreground "Black" :background "VioletRed")) |
| @@ -1002,23 +1008,25 @@ this variable represents.") | |||
| 1002 | (t (:inverse-video t)))) | 1008 | (t (:inverse-video t)))) |
| 1003 | "Face for highlighting the selected difference in buffer Ancestor." | 1009 | "Face for highlighting the selected difference in buffer Ancestor." |
| 1004 | :group 'ediff-highlighting) | 1010 | :group 'ediff-highlighting) |
| 1011 | ;; backward-compatibility alias | ||
| 1012 | (put 'ediff-current-diff-face-Ancestor 'face-alias 'ediff-current-diff-Ancestor) | ||
| 1005 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1013 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1006 | ;; this variable is set to nil, then again to the appropriate face. | 1014 | ;; this variable is set to nil, then again to the appropriate face. |
| 1007 | (defvar ediff-current-diff-face-Ancestor 'ediff-current-diff-face-Ancestor | 1015 | (defvar ediff-current-diff-face-Ancestor 'ediff-current-diff-Ancestor |
| 1008 | "Face for highlighting the selected difference in buffer Ancestor. | 1016 | "Face for highlighting the selected difference in buffer Ancestor. |
| 1009 | DO NOT CHANGE this variable. Instead, use the customization | 1017 | DO NOT CHANGE this variable. Instead, use the customization |
| 1010 | widget to customize the actual face object `ediff-current-diff-face-Ancestor' | 1018 | widget to customize the actual face object `ediff-current-diff-Ancestor' |
| 1011 | this variable represents.") | 1019 | this variable represents.") |
| 1012 | (ediff-hide-face 'ediff-current-diff-face-Ancestor) | 1020 | (ediff-hide-face 'ediff-current-diff-Ancestor) |
| 1013 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. | 1021 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. |
| 1014 | ;; This means that some user customization may be trashed. | 1022 | ;; This means that some user customization may be trashed. |
| 1015 | (if (and ediff-xemacs-p | 1023 | (if (and ediff-xemacs-p |
| 1016 | (ediff-has-face-support-p) | 1024 | (ediff-has-face-support-p) |
| 1017 | (not (ediff-color-display-p))) | 1025 | (not (ediff-color-display-p))) |
| 1018 | (copy-face 'modeline 'ediff-current-diff-face-Ancestor)) | 1026 | (copy-face 'modeline 'ediff-current-diff-Ancestor)) |
| 1019 | 1027 | ||
| 1020 | 1028 | ||
| 1021 | (defface ediff-fine-diff-face-A | 1029 | (defface ediff-fine-diff-A |
| 1022 | (if ediff-emacs-p | 1030 | (if ediff-emacs-p |
| 1023 | '((((class color) (min-colors 16)) | 1031 | '((((class color) (min-colors 16)) |
| 1024 | (:foreground "Navy" :background "sky blue")) | 1032 | (:foreground "Navy" :background "sky blue")) |
| @@ -1030,16 +1038,18 @@ this variable represents.") | |||
| 1030 | (t (:underline t :stipple "gray3")))) | 1038 | (t (:underline t :stipple "gray3")))) |
| 1031 | "Face for highlighting the refinement of the selected diff in buffer A." | 1039 | "Face for highlighting the refinement of the selected diff in buffer A." |
| 1032 | :group 'ediff-highlighting) | 1040 | :group 'ediff-highlighting) |
| 1041 | ;; backward-compatibility alias | ||
| 1042 | (put 'ediff-fine-diff-face-A 'face-alias 'ediff-fine-diff-A) | ||
| 1033 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1043 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1034 | ;; this variable is set to nil, then again to the appropriate face. | 1044 | ;; this variable is set to nil, then again to the appropriate face. |
| 1035 | (defvar ediff-fine-diff-face-A 'ediff-fine-diff-face-A | 1045 | (defvar ediff-fine-diff-face-A 'ediff-fine-diff-A |
| 1036 | "Face for highlighting the fine differences in buffer A. | 1046 | "Face for highlighting the fine differences in buffer A. |
| 1037 | DO NOT CHANGE this variable. Instead, use the customization | 1047 | DO NOT CHANGE this variable. Instead, use the customization |
| 1038 | widget to customize the actual face object `ediff-fine-diff-face-A' | 1048 | widget to customize the actual face object `ediff-fine-diff-A' |
| 1039 | this variable represents.") | 1049 | this variable represents.") |
| 1040 | (ediff-hide-face 'ediff-fine-diff-face-A) | 1050 | (ediff-hide-face 'ediff-fine-diff-A) |
| 1041 | 1051 | ||
| 1042 | (defface ediff-fine-diff-face-B | 1052 | (defface ediff-fine-diff-B |
| 1043 | (if ediff-emacs-p | 1053 | (if ediff-emacs-p |
| 1044 | '((((class color) (min-colors 16)) | 1054 | '((((class color) (min-colors 16)) |
| 1045 | (:foreground "Black" :background "cyan")) | 1055 | (:foreground "Black" :background "cyan")) |
| @@ -1051,16 +1061,18 @@ this variable represents.") | |||
| 1051 | (t (:underline t :stipple "gray3")))) | 1061 | (t (:underline t :stipple "gray3")))) |
| 1052 | "Face for highlighting the refinement of the selected diff in buffer B." | 1062 | "Face for highlighting the refinement of the selected diff in buffer B." |
| 1053 | :group 'ediff-highlighting) | 1063 | :group 'ediff-highlighting) |
| 1064 | ;; backward-compatibility alias | ||
| 1065 | (put 'ediff-fine-diff-face-B 'face-alias 'ediff-fine-diff-B) | ||
| 1054 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1066 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1055 | ;; this variable is set to nil, then again to the appropriate face. | 1067 | ;; this variable is set to nil, then again to the appropriate face. |
| 1056 | (defvar ediff-fine-diff-face-B 'ediff-fine-diff-face-B | 1068 | (defvar ediff-fine-diff-face-B 'ediff-fine-diff-B |
| 1057 | "Face for highlighting the fine differences in buffer B. | 1069 | "Face for highlighting the fine differences in buffer B. |
| 1058 | DO NOT CHANGE this variable. Instead, use the customization | 1070 | DO NOT CHANGE this variable. Instead, use the customization |
| 1059 | widget to customize the actual face object `ediff-fine-diff-face-B' | 1071 | widget to customize the actual face object `ediff-fine-diff-B' |
| 1060 | this variable represents.") | 1072 | this variable represents.") |
| 1061 | (ediff-hide-face 'ediff-fine-diff-face-B) | 1073 | (ediff-hide-face 'ediff-fine-diff-B) |
| 1062 | 1074 | ||
| 1063 | (defface ediff-fine-diff-face-C | 1075 | (defface ediff-fine-diff-C |
| 1064 | (if ediff-emacs-p | 1076 | (if ediff-emacs-p |
| 1065 | '((((type pc)) | 1077 | '((((type pc)) |
| 1066 | (:foreground "white" :background "Turquoise")) | 1078 | (:foreground "white" :background "Turquoise")) |
| @@ -1077,16 +1089,18 @@ this variable represents.") | |||
| 1077 | (t (:underline t :stipple "gray3")))) | 1089 | (t (:underline t :stipple "gray3")))) |
| 1078 | "Face for highlighting the refinement of the selected diff in buffer C." | 1090 | "Face for highlighting the refinement of the selected diff in buffer C." |
| 1079 | :group 'ediff-highlighting) | 1091 | :group 'ediff-highlighting) |
| 1092 | ;; backward-compatibility alias | ||
| 1093 | (put 'ediff-fine-diff-face-C 'face-alias 'ediff-fine-diff-C) | ||
| 1080 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1094 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1081 | ;; this variable is set to nil, then again to the appropriate face. | 1095 | ;; this variable is set to nil, then again to the appropriate face. |
| 1082 | (defvar ediff-fine-diff-face-C 'ediff-fine-diff-face-C | 1096 | (defvar ediff-fine-diff-face-C 'ediff-fine-diff-C |
| 1083 | "Face for highlighting the fine differences in buffer C. | 1097 | "Face for highlighting the fine differences in buffer C. |
| 1084 | DO NOT CHANGE this variable. Instead, use the customization | 1098 | DO NOT CHANGE this variable. Instead, use the customization |
| 1085 | widget to customize the actual face object `ediff-fine-diff-face-C' | 1099 | widget to customize the actual face object `ediff-fine-diff-C' |
| 1086 | this variable represents.") | 1100 | this variable represents.") |
| 1087 | (ediff-hide-face 'ediff-fine-diff-face-C) | 1101 | (ediff-hide-face 'ediff-fine-diff-C) |
| 1088 | 1102 | ||
| 1089 | (defface ediff-fine-diff-face-Ancestor | 1103 | (defface ediff-fine-diff-Ancestor |
| 1090 | (if ediff-emacs-p | 1104 | (if ediff-emacs-p |
| 1091 | '((((class color) (min-colors 16)) | 1105 | '((((class color) (min-colors 16)) |
| 1092 | (:foreground "Black" :background "Green")) | 1106 | (:foreground "Black" :background "Green")) |
| @@ -1100,14 +1114,16 @@ this variable represents.") | |||
| 1100 | At present, this face is not used and no fine differences are computed for the | 1114 | At present, this face is not used and no fine differences are computed for the |
| 1101 | ancestor buffer." | 1115 | ancestor buffer." |
| 1102 | :group 'ediff-highlighting) | 1116 | :group 'ediff-highlighting) |
| 1117 | ;; backward-compatibility alias | ||
| 1118 | (put 'ediff-fine-diff-face-Ancestor 'face-alias 'ediff-fine-diff-Ancestor) | ||
| 1103 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1119 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1104 | ;; this variable is set to nil, then again to the appropriate face. | 1120 | ;; this variable is set to nil, then again to the appropriate face. |
| 1105 | (defvar ediff-fine-diff-face-Ancestor 'ediff-fine-diff-face-Ancestor | 1121 | (defvar ediff-fine-diff-face-Ancestor 'ediff-fine-diff-Ancestor |
| 1106 | "Face for highlighting the fine differences in buffer Ancestor. | 1122 | "Face for highlighting the fine differences in buffer Ancestor. |
| 1107 | DO NOT CHANGE this variable. Instead, use the customization | 1123 | DO NOT CHANGE this variable. Instead, use the customization |
| 1108 | widget to customize the actual face object `ediff-fine-diff-face-Ancestor' | 1124 | widget to customize the actual face object `ediff-fine-diff-Ancestor' |
| 1109 | this variable represents.") | 1125 | this variable represents.") |
| 1110 | (ediff-hide-face 'ediff-fine-diff-face-Ancestor) | 1126 | (ediff-hide-face 'ediff-fine-diff-Ancestor) |
| 1111 | 1127 | ||
| 1112 | ;; Some installs don't have stipple or Stipple. So, try them in turn. | 1128 | ;; Some installs don't have stipple or Stipple. So, try them in turn. |
| 1113 | (defvar stipple-pixmap | 1129 | (defvar stipple-pixmap |
| @@ -1118,7 +1134,7 @@ this variable represents.") | |||
| 1118 | (locate-library "stipple" t mswindowsx-bitmap-file-path)) "stipple") | 1134 | (locate-library "stipple" t mswindowsx-bitmap-file-path)) "stipple") |
| 1119 | (t "Stipple"))) | 1135 | (t "Stipple"))) |
| 1120 | 1136 | ||
| 1121 | (defface ediff-even-diff-face-A | 1137 | (defface ediff-even-diff-A |
| 1122 | (if ediff-emacs-p | 1138 | (if ediff-emacs-p |
| 1123 | `((((type pc)) | 1139 | `((((type pc)) |
| 1124 | (:foreground "green3" :background "light grey")) | 1140 | (:foreground "green3" :background "light grey")) |
| @@ -1135,16 +1151,18 @@ this variable represents.") | |||
| 1135 | (t (:italic t :stipple ,stipple-pixmap)))) | 1151 | (t (:italic t :stipple ,stipple-pixmap)))) |
| 1136 | "Face for highlighting even-numbered non-current differences in buffer A." | 1152 | "Face for highlighting even-numbered non-current differences in buffer A." |
| 1137 | :group 'ediff-highlighting) | 1153 | :group 'ediff-highlighting) |
| 1154 | ;; backward-compatibility alias | ||
| 1155 | (put 'ediff-even-diff-face-A 'face-alias 'ediff-even-diff-A) | ||
| 1138 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1156 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1139 | ;; this variable is set to nil, then again to the appropriate face. | 1157 | ;; this variable is set to nil, then again to the appropriate face. |
| 1140 | (defvar ediff-even-diff-face-A 'ediff-even-diff-face-A | 1158 | (defvar ediff-even-diff-face-A 'ediff-even-diff-A |
| 1141 | "Face for highlighting even-numbered non-current differences in buffer A. | 1159 | "Face for highlighting even-numbered non-current differences in buffer A. |
| 1142 | DO NOT CHANGE this variable. Instead, use the customization | 1160 | DO NOT CHANGE this variable. Instead, use the customization |
| 1143 | widget to customize the actual face object `ediff-even-diff-face-A' | 1161 | widget to customize the actual face object `ediff-even-diff-A' |
| 1144 | this variable represents.") | 1162 | this variable represents.") |
| 1145 | (ediff-hide-face 'ediff-even-diff-face-A) | 1163 | (ediff-hide-face 'ediff-even-diff-A) |
| 1146 | 1164 | ||
| 1147 | (defface ediff-even-diff-face-B | 1165 | (defface ediff-even-diff-B |
| 1148 | (if ediff-emacs-p | 1166 | (if ediff-emacs-p |
| 1149 | `((((class color) (min-colors 16)) | 1167 | `((((class color) (min-colors 16)) |
| 1150 | (:foreground "White" :background "Grey")) | 1168 | (:foreground "White" :background "Grey")) |
| @@ -1156,16 +1174,18 @@ this variable represents.") | |||
| 1156 | (t (:italic t :stipple ,stipple-pixmap)))) | 1174 | (t (:italic t :stipple ,stipple-pixmap)))) |
| 1157 | "Face for highlighting even-numbered non-current differences in buffer B." | 1175 | "Face for highlighting even-numbered non-current differences in buffer B." |
| 1158 | :group 'ediff-highlighting) | 1176 | :group 'ediff-highlighting) |
| 1177 | ;; backward-compatibility alias | ||
| 1178 | (put 'ediff-even-diff-face-B 'face-alias 'ediff-even-diff-B) | ||
| 1159 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1179 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1160 | ;; this variable is set to nil, then again to the appropriate face. | 1180 | ;; this variable is set to nil, then again to the appropriate face. |
| 1161 | (defvar ediff-even-diff-face-B 'ediff-even-diff-face-B | 1181 | (defvar ediff-even-diff-face-B 'ediff-even-diff-B |
| 1162 | "Face for highlighting even-numbered non-current differences in buffer B. | 1182 | "Face for highlighting even-numbered non-current differences in buffer B. |
| 1163 | DO NOT CHANGE this variable. Instead, use the customization | 1183 | DO NOT CHANGE this variable. Instead, use the customization |
| 1164 | widget to customize the actual face object `ediff-even-diff-face-B' | 1184 | widget to customize the actual face object `ediff-even-diff-B' |
| 1165 | this variable represents.") | 1185 | this variable represents.") |
| 1166 | (ediff-hide-face 'ediff-even-diff-face-B) | 1186 | (ediff-hide-face 'ediff-even-diff-B) |
| 1167 | 1187 | ||
| 1168 | (defface ediff-even-diff-face-C | 1188 | (defface ediff-even-diff-C |
| 1169 | (if ediff-emacs-p | 1189 | (if ediff-emacs-p |
| 1170 | `((((type pc)) | 1190 | `((((type pc)) |
| 1171 | (:foreground "yellow3" :background "light grey")) | 1191 | (:foreground "yellow3" :background "light grey")) |
| @@ -1182,16 +1202,18 @@ this variable represents.") | |||
| 1182 | (t (:italic t :stipple ,stipple-pixmap)))) | 1202 | (t (:italic t :stipple ,stipple-pixmap)))) |
| 1183 | "Face for highlighting even-numbered non-current differences in buffer C." | 1203 | "Face for highlighting even-numbered non-current differences in buffer C." |
| 1184 | :group 'ediff-highlighting) | 1204 | :group 'ediff-highlighting) |
| 1205 | ;; backward-compatibility alias | ||
| 1206 | (put 'ediff-even-diff-face-C 'face-alias 'ediff-even-diff-C) | ||
| 1185 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1207 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1186 | ;; this variable is set to nil, then again to the appropriate face. | 1208 | ;; this variable is set to nil, then again to the appropriate face. |
| 1187 | (defvar ediff-even-diff-face-C 'ediff-even-diff-face-C | 1209 | (defvar ediff-even-diff-face-C 'ediff-even-diff-C |
| 1188 | "Face for highlighting even-numbered non-current differences in buffer C. | 1210 | "Face for highlighting even-numbered non-current differences in buffer C. |
| 1189 | DO NOT CHANGE this variable. Instead, use the customization | 1211 | DO NOT CHANGE this variable. Instead, use the customization |
| 1190 | widget to customize the actual face object `ediff-even-diff-face-C' | 1212 | widget to customize the actual face object `ediff-even-diff-C' |
| 1191 | this variable represents.") | 1213 | this variable represents.") |
| 1192 | (ediff-hide-face 'ediff-even-diff-face-C) | 1214 | (ediff-hide-face 'ediff-even-diff-C) |
| 1193 | 1215 | ||
| 1194 | (defface ediff-even-diff-face-Ancestor | 1216 | (defface ediff-even-diff-Ancestor |
| 1195 | (if ediff-emacs-p | 1217 | (if ediff-emacs-p |
| 1196 | `((((type pc)) | 1218 | `((((type pc)) |
| 1197 | (:foreground "cyan3" :background "light grey")) | 1219 | (:foreground "cyan3" :background "light grey")) |
| @@ -1208,23 +1230,25 @@ this variable represents.") | |||
| 1208 | (t (:italic t :stipple ,stipple-pixmap)))) | 1230 | (t (:italic t :stipple ,stipple-pixmap)))) |
| 1209 | "Face for highlighting even-numbered non-current differences in the ancestor buffer." | 1231 | "Face for highlighting even-numbered non-current differences in the ancestor buffer." |
| 1210 | :group 'ediff-highlighting) | 1232 | :group 'ediff-highlighting) |
| 1233 | ;; backward-compatibility alias | ||
| 1234 | (put 'ediff-even-diff-face-Ancestor 'face-alias 'ediff-even-diff-Ancestor) | ||
| 1211 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1235 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1212 | ;; this variable is set to nil, then again to the appropriate face. | 1236 | ;; this variable is set to nil, then again to the appropriate face. |
| 1213 | (defvar ediff-even-diff-face-Ancestor 'ediff-even-diff-face-Ancestor | 1237 | (defvar ediff-even-diff-face-Ancestor 'ediff-even-diff-Ancestor |
| 1214 | "Face for highlighting even-numbered non-current differences in buffer Ancestor. | 1238 | "Face for highlighting even-numbered non-current differences in buffer Ancestor. |
| 1215 | DO NOT CHANGE this variable. Instead, use the customization | 1239 | DO NOT CHANGE this variable. Instead, use the customization |
| 1216 | widget to customize the actual face object `ediff-even-diff-face-Ancestor' | 1240 | widget to customize the actual face object `ediff-even-diff-Ancestor' |
| 1217 | this variable represents.") | 1241 | this variable represents.") |
| 1218 | (ediff-hide-face 'ediff-even-diff-face-Ancestor) | 1242 | (ediff-hide-face 'ediff-even-diff-Ancestor) |
| 1219 | 1243 | ||
| 1220 | ;; Association between buffer types and even-diff-face symbols | 1244 | ;; Association between buffer types and even-diff-face symbols |
| 1221 | (defconst ediff-even-diff-face-alist | 1245 | (defconst ediff-even-diff-face-alist |
| 1222 | '((A . ediff-even-diff-face-A) | 1246 | '((A . ediff-even-diff-A) |
| 1223 | (B . ediff-even-diff-face-B) | 1247 | (B . ediff-even-diff-B) |
| 1224 | (C . ediff-even-diff-face-C) | 1248 | (C . ediff-even-diff-C) |
| 1225 | (Ancestor . ediff-even-diff-face-Ancestor))) | 1249 | (Ancestor . ediff-even-diff-Ancestor))) |
| 1226 | 1250 | ||
| 1227 | (defface ediff-odd-diff-face-A | 1251 | (defface ediff-odd-diff-A |
| 1228 | (if ediff-emacs-p | 1252 | (if ediff-emacs-p |
| 1229 | '((((type pc)) | 1253 | '((((type pc)) |
| 1230 | (:foreground "green3" :background "gray40")) | 1254 | (:foreground "green3" :background "gray40")) |
| @@ -1239,17 +1263,19 @@ this variable represents.") | |||
| 1239 | (t (:italic t :stipple "gray1")))) | 1263 | (t (:italic t :stipple "gray1")))) |
| 1240 | "Face for highlighting odd-numbered non-current differences in buffer A." | 1264 | "Face for highlighting odd-numbered non-current differences in buffer A." |
| 1241 | :group 'ediff-highlighting) | 1265 | :group 'ediff-highlighting) |
| 1266 | ;; backward-compatibility alias | ||
| 1267 | (put 'ediff-odd-diff-face-A 'face-alias 'ediff-odd-diff-A) | ||
| 1242 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1268 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1243 | ;; this variable is set to nil, then again to the appropriate face. | 1269 | ;; this variable is set to nil, then again to the appropriate face. |
| 1244 | (defvar ediff-odd-diff-face-A 'ediff-odd-diff-face-A | 1270 | (defvar ediff-odd-diff-face-A 'ediff-odd-diff-A |
| 1245 | "Face for highlighting odd-numbered non-current differences in buffer A. | 1271 | "Face for highlighting odd-numbered non-current differences in buffer A. |
| 1246 | DO NOT CHANGE this variable. Instead, use the customization | 1272 | DO NOT CHANGE this variable. Instead, use the customization |
| 1247 | widget to customize the actual face object `ediff-odd-diff-face-A' | 1273 | widget to customize the actual face object `ediff-odd-diff-A' |
| 1248 | this variable represents.") | 1274 | this variable represents.") |
| 1249 | (ediff-hide-face 'ediff-odd-diff-face-A) | 1275 | (ediff-hide-face 'ediff-odd-diff-A) |
| 1250 | 1276 | ||
| 1251 | 1277 | ||
| 1252 | (defface ediff-odd-diff-face-B | 1278 | (defface ediff-odd-diff-B |
| 1253 | (if ediff-emacs-p | 1279 | (if ediff-emacs-p |
| 1254 | '((((type pc)) | 1280 | '((((type pc)) |
| 1255 | (:foreground "White" :background "gray40")) | 1281 | (:foreground "White" :background "gray40")) |
| @@ -1264,16 +1290,18 @@ this variable represents.") | |||
| 1264 | (t (:italic t :stipple "gray1")))) | 1290 | (t (:italic t :stipple "gray1")))) |
| 1265 | "Face for highlighting odd-numbered non-current differences in buffer B." | 1291 | "Face for highlighting odd-numbered non-current differences in buffer B." |
| 1266 | :group 'ediff-highlighting) | 1292 | :group 'ediff-highlighting) |
| 1293 | ;; backward-compatibility alias | ||
| 1294 | (put 'ediff-odd-diff-face-B 'face-alias 'ediff-odd-diff-B) | ||
| 1267 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1295 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1268 | ;; this variable is set to nil, then again to the appropriate face. | 1296 | ;; this variable is set to nil, then again to the appropriate face. |
| 1269 | (defvar ediff-odd-diff-face-B 'ediff-odd-diff-face-B | 1297 | (defvar ediff-odd-diff-face-B 'ediff-odd-diff-B |
| 1270 | "Face for highlighting odd-numbered non-current differences in buffer B. | 1298 | "Face for highlighting odd-numbered non-current differences in buffer B. |
| 1271 | DO NOT CHANGE this variable. Instead, use the customization | 1299 | DO NOT CHANGE this variable. Instead, use the customization |
| 1272 | widget to customize the actual face object `ediff-odd-diff-face-B' | 1300 | widget to customize the actual face object `ediff-odd-diff-B' |
| 1273 | this variable represents.") | 1301 | this variable represents.") |
| 1274 | (ediff-hide-face 'ediff-odd-diff-face-B) | 1302 | (ediff-hide-face 'ediff-odd-diff-B) |
| 1275 | 1303 | ||
| 1276 | (defface ediff-odd-diff-face-C | 1304 | (defface ediff-odd-diff-C |
| 1277 | (if ediff-emacs-p | 1305 | (if ediff-emacs-p |
| 1278 | '((((type pc)) | 1306 | '((((type pc)) |
| 1279 | (:foreground "yellow3" :background "gray40")) | 1307 | (:foreground "yellow3" :background "gray40")) |
| @@ -1288,16 +1316,18 @@ this variable represents.") | |||
| 1288 | (t (:italic t :stipple "gray1")))) | 1316 | (t (:italic t :stipple "gray1")))) |
| 1289 | "Face for highlighting odd-numbered non-current differences in buffer C." | 1317 | "Face for highlighting odd-numbered non-current differences in buffer C." |
| 1290 | :group 'ediff-highlighting) | 1318 | :group 'ediff-highlighting) |
| 1319 | ;; backward-compatibility alias | ||
| 1320 | (put 'ediff-odd-diff-face-C 'face-alias 'ediff-odd-diff-C) | ||
| 1291 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1321 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1292 | ;; this variable is set to nil, then again to the appropriate face. | 1322 | ;; this variable is set to nil, then again to the appropriate face. |
| 1293 | (defvar ediff-odd-diff-face-C 'ediff-odd-diff-face-C | 1323 | (defvar ediff-odd-diff-face-C 'ediff-odd-diff-C |
| 1294 | "Face for highlighting odd-numbered non-current differences in buffer C. | 1324 | "Face for highlighting odd-numbered non-current differences in buffer C. |
| 1295 | DO NOT CHANGE this variable. Instead, use the customization | 1325 | DO NOT CHANGE this variable. Instead, use the customization |
| 1296 | widget to customize the actual face object `ediff-odd-diff-face-C' | 1326 | widget to customize the actual face object `ediff-odd-diff-C' |
| 1297 | this variable represents.") | 1327 | this variable represents.") |
| 1298 | (ediff-hide-face 'ediff-odd-diff-face-C) | 1328 | (ediff-hide-face 'ediff-odd-diff-C) |
| 1299 | 1329 | ||
| 1300 | (defface ediff-odd-diff-face-Ancestor | 1330 | (defface ediff-odd-diff-Ancestor |
| 1301 | (if ediff-emacs-p | 1331 | (if ediff-emacs-p |
| 1302 | '((((class color) (min-colors 16)) | 1332 | '((((class color) (min-colors 16)) |
| 1303 | (:foreground "cyan3" :background "gray40")) | 1333 | (:foreground "cyan3" :background "gray40")) |
| @@ -1309,14 +1339,16 @@ this variable represents.") | |||
| 1309 | (t (:italic t :stipple "gray1")))) | 1339 | (t (:italic t :stipple "gray1")))) |
| 1310 | "Face for highlighting odd-numbered non-current differences in the ancestor buffer." | 1340 | "Face for highlighting odd-numbered non-current differences in the ancestor buffer." |
| 1311 | :group 'ediff-highlighting) | 1341 | :group 'ediff-highlighting) |
| 1342 | ;; backward-compatibility alias | ||
| 1343 | (put 'ediff-odd-diff-face-Ancestor 'face-alias 'ediff-odd-diff-Ancestor) | ||
| 1312 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | 1344 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1313 | ;; this variable is set to nil, then again to the appropriate face. | 1345 | ;; this variable is set to nil, then again to the appropriate face. |
| 1314 | (defvar ediff-odd-diff-face-Ancestor 'ediff-odd-diff-face-Ancestor | 1346 | (defvar ediff-odd-diff-face-Ancestor 'ediff-odd-diff-Ancestor |
| 1315 | "Face for highlighting odd-numbered non-current differences in buffer Ancestor. | 1347 | "Face for highlighting odd-numbered non-current differences in buffer Ancestor. |
| 1316 | DO NOT CHANGE this variable. Instead, use the customization | 1348 | DO NOT CHANGE this variable. Instead, use the customization |
| 1317 | widget to customize the actual face object `ediff-odd-diff-face-Ancestor' | 1349 | widget to customize the actual face object `ediff-odd-diff-Ancestor' |
| 1318 | this variable represents.") | 1350 | this variable represents.") |
| 1319 | (ediff-hide-face 'ediff-odd-diff-face-Ancestor) | 1351 | (ediff-hide-face 'ediff-odd-diff-Ancestor) |
| 1320 | 1352 | ||
| 1321 | ;; Association between buffer types and odd-diff-face symbols | 1353 | ;; Association between buffer types and odd-diff-face symbols |
| 1322 | (defconst ediff-odd-diff-face-alist | 1354 | (defconst ediff-odd-diff-face-alist |
| @@ -1333,13 +1365,13 @@ this variable represents.") | |||
| 1333 | (Ancestor . ediff-fine-diff-face-Ancestor))) | 1365 | (Ancestor . ediff-fine-diff-face-Ancestor))) |
| 1334 | 1366 | ||
| 1335 | ;; Help echo | 1367 | ;; Help echo |
| 1336 | (put 'ediff-fine-diff-face-A 'ediff-help-echo | 1368 | (put 'ediff-fine-diff-A 'ediff-help-echo |
| 1337 | "A `refinement' of the current difference region") | 1369 | "A `refinement' of the current difference region") |
| 1338 | (put 'ediff-fine-diff-face-B 'ediff-help-echo | 1370 | (put 'ediff-fine-diff-B 'ediff-help-echo |
| 1339 | "A `refinement' of the current difference region") | 1371 | "A `refinement' of the current difference region") |
| 1340 | (put 'ediff-fine-diff-face-C 'ediff-help-echo | 1372 | (put 'ediff-fine-diff-C 'ediff-help-echo |
| 1341 | "A `refinement' of the current difference region") | 1373 | "A `refinement' of the current difference region") |
| 1342 | (put 'ediff-fine-diff-face-Ancestor 'ediff-help-echo | 1374 | (put 'ediff-fine-diff-Ancestor 'ediff-help-echo |
| 1343 | "A `refinement' of the current difference region") | 1375 | "A `refinement' of the current difference region") |
| 1344 | 1376 | ||
| 1345 | (add-hook 'ediff-quit-hook 'ediff-cleanup-mess) | 1377 | (add-hook 'ediff-quit-hook 'ediff-cleanup-mess) |