aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-04 15:20:41 +0200
committerLars Ingebrigtsen2019-10-04 15:20:48 +0200
commit8ef09cb30a526f34236f6696d06a2848043685ae (patch)
tree9aa39b5cab931781cf4ae758c07b7e0fee71d1f9
parentf1d9e41ab022358c5086227d5b267f3f35d27666 (diff)
downloademacs-8ef09cb30a526f34236f6696d06a2848043685ae.tar.gz
emacs-8ef09cb30a526f34236f6696d06a2848043685ae.zip
Remove some XEmacs compat code from ediff*.el
* lisp/vc/ediff-diff.el (ediff-goto-word): Ditto. * lisp/vc/ediff-init.el (ediff-has-face-support-p) (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) (ediff-with-syntax-table): Ditto. * lisp/vc/ediff-mult.el (ediff-dir-diffs-buffer-map) (ediff-setup-meta-map, ediff-set-meta-overlay): Ditto. * lisp/vc/ediff-util.el (ediff-setup-keymap) (ediff-toggle-wide-display, ediff-toggle-multiframe) (ediff-toggle-use-toolbar, ediff-really-quit) (ediff-good-frame-under-mouse) (ediff-make-bullet-proof-overlay): Ditto. * lisp/vc/ediff-wind.el (ediff-setup-control-frame) (ediff-refresh-control-frame): Remove XEmacs compat code.
-rw-r--r--lisp/vc/ediff-diff.el2
-rw-r--r--lisp/vc/ediff-init.el402
-rw-r--r--lisp/vc/ediff-mult.el11
-rw-r--r--lisp/vc/ediff-util.el29
-rw-r--r--lisp/vc/ediff-wind.el19
5 files changed, 173 insertions, 290 deletions
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index d22c9399ac1..0c8c89610fb 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -1326,7 +1326,7 @@ arguments to `skip-chars-forward'."
1326 (syntax-tbl ediff-syntax-table)) 1326 (syntax-tbl ediff-syntax-table))
1327 (ediff-with-current-buffer buf 1327 (ediff-with-current-buffer buf
1328 (skip-chars-forward ediff-whitespace) 1328 (skip-chars-forward ediff-whitespace)
1329 (ediff-with-syntax-table syntax-tbl 1329 (with-syntax-table syntax-tbl
1330 (while (> n 1) 1330 (while (> n 1)
1331 (funcall fwd-word-fun) 1331 (funcall fwd-word-fun)
1332 (skip-chars-forward ediff-whitespace) 1332 (skip-chars-forward ediff-whitespace)
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el
index f98a7ed560c..c007d934483 100644
--- a/lisp/vc/ediff-init.el
+++ b/lisp/vc/ediff-init.el
@@ -58,9 +58,7 @@ that Ediff doesn't know about.")
58 (cond ((ediff-window-display-p)) 58 (cond ((ediff-window-display-p))
59 (ediff-force-faces) 59 (ediff-force-faces)
60 ((ediff-color-display-p)) 60 ((ediff-color-display-p))
61 ((featurep 'emacs) (memq (ediff-device-type) '(pc))) 61 (t (memq (ediff-device-type) '(pc)))))
62 ((featurep 'xemacs) (memq (ediff-device-type) '(tty pc)))
63 ))
64 62
65;; toolbar support for emacs hasn't been implemented in ediff 63;; toolbar support for emacs hasn't been implemented in ediff
66(defun ediff-has-toolbar-support-p () 64(defun ediff-has-toolbar-support-p ()
@@ -822,19 +820,15 @@ to temp files in buffer jobs and when Ediff needs to find fine differences."
822 820
823 821
824(defface ediff-current-diff-A 822(defface ediff-current-diff-A
825 (if (featurep 'emacs) 823 '((((class color) (min-colors 88) (background light))
826 '((((class color) (min-colors 88) (background light)) 824 :background "#ffdddd")
827 :background "#ffdddd") 825 (((class color) (min-colors 88) (background dark))
828 (((class color) (min-colors 88) (background dark)) 826 :background "#553333")
829 :background "#553333") 827 (((class color) (min-colors 16))
830 (((class color) (min-colors 16)) 828 (:foreground "firebrick" :background "pale green"))
831 (:foreground "firebrick" :background "pale green")) 829 (((class color))
832 (((class color)) 830 (:foreground "blue3" :background "yellow3"))
833 (:foreground "blue3" :background "yellow3")) 831 (t (:inverse-video t)))
834 (t (:inverse-video t)))
835 '((((type tty)) (:foreground "blue3" :background "yellow3"))
836 (((class color)) (:foreground "firebrick" :background "pale green"))
837 (t (:inverse-video t))))
838 "Face for highlighting the selected difference in buffer A." 832 "Face for highlighting the selected difference in buffer A."
839 :group 'ediff-highlighting) 833 :group 'ediff-highlighting)
840;; An internal variable. Ediff takes the face from here. When unhighlighting, 834;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -855,21 +849,16 @@ this variable represents.")
855 849
856 850
857(defface ediff-current-diff-B 851(defface ediff-current-diff-B
858 (if (featurep 'emacs) 852 '((((class color) (min-colors 88) (background light))
859 '((((class color) (min-colors 88) (background light)) 853 :background "#ddffdd")
860 :background "#ddffdd") 854 (((class color) (min-colors 88) (background dark))
861 (((class color) (min-colors 88) (background dark)) 855 :background "#335533")
862 :background "#335533") 856 (((class color) (min-colors 16))
863 (((class color) (min-colors 16)) 857 (:foreground "DarkOrchid" :background "Yellow"))
864 (:foreground "DarkOrchid" :background "Yellow")) 858 (((class color))
865 (((class color)) 859 (:foreground "magenta3" :background "yellow3"
866 (:foreground "magenta3" :background "yellow3" 860 :weight bold))
867 :weight bold)) 861 (t (:inverse-video t)))
868 (t (:inverse-video t)))
869 '((((type tty)) (:foreground "magenta3" :background "yellow3"
870 :weight bold))
871 (((class color)) (:foreground "DarkOrchid" :background "Yellow"))
872 (t (:inverse-video t))))
873 "Face for highlighting the selected difference in buffer B." 862 "Face for highlighting the selected difference in buffer B."
874 :group 'ediff-highlighting) 863 :group 'ediff-highlighting)
875;; An internal variable. Ediff takes the face from here. When unhighlighting, 864;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -889,19 +878,15 @@ this variable represents.")
889 878
890 879
891(defface ediff-current-diff-C 880(defface ediff-current-diff-C
892 (if (featurep 'emacs) 881 '((((class color) (min-colors 88) (background light))
893 '((((class color) (min-colors 88) (background light)) 882 :background "#ffffaa")
894 :background "#ffffaa") 883 (((class color) (min-colors 88) (background dark))
895 (((class color) (min-colors 88) (background dark)) 884 :background "#888833")
896 :background "#888833") 885 (((class color) (min-colors 16))
897 (((class color) (min-colors 16)) 886 (:foreground "Navy" :background "Pink"))
898 (:foreground "Navy" :background "Pink")) 887 (((class color))
899 (((class color)) 888 (:foreground "cyan3" :background "yellow3" :weight bold))
900 (:foreground "cyan3" :background "yellow3" :weight bold)) 889 (t (:inverse-video t)))
901 (t (:inverse-video t)))
902 '((((type tty)) (:foreground "cyan3" :background "yellow3" :weight bold))
903 (((class color)) (:foreground "Navy" :background "Pink"))
904 (t (:inverse-video t))))
905 "Face for highlighting the selected difference in buffer C." 890 "Face for highlighting the selected difference in buffer C."
906 :group 'ediff-highlighting) 891 :group 'ediff-highlighting)
907;; An internal variable. Ediff takes the face from here. When unhighlighting, 892;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -921,21 +906,17 @@ this variable represents.")
921 906
922 907
923(defface ediff-current-diff-Ancestor 908(defface ediff-current-diff-Ancestor
924 (if (featurep 'emacs) 909 '((((class color) (min-colors 88) (background light))
925 '((((class color) (min-colors 88) (background light)) 910 :background "#cfdeee")
926 :background "#cfdeee") 911 (((class color) (min-colors 88) (background dark))
927 (((class color) (min-colors 88) (background dark)) 912 :background "#004151")
928 :background "#004151") 913 (((class color) (min-colors 16) (background light))
929 (((class color) (min-colors 16) (background light)) 914 :background "#cfdeee")
930 :background "#cfdeee") 915 (((class color) (min-colors 16) (background dark))
931 (((class color) (min-colors 16) (background dark)) 916 :background "#004151")
932 :background "#004151") 917 (((class color))
933 (((class color)) 918 (:foreground "black" :background "magenta3"))
934 (:foreground "black" :background "magenta3")) 919 (t (:inverse-video t)))
935 (t (:inverse-video t)))
936 '((((type tty)) (:foreground "black" :background "magenta3"))
937 (((class color)) (:foreground "Black" :background "VioletRed"))
938 (t (:inverse-video t))))
939 "Face for highlighting the selected difference in buffer Ancestor." 920 "Face for highlighting the selected difference in buffer Ancestor."
940 :group 'ediff-highlighting) 921 :group 'ediff-highlighting)
941;; An internal variable. Ediff takes the face from here. When unhighlighting, 922;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -955,19 +936,15 @@ this variable represents.")
955 936
956 937
957(defface ediff-fine-diff-A 938(defface ediff-fine-diff-A
958 (if (featurep 'emacs) 939 '((((class color) (min-colors 88) (background light))
959 '((((class color) (min-colors 88) (background light)) 940 :background "#ffbbbb")
960 :background "#ffbbbb") 941 (((class color) (min-colors 88) (background dark))
961 (((class color) (min-colors 88) (background dark)) 942 :background "#aa2222")
962 :background "#aa2222") 943 (((class color) (min-colors 16))
963 (((class color) (min-colors 16)) 944 (:foreground "Navy" :background "sky blue"))
964 (:foreground "Navy" :background "sky blue")) 945 (((class color))
965 (((class color)) 946 (:foreground "white" :background "sky blue" :weight bold))
966 (:foreground "white" :background "sky blue" :weight bold)) 947 (t (:underline t :stipple "gray3")))
967 (t (:underline t :stipple "gray3")))
968 '((((type tty)) (:foreground "white" :background "sky blue" :weight bold))
969 (((class color)) (:foreground "Navy" :background "sky blue"))
970 (t (:underline t :stipple "gray3"))))
971 "Face for highlighting the refinement of the selected diff in buffer A." 948 "Face for highlighting the refinement of the selected diff in buffer A."
972 :group 'ediff-highlighting) 949 :group 'ediff-highlighting)
973;; An internal variable. Ediff takes the face from here. When unhighlighting, 950;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -980,19 +957,15 @@ this variable represents.")
980(ediff-hide-face ediff-fine-diff-face-A) 957(ediff-hide-face ediff-fine-diff-face-A)
981 958
982(defface ediff-fine-diff-B 959(defface ediff-fine-diff-B
983 (if (featurep 'emacs) 960 '((((class color) (min-colors 88) (background light))
984 '((((class color) (min-colors 88) (background light)) 961 :background "#aaffaa")
985 :background "#aaffaa") 962 (((class color) (min-colors 88) (background dark))
986 (((class color) (min-colors 88) (background dark)) 963 :background "#22aa22")
987 :background "#22aa22") 964 (((class color) (min-colors 16))
988 (((class color) (min-colors 16)) 965 (:foreground "Black" :background "cyan"))
989 (:foreground "Black" :background "cyan")) 966 (((class color))
990 (((class color)) 967 (:foreground "magenta3" :background "cyan3"))
991 (:foreground "magenta3" :background "cyan3")) 968 (t (:underline t :stipple "gray3")))
992 (t (:underline t :stipple "gray3")))
993 '((((type tty)) (:foreground "magenta3" :background "cyan3"))
994 (((class color)) (:foreground "Black" :background "cyan"))
995 (t (:underline t :stipple "gray3"))))
996 "Face for highlighting the refinement of the selected diff in buffer B." 969 "Face for highlighting the refinement of the selected diff in buffer B."
997 :group 'ediff-highlighting) 970 :group 'ediff-highlighting)
998;; An internal variable. Ediff takes the face from here. When unhighlighting, 971;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1005,24 +978,18 @@ this variable represents.")
1005(ediff-hide-face ediff-fine-diff-face-B) 978(ediff-hide-face ediff-fine-diff-face-B)
1006 979
1007(defface ediff-fine-diff-C 980(defface ediff-fine-diff-C
1008 (if (featurep 'emacs) 981 '((((class color) (min-colors 88) (background light))
1009 '((((class color) (min-colors 88) (background light)) 982 :background "#ffff55")
1010 :background "#ffff55") 983 (((class color) (min-colors 88) (background dark))
1011 (((class color) (min-colors 88) (background dark)) 984 :background "#aaaa22")
1012 :background "#aaaa22") 985 (((type pc))
1013 (((type pc)) 986 (:foreground "white" :background "Turquoise"))
1014 (:foreground "white" :background "Turquoise")) 987 (((class color) (min-colors 16))
1015 (((class color) (min-colors 16)) 988 (:foreground "Black" :background "Turquoise"))
1016 (:foreground "Black" :background "Turquoise")) 989 (((class color))
1017 (((class color)) 990 (:foreground "yellow3" :background "Turquoise"
1018 (:foreground "yellow3" :background "Turquoise" 991 :weight bold))
1019 :weight bold)) 992 (t (:underline t :stipple "gray3")))
1020 (t (:underline t :stipple "gray3")))
1021 '((((type tty)) (:foreground "yellow3" :background "Turquoise"
1022 :weight bold))
1023 (((type pc)) (:foreground "white" :background "Turquoise"))
1024 (((class color)) (:foreground "Black" :background "Turquoise"))
1025 (t (:underline t :stipple "gray3"))))
1026 "Face for highlighting the refinement of the selected diff in buffer C." 993 "Face for highlighting the refinement of the selected diff in buffer C."
1027 :group 'ediff-highlighting) 994 :group 'ediff-highlighting)
1028;; An internal variable. Ediff takes the face from here. When unhighlighting, 995;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1035,21 +1002,17 @@ this variable represents.")
1035(ediff-hide-face ediff-fine-diff-face-C) 1002(ediff-hide-face ediff-fine-diff-face-C)
1036 1003
1037(defface ediff-fine-diff-Ancestor 1004(defface ediff-fine-diff-Ancestor
1038 (if (featurep 'emacs) 1005 '((((class color) (min-colors 88) (background light))
1039 '((((class color) (min-colors 88) (background light)) 1006 :background "#00c5c0")
1040 :background "#00c5c0") 1007 (((class color) (min-colors 88) (background dark))
1041 (((class color) (min-colors 88) (background dark)) 1008 :background "#009591")
1042 :background "#009591") 1009 (((class color) (min-colors 16) (background light))
1043 (((class color) (min-colors 16) (background light)) 1010 :background "#00c5c0")
1044 :background "#00c5c0") 1011 (((class color) (min-colors 16) (background dark))
1045 (((class color) (min-colors 16) (background dark)) 1012 :background "#009591")
1046 :background "#009591") 1013 (((class color))
1047 (((class color)) 1014 (:foreground "red3" :background "green"))
1048 (:foreground "red3" :background "green")) 1015 (t (:underline t :stipple "gray3")))
1049 (t (:underline t :stipple "gray3")))
1050 '((((type tty)) (:foreground "red3" :background "green"))
1051 (((class color)) (:foreground "Black" :background "Green"))
1052 (t (:underline t :stipple "gray3"))))
1053 "Face for highlighting the refinement of the selected diff in the ancestor buffer. 1016 "Face for highlighting the refinement of the selected diff in the ancestor buffer.
1054At present, this face is not used and no fine differences are computed for the 1017At present, this face is not used and no fine differences are computed for the
1055ancestor buffer." 1018ancestor buffer."
@@ -1073,22 +1036,16 @@ this variable represents.")
1073 (t "Stipple"))) 1036 (t "Stipple")))
1074 1037
1075(defface ediff-even-diff-A 1038(defface ediff-even-diff-A
1076 (if (featurep 'emacs) 1039 `((((type pc))
1077 `((((type pc)) 1040 (:foreground "green3" :background "light grey"))
1078 (:foreground "green3" :background "light grey")) 1041 (((class color) (min-colors 88))
1079 (((class color) (min-colors 88)) 1042 (:background "light grey"))
1080 (:background "light grey")) 1043 (((class color) (min-colors 16))
1081 (((class color) (min-colors 16)) 1044 (:foreground "Black" :background "light grey"))
1082 (:foreground "Black" :background "light grey")) 1045 (((class color))
1083 (((class color)) 1046 (:foreground "red3" :background "light grey"
1084 (:foreground "red3" :background "light grey" 1047 :weight bold))
1085 :weight bold)) 1048 (t (:italic t :stipple ,stipple-pixmap)))
1086 (t (:italic t :stipple ,stipple-pixmap)))
1087 `((((type tty)) (:foreground "red3" :background "light grey"
1088 :weight bold))
1089 (((type pc)) (:foreground "green3" :background "light grey"))
1090 (((class color)) (:foreground "Black" :background "light grey"))
1091 (t (:italic t :stipple ,stipple-pixmap))))
1092 "Face for highlighting even-numbered non-current differences in buffer A." 1049 "Face for highlighting even-numbered non-current differences in buffer A."
1093 :group 'ediff-highlighting) 1050 :group 'ediff-highlighting)
1094;; An internal variable. Ediff takes the face from here. When unhighlighting, 1051;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1101,17 +1058,13 @@ this variable represents.")
1101(ediff-hide-face ediff-even-diff-face-A) 1058(ediff-hide-face ediff-even-diff-face-A)
1102 1059
1103(defface ediff-even-diff-B 1060(defface ediff-even-diff-B
1104 (if (featurep 'emacs) 1061 `((((class color) (min-colors 88))
1105 `((((class color) (min-colors 88)) 1062 (:background "Grey"))
1106 (:background "Grey")) 1063 (((class color) (min-colors 16))
1107 (((class color) (min-colors 16)) 1064 (:foreground "White" :background "Grey"))
1108 (:foreground "White" :background "Grey")) 1065 (((class color))
1109 (((class color)) 1066 (:foreground "blue3" :background "Grey" :weight bold))
1110 (:foreground "blue3" :background "Grey" :weight bold)) 1067 (t (:italic t :stipple ,stipple-pixmap)))
1111 (t (:italic t :stipple ,stipple-pixmap)))
1112 `((((type tty)) (:foreground "blue3" :background "Grey" :weight bold))
1113 (((class color)) (:foreground "White" :background "Grey"))
1114 (t (:italic t :stipple ,stipple-pixmap))))
1115 "Face for highlighting even-numbered non-current differences in buffer B." 1068 "Face for highlighting even-numbered non-current differences in buffer B."
1116 :group 'ediff-highlighting) 1069 :group 'ediff-highlighting)
1117;; An internal variable. Ediff takes the face from here. When unhighlighting, 1070;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1124,22 +1077,16 @@ this variable represents.")
1124(ediff-hide-face ediff-even-diff-face-B) 1077(ediff-hide-face ediff-even-diff-face-B)
1125 1078
1126(defface ediff-even-diff-C 1079(defface ediff-even-diff-C
1127 (if (featurep 'emacs) 1080 `((((type pc))
1128 `((((type pc)) 1081 (:foreground "yellow3" :background "light grey"))
1129 (:foreground "yellow3" :background "light grey")) 1082 (((class color) (min-colors 88))
1130 (((class color) (min-colors 88)) 1083 (:background "light grey"))
1131 (:background "light grey")) 1084 (((class color) (min-colors 16))
1132 (((class color) (min-colors 16)) 1085 (:foreground "Black" :background "light grey"))
1133 (:foreground "Black" :background "light grey")) 1086 (((class color))
1134 (((class color)) 1087 (:foreground "yellow3" :background "light grey"
1135 (:foreground "yellow3" :background "light grey" 1088 :weight bold))
1136 :weight bold)) 1089 (t (:italic t :stipple ,stipple-pixmap)))
1137 (t (:italic t :stipple ,stipple-pixmap)))
1138 `((((type tty)) (:foreground "yellow3" :background "light grey"
1139 :weight bold))
1140 (((type pc)) (:foreground "yellow3" :background "light grey"))
1141 (((class color)) (:foreground "Black" :background "light grey"))
1142 (t (:italic t :stipple ,stipple-pixmap))))
1143 "Face for highlighting even-numbered non-current differences in buffer C." 1090 "Face for highlighting even-numbered non-current differences in buffer C."
1144 :group 'ediff-highlighting) 1091 :group 'ediff-highlighting)
1145;; An internal variable. Ediff takes the face from here. When unhighlighting, 1092;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1152,22 +1099,16 @@ this variable represents.")
1152(ediff-hide-face ediff-even-diff-face-C) 1099(ediff-hide-face ediff-even-diff-face-C)
1153 1100
1154(defface ediff-even-diff-Ancestor 1101(defface ediff-even-diff-Ancestor
1155 (if (featurep 'emacs) 1102 `((((type pc))
1156 `((((type pc)) 1103 (:foreground "cyan3" :background "light grey"))
1157 (:foreground "cyan3" :background "light grey")) 1104 (((class color) (min-colors 88))
1158 (((class color) (min-colors 88)) 1105 (:background "Grey"))
1159 (:background "Grey")) 1106 (((class color) (min-colors 16))
1160 (((class color) (min-colors 16)) 1107 (:foreground "White" :background "Grey"))
1161 (:foreground "White" :background "Grey")) 1108 (((class color))
1162 (((class color)) 1109 (:foreground "cyan3" :background "light grey"
1163 (:foreground "cyan3" :background "light grey" 1110 :weight bold))
1164 :weight bold)) 1111 (t (:italic t :stipple ,stipple-pixmap)))
1165 (t (:italic t :stipple ,stipple-pixmap)))
1166 `((((type tty)) (:foreground "cyan3" :background "light grey"
1167 :weight bold))
1168 (((type pc)) (:foreground "cyan3" :background "light grey"))
1169 (((class color)) (:foreground "White" :background "Grey"))
1170 (t (:italic t :stipple ,stipple-pixmap))))
1171 "Face for highlighting even-numbered non-current differences in the ancestor buffer." 1112 "Face for highlighting even-numbered non-current differences in the ancestor buffer."
1172 :group 'ediff-highlighting) 1113 :group 'ediff-highlighting)
1173;; An internal variable. Ediff takes the face from here. When unhighlighting, 1114;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1187,20 +1128,15 @@ this variable represents.")
1187 (Ancestor . ediff-even-diff-Ancestor))) 1128 (Ancestor . ediff-even-diff-Ancestor)))
1188 1129
1189(defface ediff-odd-diff-A 1130(defface ediff-odd-diff-A
1190 (if (featurep 'emacs) 1131 '((((type pc))
1191 '((((type pc)) 1132 (:foreground "green3" :background "gray40"))
1192 (:foreground "green3" :background "gray40")) 1133 (((class color) (min-colors 88))
1193 (((class color) (min-colors 88)) 1134 (:background "Grey"))
1194 (:background "Grey")) 1135 (((class color) (min-colors 16))
1195 (((class color) (min-colors 16)) 1136 (:foreground "White" :background "Grey"))
1196 (:foreground "White" :background "Grey")) 1137 (((class color))
1197 (((class color)) 1138 (:foreground "red3" :background "black" :weight bold))
1198 (:foreground "red3" :background "black" :weight bold)) 1139 (t (:italic t :stipple "gray1")))
1199 (t (:italic t :stipple "gray1")))
1200 '((((type tty)) (:foreground "red3" :background "black" :weight bold))
1201 (((type pc)) (:foreground "green3" :background "gray40"))
1202 (((class color)) (:foreground "White" :background "Grey"))
1203 (t (:italic t :stipple "gray1"))))
1204 "Face for highlighting odd-numbered non-current differences in buffer A." 1140 "Face for highlighting odd-numbered non-current differences in buffer A."
1205 :group 'ediff-highlighting) 1141 :group 'ediff-highlighting)
1206;; An internal variable. Ediff takes the face from here. When unhighlighting, 1142;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1214,20 +1150,15 @@ this variable represents.")
1214 1150
1215 1151
1216(defface ediff-odd-diff-B 1152(defface ediff-odd-diff-B
1217 (if (featurep 'emacs) 1153 '((((type pc))
1218 '((((type pc)) 1154 (:foreground "White" :background "gray40"))
1219 (:foreground "White" :background "gray40")) 1155 (((class color) (min-colors 88))
1220 (((class color) (min-colors 88)) 1156 (:background "light grey"))
1221 (:background "light grey")) 1157 (((class color) (min-colors 16))
1222 (((class color) (min-colors 16)) 1158 (:foreground "Black" :background "light grey"))
1223 (:foreground "Black" :background "light grey")) 1159 (((class color))
1224 (((class color)) 1160 (:foreground "cyan3" :background "black" :weight bold))
1225 (:foreground "cyan3" :background "black" :weight bold)) 1161 (t (:italic t :stipple "gray1")))
1226 (t (:italic t :stipple "gray1")))
1227 '((((type tty)) (:foreground "cyan3" :background "black" :weight bold))
1228 (((type pc)) (:foreground "White" :background "gray40"))
1229 (((class color)) (:foreground "Black" :background "light grey"))
1230 (t (:italic t :stipple "gray1"))))
1231 "Face for highlighting odd-numbered non-current differences in buffer B." 1162 "Face for highlighting odd-numbered non-current differences in buffer B."
1232 :group 'ediff-highlighting) 1163 :group 'ediff-highlighting)
1233;; An internal variable. Ediff takes the face from here. When unhighlighting, 1164;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1240,20 +1171,15 @@ this variable represents.")
1240(ediff-hide-face ediff-odd-diff-face-B) 1171(ediff-hide-face ediff-odd-diff-face-B)
1241 1172
1242(defface ediff-odd-diff-C 1173(defface ediff-odd-diff-C
1243 (if (featurep 'emacs) 1174 '((((type pc))
1244 '((((type pc)) 1175 (:foreground "yellow3" :background "gray40"))
1245 (:foreground "yellow3" :background "gray40")) 1176 (((class color) (min-colors 88))
1246 (((class color) (min-colors 88)) 1177 (:background "Grey"))
1247 (:background "Grey")) 1178 (((class color) (min-colors 16))
1248 (((class color) (min-colors 16)) 1179 (:foreground "White" :background "Grey"))
1249 (:foreground "White" :background "Grey")) 1180 (((class color))
1250 (((class color)) 1181 (:foreground "yellow3" :background "black" :weight bold))
1251 (:foreground "yellow3" :background "black" :weight bold)) 1182 (t (:italic t :stipple "gray1")))
1252 (t (:italic t :stipple "gray1")))
1253 '((((type tty)) (:foreground "yellow3" :background "black" :weight bold))
1254 (((type pc)) (:foreground "yellow3" :background "gray40"))
1255 (((class color)) (:foreground "White" :background "Grey"))
1256 (t (:italic t :stipple "gray1"))))
1257 "Face for highlighting odd-numbered non-current differences in buffer C." 1183 "Face for highlighting odd-numbered non-current differences in buffer C."
1258 :group 'ediff-highlighting) 1184 :group 'ediff-highlighting)
1259;; An internal variable. Ediff takes the face from here. When unhighlighting, 1185;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1266,17 +1192,13 @@ this variable represents.")
1266(ediff-hide-face ediff-odd-diff-face-C) 1192(ediff-hide-face ediff-odd-diff-face-C)
1267 1193
1268(defface ediff-odd-diff-Ancestor 1194(defface ediff-odd-diff-Ancestor
1269 (if (featurep 'emacs) 1195 '((((class color) (min-colors 88))
1270 '((((class color) (min-colors 88)) 1196 (:background "gray40"))
1271 (:background "gray40")) 1197 (((class color) (min-colors 16))
1272 (((class color) (min-colors 16)) 1198 (:foreground "cyan3" :background "gray40"))
1273 (:foreground "cyan3" :background "gray40")) 1199 (((class color))
1274 (((class color)) 1200 (:foreground "green3" :background "black" :weight bold))
1275 (:foreground "green3" :background "black" :weight bold)) 1201 (t (:italic t :stipple "gray1")))
1276 (t (:italic t :stipple "gray1")))
1277 '((((type tty)) (:foreground "green3" :background "black" :weight bold))
1278 (((class color)) (:foreground "cyan3" :background "gray40"))
1279 (t (:italic t :stipple "gray1"))))
1280 "Face for highlighting odd-numbered non-current differences in the ancestor buffer." 1202 "Face for highlighting odd-numbered non-current differences in the ancestor buffer."
1281 :group 'ediff-highlighting) 1203 :group 'ediff-highlighting)
1282;; An internal variable. Ediff takes the face from here. When unhighlighting, 1204;; An internal variable. Ediff takes the face from here. When unhighlighting,
@@ -1778,24 +1700,8 @@ Unless optional argument INPLACE is non-nil, return a new string."
1778 (convert-standard-filename fname) 1700 (convert-standard-filename fname)
1779 fname)) 1701 fname))
1780 1702
1781(if (featurep 'emacs) 1703(define-obsolete-function-alias 'ediff-with-syntax-table
1782 (defalias 'ediff-with-syntax-table 'with-syntax-table) 1704 #'with-syntax-table "27.1")
1783 (if (fboundp 'with-syntax-table)
1784 (defalias 'ediff-with-syntax-table 'with-syntax-table)
1785 ;; stolen from subr.el in emacs 21
1786 (defmacro ediff-with-syntax-table (table &rest body)
1787 (let ((old-table (make-symbol "table"))
1788 (old-buffer (make-symbol "buffer")))
1789 `(let ((,old-table (syntax-table))
1790 (,old-buffer (current-buffer)))
1791 (unwind-protect
1792 (progn
1793 (set-syntax-table (copy-syntax-table ,table))
1794 ,@body)
1795 (save-current-buffer
1796 (set-buffer ,old-buffer)
1797 (set-syntax-table ,old-table))))))))
1798
1799 1705
1800(provide 'ediff-init) 1706(provide 'ediff-init)
1801;;; ediff-init.el ends here 1707;;; ediff-init.el ends here
diff --git a/lisp/vc/ediff-mult.el b/lisp/vc/ediff-mult.el
index 66d14e6b06d..3a869bff3e4 100644
--- a/lisp/vc/ediff-mult.el
+++ b/lisp/vc/ediff-mult.el
@@ -154,8 +154,7 @@ Useful commands (type ? to hide them and free up screen):
154 (define-key map "\C-?" 'previous-line) 154 (define-key map "\C-?" 'previous-line)
155 (define-key map "p" 'previous-line) 155 (define-key map "p" 'previous-line)
156 (define-key map "C" 'ediff-dir-diff-copy-file) 156 (define-key map "C" 'ediff-dir-diff-copy-file)
157 (define-key map (if (featurep 'emacs) [mouse-2] [button2]) 157 (define-key map [mouse-2] 'ediff-dir-diff-copy-file)
158 'ediff-dir-diff-copy-file)
159 (define-key map [delete] 'previous-line) 158 (define-key map [delete] 'previous-line)
160 (define-key map [backspace] 'previous-line) 159 (define-key map [backspace] 'previous-line)
161 map) 160 map)
@@ -433,9 +432,7 @@ Toggled by ediff-toggle-verbose-help-meta-buffer" )
433 432
434 (if ediff-no-emacs-help-in-control-buffer 433 (if ediff-no-emacs-help-in-control-buffer
435 (define-key ediff-meta-buffer-map "\C-h" 'ediff-previous-meta-item)) 434 (define-key ediff-meta-buffer-map "\C-h" 'ediff-previous-meta-item))
436 (if (featurep 'emacs) 435 (define-key ediff-meta-buffer-map [mouse-2] ediff-meta-action-function)
437 (define-key ediff-meta-buffer-map [mouse-2] ediff-meta-action-function)
438 (define-key ediff-meta-buffer-map [button2] ediff-meta-action-function))
439 436
440 (use-local-map ediff-meta-buffer-map) 437 (use-local-map ediff-meta-buffer-map)
441 ;; modify ediff-meta-buffer-map here 438 ;; modify ediff-meta-buffer-map here
@@ -1542,9 +1539,7 @@ Useful commands:
1542(defun ediff-set-meta-overlay (b e prop &optional session-number hidden) 1539(defun ediff-set-meta-overlay (b e prop &optional session-number hidden)
1543 (let (overl) 1540 (let (overl)
1544 (setq overl (ediff-make-overlay b e)) 1541 (setq overl (ediff-make-overlay b e))
1545 (if (featurep 'emacs) 1542 (ediff-overlay-put overl 'mouse-face 'highlight)
1546 (ediff-overlay-put overl 'mouse-face 'highlight)
1547 (ediff-overlay-put overl 'highlight t))
1548 (ediff-overlay-put overl 'ediff-meta-info prop) 1543 (ediff-overlay-put overl 'ediff-meta-info prop)
1549 (ediff-overlay-put overl 'invisible hidden) 1544 (ediff-overlay-put overl 'invisible hidden)
1550 (ediff-overlay-put overl 'follow-link t) 1545 (ediff-overlay-put overl 'follow-link t)
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index ee6631dc3a2..6b2f023a222 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -126,8 +126,7 @@ to invocation.")
126 (setq ediff-mode-map (make-sparse-keymap)) 126 (setq ediff-mode-map (make-sparse-keymap))
127 (suppress-keymap ediff-mode-map) 127 (suppress-keymap ediff-mode-map)
128 128
129 (define-key ediff-mode-map 129 (define-key ediff-mode-map [mouse-2] 'ediff-help-for-quick-help)
130 (if (featurep 'emacs) [mouse-2] [button2]) 'ediff-help-for-quick-help)
131 (define-key ediff-mode-map "\C-m" 'ediff-help-for-quick-help) 130 (define-key ediff-mode-map "\C-m" 'ediff-help-for-quick-help)
132 131
133 (define-key ediff-mode-map "p" 'ediff-previous-difference) 132 (define-key ediff-mode-map "p" 'ediff-previous-difference)
@@ -1267,8 +1266,7 @@ This is especially useful when comparing buffers side-by-side."
1267 (interactive) 1266 (interactive)
1268 (ediff-barf-if-not-control-buffer) 1267 (ediff-barf-if-not-control-buffer)
1269 (or (ediff-window-display-p) 1268 (or (ediff-window-display-p)
1270 (user-error "%sEmacs is not running as a window application" 1269 (user-error "Emacs is not running as a window application"))
1271 (if (featurep 'emacs) "" "X")))
1272 (ediff-recenter 'no-rehighlight) ; make sure buffs are displayed in windows 1270 (ediff-recenter 'no-rehighlight) ; make sure buffs are displayed in windows
1273 (let ((ctl-buf ediff-control-buffer)) 1271 (let ((ctl-buf ediff-control-buffer))
1274 (setq ediff-wide-display-p (not ediff-wide-display-p)) 1272 (setq ediff-wide-display-p (not ediff-wide-display-p))
@@ -1297,8 +1295,7 @@ which see."
1297 (interactive) 1295 (interactive)
1298 (let (window-setup-func) 1296 (let (window-setup-func)
1299 (or (ediff-window-display-p) 1297 (or (ediff-window-display-p)
1300 (user-error "%sEmacs is not running as a window application" 1298 (user-error "Emacs is not running as a window application"))
1301 (if (featurep 'emacs) "" "X")))
1302 1299
1303 (cond ((eq ediff-window-setup-function #'ediff-setup-windows-multiframe) 1300 (cond ((eq ediff-window-setup-function #'ediff-setup-windows-multiframe)
1304 (setq ediff-multiframe nil) 1301 (setq ediff-multiframe nil)
@@ -1344,8 +1341,7 @@ To change the default, set the variable `ediff-use-toolbar-p', which see."
1344 (if (featurep 'ediff-tbar) 1341 (if (featurep 'ediff-tbar)
1345 (progn 1342 (progn
1346 (or (ediff-window-display-p) 1343 (or (ediff-window-display-p)
1347 (user-error "%sEmacs is not running as a window application" 1344 (user-error "Emacs is not running as a window application"))
1348 (if (featurep 'emacs) "" "X")))
1349 (if (ediff-use-toolbar-p) 1345 (if (ediff-use-toolbar-p)
1350 (ediff-kill-bottom-toolbar)) 1346 (ediff-kill-bottom-toolbar))
1351 ;; do this only after killing the toolbar 1347 ;; do this only after killing the toolbar
@@ -2562,10 +2558,7 @@ temporarily reverses the meaning of this variable."
2562 (cond ((ediff-good-frame-under-mouse)) 2558 (cond ((ediff-good-frame-under-mouse))
2563 (t warp-frame))) 2559 (t warp-frame)))
2564 (if (and (ediff-window-display-p) (frame-live-p warp-frame) ediff-grab-mouse) 2560 (if (and (ediff-window-display-p) (frame-live-p warp-frame) ediff-grab-mouse)
2565 (set-mouse-position (if (featurep 'emacs) 2561 (set-mouse-position warp-frame 2 1))
2566 warp-frame
2567 (frame-selected-window warp-frame))
2568 2 1))
2569 2562
2570 (mapc #'funcall after-quit-hook-internal) 2563 (mapc #'funcall after-quit-hook-internal)
2571 )) 2564 ))
@@ -2576,14 +2569,11 @@ temporarily reverses the meaning of this variable."
2576 (let ((frame-or-win (car (mouse-position))) 2569 (let ((frame-or-win (car (mouse-position)))
2577 (buf-name "") 2570 (buf-name "")
2578 frame obj-ok) 2571 frame obj-ok)
2579 (setq obj-ok 2572 (setq obj-ok (frame-live-p frame-or-win))
2580 (if (featurep 'emacs)
2581 (frame-live-p frame-or-win)
2582 (window-live-p frame-or-win)))
2583 (if obj-ok 2573 (if obj-ok
2584 (setq frame (if (featurep 'emacs) frame-or-win (window-frame frame-or-win)) 2574 (setq frame frame-or-win
2585 buf-name 2575 buf-name
2586 (buffer-name (window-buffer (frame-selected-window frame))))) 2576 (buffer-name (window-buffer (frame-selected-window frame)))))
2587 (if (string-match "Minibuf" buf-name) 2577 (if (string-match "Minibuf" buf-name)
2588 nil 2578 nil
2589 frame))) 2579 frame)))
@@ -3830,8 +3820,7 @@ Ediff Control Panel to restore highlighting."
3830 (make-overlay beg end buff nil 'rear-advance))) 3820 (make-overlay beg end buff nil 'rear-advance)))
3831 3821
3832 ;; never detach 3822 ;; never detach
3833 (ediff-overlay-put 3823 (ediff-overlay-put overl 'evaporate nil)
3834 overl (if (featurep 'emacs) 'evaporate 'detachable) nil)
3835 ;; make overlay open-ended 3824 ;; make overlay open-ended
3836 ;; In emacs, it is made open ended at creation time 3825 ;; In emacs, it is made open ended at creation time
3837 (when (featurep 'xemacs) 3826 (when (featurep 'xemacs)
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el
index d4a60a16df1..7ca3941a375 100644
--- a/lisp/vc/ediff-wind.el
+++ b/lisp/vc/ediff-wind.el
@@ -959,7 +959,7 @@ create a new splittable frame if none is found."
959 ediff-control-frame ctl-frame) 959 ediff-control-frame ctl-frame)
960 ;; protect against undefined face-attribute 960 ;; protect against undefined face-attribute
961 (condition-case nil 961 (condition-case nil
962 (if (and (featurep 'emacs) (face-attribute 'mode-line :box)) 962 (if (face-attribute 'mode-line :box)
963 (set-face-attribute 'mode-line ctl-frame :box nil)) 963 (set-face-attribute 'mode-line ctl-frame :box nil))
964 (error))) 964 (error)))
965 965
@@ -1257,18 +1257,11 @@ It assumes that it is called from within the control buffer."
1257 1257
1258 1258
1259(defun ediff-refresh-control-frame () 1259(defun ediff-refresh-control-frame ()
1260 (if (featurep 'emacs) 1260 ;; Set frame/icon titles.
1261 ;; set frame/icon titles for Emacs 1261 (modify-frame-parameters
1262 (modify-frame-parameters 1262 ediff-control-frame
1263 ediff-control-frame 1263 (list (cons 'title (ediff-make-base-title))
1264 (list (cons 'title (ediff-make-base-title)) 1264 (cons 'icon-name (ediff-make-narrow-control-buffer-id)))))
1265 (cons 'icon-name (ediff-make-narrow-control-buffer-id))
1266 ))
1267 ;; set frame/icon titles for XEmacs
1268 (setq frame-title-format (ediff-make-base-title)
1269 frame-icon-title-format (ediff-make-narrow-control-buffer-id))
1270 ;; force an update of the frame title
1271 (modify-frame-parameters ediff-control-frame '(()))))
1272 1265
1273 1266
1274(defun ediff-make-narrow-control-buffer-id (&optional skip-name) 1267(defun ediff-make-narrow-control-buffer-id (&optional skip-name)