diff options
| author | Michael Kifer | 1997-08-09 04:30:41 +0000 |
|---|---|---|
| committer | Michael Kifer | 1997-08-09 04:30:41 +0000 |
| commit | 985d0dad78738e6863337df2cd0997390182380d (patch) | |
| tree | 3ccfcc79bb380aa64dd7e43fd687309084433f48 | |
| parent | 03e88613889a536f59f74e22a41e585212d4f185 (diff) | |
| download | emacs-985d0dad78738e6863337df2cd0997390182380d.tar.gz emacs-985d0dad78738e6863337df2cd0997390182380d.zip | |
new version
| -rw-r--r-- | lisp/ediff-init.el | 870 | ||||
| -rw-r--r-- | lisp/ediff-mult.el | 2 | ||||
| -rw-r--r-- | lisp/ediff.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/viper-init.el | 9 | ||||
| -rw-r--r-- | lisp/emulation/viper-util.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 2 |
6 files changed, 565 insertions, 324 deletions
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el index 30e67232ba1..9ca1400a8cd 100644 --- a/lisp/ediff-init.el +++ b/lisp/ediff-init.el | |||
| @@ -131,6 +131,7 @@ that Ediff doesn't know about.") | |||
| 131 | ) | 131 | ) |
| 132 | )) | 132 | )) |
| 133 | 133 | ||
| 134 | |||
| 134 | ;; A-list is supposed to be of the form (A . symb) (B . symb)...) | 135 | ;; A-list is supposed to be of the form (A . symb) (B . symb)...) |
| 135 | ;; where the first part of any association is a buffer type and the second is | 136 | ;; where the first part of any association is a buffer type and the second is |
| 136 | ;; an appropriate symbol. Given buffer-type, this function returns the | 137 | ;; an appropriate symbol. Given buffer-type, this function returns the |
| @@ -708,30 +709,6 @@ appropriate symbol: `rcs', `pcl-cvs', or `generic-sc' if you so desire." | |||
| 708 | ((memq op '(< <=)) t)))) | 709 | ((memq op '(< <=)) t)))) |
| 709 | 710 | ||
| 710 | 711 | ||
| 711 | ;;;; warn if it is a wrong version of emacs | ||
| 712 | ;;(if (or (ediff-check-version '< 19 35 'emacs) | ||
| 713 | ;; (ediff-check-version '< 19 15 'xemacs)) | ||
| 714 | ;; (progn | ||
| 715 | ;; (with-output-to-temp-buffer ediff-msg-buffer | ||
| 716 | ;; (switch-to-buffer ediff-msg-buffer) | ||
| 717 | ;; (insert | ||
| 718 | ;; (format " | ||
| 719 | ;; | ||
| 720 | ;;This version of Ediff requires | ||
| 721 | ;; | ||
| 722 | ;;\t Emacs 19.35 and higher | ||
| 723 | ;;\t OR | ||
| 724 | ;;\t XEmacs 19.15 and higher | ||
| 725 | ;; | ||
| 726 | ;;It is unlikely to work under Emacs version %s | ||
| 727 | ;;that you are using... " emacs-version)) | ||
| 728 | ;; (if noninteractive | ||
| 729 | ;; () | ||
| 730 | ;; (beep 1) | ||
| 731 | ;; (beep 1) | ||
| 732 | ;; (insert "\n\nType any key to continue...") | ||
| 733 | ;; (ediff-read-event))) | ||
| 734 | ;; (kill-buffer ediff-msg-buffer))) | ||
| 735 | 712 | ||
| 736 | ;; A fix for NeXT Step | 713 | ;; A fix for NeXT Step |
| 737 | ;; Should probably be eliminated in later versions. | 714 | ;; Should probably be eliminated in later versions. |
| @@ -827,35 +804,35 @@ appropriate symbol: `rcs', `pcl-cvs', or `generic-sc' if you so desire." | |||
| 827 | (t "")) ; none | 804 | (t "")) ; none |
| 828 | )) | 805 | )) |
| 829 | 806 | ||
| 830 | (defun ediff-set-face (ground face color) | 807 | ;;(defun ediff-set-face (ground face color) |
| 831 | "Set face foreground/background." | 808 | ;; "Set face foreground/background." |
| 832 | (if (ediff-has-face-support-p) | 809 | ;; (if (ediff-has-face-support-p) |
| 833 | (if (ediff-valid-color-p color) | 810 | ;; (if (ediff-valid-color-p color) |
| 834 | (if (eq ground 'foreground) | 811 | ;; (if (eq ground 'foreground) |
| 835 | (set-face-foreground face color) | 812 | ;; (set-face-foreground face color) |
| 836 | (set-face-background face color)) | 813 | ;; (set-face-background face color)) |
| 837 | (cond ((memq face | 814 | ;; (cond ((memq face |
| 838 | '(ediff-current-diff-face-A | 815 | ;; '(ediff-current-diff-face-A |
| 839 | ediff-current-diff-face-B | 816 | ;; ediff-current-diff-face-B |
| 840 | ediff-current-diff-face-C | 817 | ;; ediff-current-diff-face-C |
| 841 | ediff-current-diff-face-Ancestor)) | 818 | ;; ediff-current-diff-face-Ancestor)) |
| 842 | (copy-face 'highlight face)) | 819 | ;; (copy-face 'highlight face)) |
| 843 | ((memq face | 820 | ;; ((memq face |
| 844 | '(ediff-fine-diff-face-A | 821 | ;; '(ediff-fine-diff-face-A |
| 845 | ediff-fine-diff-face-B | 822 | ;; ediff-fine-diff-face-B |
| 846 | ediff-fine-diff-face-C | 823 | ;; ediff-fine-diff-face-C |
| 847 | ediff-fine-diff-face-Ancestor)) | 824 | ;; ediff-fine-diff-face-Ancestor)) |
| 848 | (copy-face 'secondary-selection face) | 825 | ;; (copy-face 'secondary-selection face) |
| 849 | (set-face-underline-p face t)) | 826 | ;; (set-face-underline-p face t)) |
| 850 | ((memq face | 827 | ;; ((memq face |
| 851 | '(ediff-even-diff-face-A | 828 | ;; '(ediff-even-diff-face-A |
| 852 | ediff-odd-diff-face-A | 829 | ;; ediff-odd-diff-face-A |
| 853 | ediff-even-diff-face-B ediff-odd-diff-face-B | 830 | ;; ediff-even-diff-face-B ediff-odd-diff-face-B |
| 854 | ediff-even-diff-face-C ediff-odd-diff-face-C | 831 | ;; ediff-even-diff-face-C ediff-odd-diff-face-C |
| 855 | ediff-even-diff-face-Ancestor | 832 | ;; ediff-even-diff-face-Ancestor |
| 856 | ediff-odd-diff-face-Ancestor)) | 833 | ;; ediff-odd-diff-face-Ancestor)) |
| 857 | (copy-face 'secondary-selection face)))) | 834 | ;; (copy-face 'secondary-selection face)))) |
| 858 | )) | 835 | ;; )) |
| 859 | 836 | ||
| 860 | (defun ediff-set-face-pixmap (face pixmap) | 837 | (defun ediff-set-face-pixmap (face pixmap) |
| 861 | "Set face pixmap on a monochrome display." | 838 | "Set face pixmap on a monochrome display." |
| @@ -870,216 +847,410 @@ appropriate symbol: `rcs', `pcl-cvs', or `generic-sc' if you so desire." | |||
| 870 | (if (and (ediff-has-face-support-p) ediff-emacs-p) | 847 | (if (and (ediff-has-face-support-p) ediff-emacs-p) |
| 871 | (add-to-list 'facemenu-unlisted-faces face))) | 848 | (add-to-list 'facemenu-unlisted-faces face))) |
| 872 | 849 | ||
| 873 | (defvar ediff-current-diff-face-A | 850 | (defgroup ediff-highlighting nil |
| 874 | (if (ediff-has-face-support-p) | 851 | "Hilighting of difference regions in Ediff" |
| 875 | (progn | 852 | :prefix "ediff-" |
| 876 | (make-face 'ediff-current-diff-face-A) | 853 | :group 'ediff) |
| 877 | (ediff-hide-face 'ediff-current-diff-face-A) | ||
| 878 | (or (face-differs-from-default-p 'ediff-current-diff-face-A) | ||
| 879 | (cond ((ediff-color-display-p) | ||
| 880 | (ediff-set-face | ||
| 881 | 'foreground 'ediff-current-diff-face-A "firebrick") | ||
| 882 | (ediff-set-face | ||
| 883 | 'background 'ediff-current-diff-face-A "pale green")) | ||
| 884 | (t | ||
| 885 | (if ediff-xemacs-p | ||
| 886 | (copy-face 'modeline 'ediff-current-diff-face-A) | ||
| 887 | (copy-face 'highlight 'ediff-current-diff-face-A)) | ||
| 888 | ))) | ||
| 889 | 'ediff-current-diff-face-A)) | ||
| 890 | "Face for highlighting the selected difference in buffer A.") | ||
| 891 | |||
| 892 | (defvar ediff-current-diff-face-B | ||
| 893 | (if (ediff-has-face-support-p) | ||
| 894 | (progn | ||
| 895 | (make-face 'ediff-current-diff-face-B) | ||
| 896 | (ediff-hide-face 'ediff-current-diff-face-B) | ||
| 897 | (or (face-differs-from-default-p 'ediff-current-diff-face-B) | ||
| 898 | (cond ((ediff-color-display-p) | ||
| 899 | (ediff-set-face | ||
| 900 | 'foreground 'ediff-current-diff-face-B "DarkOrchid") | ||
| 901 | (ediff-set-face | ||
| 902 | 'background 'ediff-current-diff-face-B "Yellow")) | ||
| 903 | (t | ||
| 904 | (if ediff-xemacs-p | ||
| 905 | (copy-face 'modeline 'ediff-current-diff-face-B) | ||
| 906 | (copy-face 'highlight 'ediff-current-diff-face-B)) | ||
| 907 | ))) | ||
| 908 | 'ediff-current-diff-face-B)) | ||
| 909 | "Face for highlighting the selected difference in buffer B.") | ||
| 910 | |||
| 911 | 854 | ||
| 912 | (defvar ediff-current-diff-face-C | 855 | ;;(defvar ediff-current-diff-face-A |
| 913 | (if (ediff-has-face-support-p) | 856 | ;; (if (ediff-has-face-support-p) |
| 914 | (progn | 857 | ;; (progn |
| 915 | (make-face 'ediff-current-diff-face-C) | 858 | ;; (make-face 'ediff-current-diff-face-A) |
| 916 | (ediff-hide-face 'ediff-current-diff-face-C) | 859 | ;; (or (face-differs-from-default-p 'ediff-current-diff-face-A) |
| 917 | (or (face-differs-from-default-p 'ediff-current-diff-face-C) | 860 | ;; (cond ((ediff-color-display-p) |
| 918 | (cond ((ediff-color-display-p) | 861 | ;; (ediff-set-face |
| 919 | (ediff-set-face | 862 | ;; 'foreground 'ediff-current-diff-face-A "firebrick") |
| 920 | 'foreground 'ediff-current-diff-face-C "Navy") | 863 | ;; (ediff-set-face |
| 921 | (ediff-set-face | 864 | ;; 'background 'ediff-current-diff-face-A "pale green")) |
| 922 | 'background 'ediff-current-diff-face-C "Pink")) | 865 | ;; (t |
| 923 | (t | 866 | ;; (if ediff-xemacs-p |
| 924 | (if ediff-xemacs-p | 867 | ;; (copy-face 'modeline 'ediff-current-diff-face-A) |
| 925 | (copy-face 'modeline 'ediff-current-diff-face-C) | 868 | ;; (copy-face 'highlight 'ediff-current-diff-face-A)) |
| 926 | (copy-face 'highlight 'ediff-current-diff-face-C)) | 869 | ;; ))) |
| 927 | ))) | 870 | ;; 'ediff-current-diff-face-A)) |
| 928 | 'ediff-current-diff-face-C)) | 871 | ;; "Face for highlighting the selected difference in buffer A.") |
| 929 | "Face for highlighting the selected difference in buffer C.") | 872 | |
| 930 | 873 | (defface ediff-current-diff-face-A | |
| 931 | (defvar ediff-current-diff-face-Ancestor | 874 | '((((class color)) (:foreground "firebrick" :background "pale green")) |
| 932 | (if (ediff-has-face-support-p) | 875 | (t (:inverse-video t))) |
| 933 | (progn | 876 | "Face for highlighting the selected difference in buffer A." |
| 934 | (make-face 'ediff-current-diff-face-Ancestor) | 877 | :group 'ediff-highlighting) |
| 935 | (ediff-hide-face 'ediff-current-diff-face-Ancestor) | 878 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 936 | (or (face-differs-from-default-p 'ediff-current-diff-face-Ancestor) | 879 | ;; this variable is set to nil, then again to the appropriate face. |
| 937 | (copy-face | 880 | (defvar ediff-current-diff-face-A 'ediff-current-diff-face-A) |
| 938 | 'ediff-current-diff-face-C 'ediff-current-diff-face-Ancestor)) | 881 | (ediff-hide-face 'ediff-current-diff-face-A) |
| 939 | 'ediff-current-diff-face-Ancestor)) | 882 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. |
| 940 | "Face for highlighting the selected difference in the ancestor buffer.") | 883 | ;; This means that some user customization may be trashed. |
| 941 | 884 | (if (and ediff-xemacs-p | |
| 942 | (defvar ediff-fine-diff-pixmap "gray3" | 885 | (ediff-has-face-support-p) |
| 943 | "Pixmap to use for highlighting fine differences.") | 886 | (not (ediff-color-display-p))) |
| 944 | (defvar ediff-odd-diff-pixmap "gray1" | 887 | (copy-face 'modeline 'ediff-current-diff-face-A)) |
| 945 | "Pixmap to use for highlighting odd differences.") | 888 | |
| 946 | (defvar ediff-even-diff-pixmap "Stipple" | 889 | |
| 947 | "Pixmap to use for highlighting even differences.") | 890 | |
| 948 | 891 | ;;(defvar ediff-current-diff-face-B | |
| 949 | (defvar ediff-fine-diff-face-A | 892 | ;; (if (ediff-has-face-support-p) |
| 950 | (if (ediff-has-face-support-p) | 893 | ;; (progn |
| 951 | (progn | 894 | ;; (make-face 'ediff-current-diff-face-B) |
| 952 | (make-face 'ediff-fine-diff-face-A) | 895 | ;; (or (face-differs-from-default-p 'ediff-current-diff-face-B) |
| 953 | (ediff-hide-face 'ediff-fine-diff-face-A) | 896 | ;; (cond ((ediff-color-display-p) |
| 954 | (or (face-differs-from-default-p 'ediff-fine-diff-face-A) | 897 | ;; (ediff-set-face |
| 955 | (cond ((ediff-color-display-p) | 898 | ;; 'foreground 'ediff-current-diff-face-B "DarkOrchid") |
| 956 | (ediff-set-face 'foreground 'ediff-fine-diff-face-A | 899 | ;; (ediff-set-face |
| 957 | "Navy") | 900 | ;; 'background 'ediff-current-diff-face-B "Yellow")) |
| 958 | (ediff-set-face 'background 'ediff-fine-diff-face-A | 901 | ;; (t |
| 959 | "sky blue")) | 902 | ;; (if ediff-xemacs-p |
| 960 | (t | 903 | ;; (copy-face 'modeline 'ediff-current-diff-face-B) |
| 961 | (set-face-underline-p 'ediff-fine-diff-face-A t) | 904 | ;; (copy-face 'highlight 'ediff-current-diff-face-B)) |
| 962 | (ediff-set-face-pixmap 'ediff-fine-diff-face-A | 905 | ;; ))) |
| 963 | ediff-fine-diff-pixmap) | 906 | ;; 'ediff-current-diff-face-B)) |
| 964 | ))) | 907 | ;; "Face for highlighting the selected difference in buffer B.") |
| 965 | 'ediff-fine-diff-face-A)) | ||
| 966 | "Face for highlighting the refinement of the selected diff in buffer A.") | ||
| 967 | |||
| 968 | (defvar ediff-fine-diff-face-B | ||
| 969 | (if (ediff-has-face-support-p) | ||
| 970 | (progn | ||
| 971 | (make-face 'ediff-fine-diff-face-B) | ||
| 972 | (ediff-hide-face 'ediff-fine-diff-face-B) | ||
| 973 | (or (face-differs-from-default-p 'ediff-fine-diff-face-B) | ||
| 974 | (cond ((ediff-color-display-p) | ||
| 975 | (ediff-set-face 'foreground 'ediff-fine-diff-face-B "Black") | ||
| 976 | (ediff-set-face 'background 'ediff-fine-diff-face-B "cyan")) | ||
| 977 | (t | ||
| 978 | (set-face-underline-p 'ediff-fine-diff-face-B t) | ||
| 979 | (ediff-set-face-pixmap 'ediff-fine-diff-face-B | ||
| 980 | ediff-fine-diff-pixmap) | ||
| 981 | ))) | ||
| 982 | 'ediff-fine-diff-face-B)) | ||
| 983 | "Face for highlighting the refinement of the selected diff in buffer B.") | ||
| 984 | 908 | ||
| 985 | (defvar ediff-fine-diff-face-C | 909 | (defface ediff-current-diff-face-B |
| 986 | (if (ediff-has-face-support-p) | 910 | '((((class color)) (:foreground "DarkOrchid" :background "Yellow")) |
| 987 | (progn | 911 | (t (:inverse-video t))) |
| 988 | (make-face 'ediff-fine-diff-face-C) | 912 | "Face for highlighting the selected difference in buffer B." |
| 989 | (ediff-hide-face 'ediff-fine-diff-face-C) | 913 | :group 'ediff-highlighting) |
| 990 | (or (face-differs-from-default-p 'ediff-fine-diff-face-C) | 914 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 991 | (cond ((ediff-color-display-p) | 915 | ;; this variable is set to nil, then again to the appropriate face. |
| 992 | (ediff-set-face 'foreground 'ediff-fine-diff-face-C "black") | 916 | (defvar ediff-current-diff-face-B 'ediff-current-diff-face-B) |
| 993 | (ediff-set-face | 917 | (ediff-hide-face 'ediff-current-diff-face-B) |
| 994 | 'background 'ediff-fine-diff-face-C "Turquoise")) | 918 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. |
| 995 | (t | 919 | ;; This means that some user customization may be trashed. |
| 996 | (set-face-underline-p 'ediff-fine-diff-face-C t) | 920 | (if (and ediff-xemacs-p |
| 997 | (ediff-set-face-pixmap 'ediff-fine-diff-face-C | 921 | (ediff-has-face-support-p) |
| 998 | ediff-fine-diff-pixmap) | 922 | (not (ediff-color-display-p))) |
| 999 | ))) | 923 | (copy-face 'modeline 'ediff-current-diff-face-B)) |
| 1000 | 'ediff-fine-diff-face-C)) | 924 | |
| 1001 | "Face for highlighting the refinement of the selected diff in buffer C.") | 925 | ;;(defvar ediff-current-diff-face-C |
| 1002 | 926 | ;; (if (ediff-has-face-support-p) | |
| 1003 | (defvar ediff-fine-diff-face-Ancestor | 927 | ;; (progn |
| 1004 | (if (ediff-has-face-support-p) | 928 | ;; (make-face 'ediff-current-diff-face-C) |
| 1005 | (progn | 929 | ;; (or (face-differs-from-default-p 'ediff-current-diff-face-C) |
| 1006 | (make-face 'ediff-fine-diff-face-Ancestor) | 930 | ;; (cond ((ediff-color-display-p) |
| 1007 | (ediff-hide-face 'ediff-fine-diff-face-Ancestor) | 931 | ;; (ediff-set-face |
| 1008 | (or (face-differs-from-default-p 'ediff-fine-diff-face-Ancestor) | 932 | ;; 'foreground 'ediff-current-diff-face-C "Navy") |
| 1009 | (progn | 933 | ;; (ediff-set-face |
| 1010 | (copy-face | 934 | ;; 'background 'ediff-current-diff-face-C "Pink")) |
| 1011 | 'ediff-fine-diff-face-C 'ediff-fine-diff-face-Ancestor) | 935 | ;; (t |
| 1012 | (ediff-set-face-pixmap 'ediff-fine-diff-face-Ancestor | 936 | ;; (if ediff-xemacs-p |
| 1013 | ediff-fine-diff-pixmap)) | 937 | ;; (copy-face 'modeline 'ediff-current-diff-face-C) |
| 1014 | ))) | 938 | ;; (copy-face 'highlight 'ediff-current-diff-face-C)) |
| 1015 | "Face highlighting refinements of the selected diff in ancestor buffer. | 939 | ;; ))) |
| 1016 | Presently, this is not used, as difference regions are not refined in the | 940 | ;; 'ediff-current-diff-face-C)) |
| 1017 | ancestor buffer.") | 941 | ;; "Face for highlighting the selected difference in buffer C.") |
| 942 | |||
| 943 | (defface ediff-current-diff-face-C | ||
| 944 | '((((class color)) (:foreground "Navy" :background "Pink")) | ||
| 945 | (t (:inverse-video t))) | ||
| 946 | "Face for highlighting the selected difference in buffer C." | ||
| 947 | :group 'ediff-highlighting) | ||
| 948 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 949 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 950 | (defvar ediff-current-diff-face-C 'ediff-current-diff-face-C) | ||
| 951 | (ediff-hide-face 'ediff-current-diff-face-C) | ||
| 952 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. | ||
| 953 | ;; This means that some user customization may be trashed. | ||
| 954 | (if (and ediff-xemacs-p | ||
| 955 | (ediff-has-face-support-p) | ||
| 956 | (not (ediff-color-display-p))) | ||
| 957 | (copy-face 'modeline 'ediff-current-diff-face-C)) | ||
| 958 | |||
| 959 | ;;(defvar ediff-current-diff-face-Ancestor | ||
| 960 | ;; (if (ediff-has-face-support-p) | ||
| 961 | ;; (progn | ||
| 962 | ;; (make-face 'ediff-current-diff-face-Ancestor) | ||
| 963 | ;; (or (face-differs-from-default-p 'ediff-current-diff-face-Ancestor) | ||
| 964 | ;; (copy-face | ||
| 965 | ;; 'ediff-current-diff-face-C 'ediff-current-diff-face-Ancestor)) | ||
| 966 | ;; 'ediff-current-diff-face-Ancestor)) | ||
| 967 | ;; "Face for highlighting the selected difference in the ancestor buffer.") | ||
| 968 | |||
| 969 | (defface ediff-current-diff-face-Ancestor | ||
| 970 | '((((class color)) (:foreground "Black" :background "VioletRed")) | ||
| 971 | (t (:inverse-video t))) | ||
| 972 | "Face for highlighting the selected difference in buffer Ancestor." | ||
| 973 | :group 'ediff-highlighting) | ||
| 974 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 975 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 976 | (defvar ediff-current-diff-face-Ancestor 'ediff-current-diff-face-Ancestor) | ||
| 977 | (ediff-hide-face 'ediff-current-diff-face-Ancestor) | ||
| 978 | ;; Until custom.el for XEmacs starts supporting :inverse-video we do this. | ||
| 979 | ;; This means that some user customization may be trashed. | ||
| 980 | (if (and ediff-xemacs-p | ||
| 981 | (ediff-has-face-support-p) | ||
| 982 | (not (ediff-color-display-p))) | ||
| 983 | (copy-face 'modeline 'ediff-current-diff-face-Ancestor)) | ||
| 984 | |||
| 985 | ;;(defvar ediff-fine-diff-pixmap "gray3" | ||
| 986 | ;; "Pixmap to use for highlighting fine differences.") | ||
| 987 | ;;(defvar ediff-odd-diff-pixmap "gray1" | ||
| 988 | ;; "Pixmap to use for highlighting odd differences.") | ||
| 989 | ;;(defvar ediff-even-diff-pixmap "Stipple" | ||
| 990 | ;; "Pixmap to use for highlighting even differences.") | ||
| 991 | |||
| 992 | ;;(defvar ediff-fine-diff-face-A | ||
| 993 | ;; (if (ediff-has-face-support-p) | ||
| 994 | ;; (progn | ||
| 995 | ;; (make-face 'ediff-fine-diff-face-A) | ||
| 996 | ;; (or (face-differs-from-default-p 'ediff-fine-diff-face-A) | ||
| 997 | ;; (cond ((ediff-color-display-p) | ||
| 998 | ;; (ediff-set-face 'foreground 'ediff-fine-diff-face-A | ||
| 999 | ;; "Navy") | ||
| 1000 | ;; (ediff-set-face 'background 'ediff-fine-diff-face-A | ||
| 1001 | ;; "sky blue")) | ||
| 1002 | ;; (t | ||
| 1003 | ;; (set-face-underline-p 'ediff-fine-diff-face-A t) | ||
| 1004 | ;; (ediff-set-face-pixmap 'ediff-fine-diff-face-A | ||
| 1005 | ;; ediff-fine-diff-pixmap) | ||
| 1006 | ;; ))) | ||
| 1007 | ;; 'ediff-fine-diff-face-A)) | ||
| 1008 | ;; "Face for highlighting the refinement of the selected diff in buffer A.") | ||
| 1009 | |||
| 1010 | |||
| 1011 | (defface ediff-fine-diff-face-A | ||
| 1012 | '((((class color)) (:foreground "Navy" :background "sky blue")) | ||
| 1013 | (t (:underline t :stipple "gray3"))) | ||
| 1014 | "Face for highlighting the refinement of the selected diff in buffer A." | ||
| 1015 | :group 'ediff-highlighting) | ||
| 1016 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1017 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1018 | (defvar ediff-fine-diff-face-A 'ediff-fine-diff-face-A) | ||
| 1019 | (ediff-hide-face 'ediff-fine-diff-face-A) | ||
| 1020 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1021 | ;; This means that some use customization may be trashed. | ||
| 1022 | (if (and ediff-xemacs-p | ||
| 1023 | (ediff-has-face-support-p) | ||
| 1024 | (not (ediff-color-display-p))) | ||
| 1025 | (ediff-set-face-pixmap 'ediff-fine-diff-face-A "gray3")) | ||
| 1026 | |||
| 1027 | ;;(defvar ediff-fine-diff-face-B | ||
| 1028 | ;; (if (ediff-has-face-support-p) | ||
| 1029 | ;; (progn | ||
| 1030 | ;; (make-face 'ediff-fine-diff-face-B) | ||
| 1031 | ;; (or (face-differs-from-default-p 'ediff-fine-diff-face-B) | ||
| 1032 | ;; (cond ((ediff-color-display-p) | ||
| 1033 | ;; (ediff-set-face 'foreground 'ediff-fine-diff-face-B "Black") | ||
| 1034 | ;; (ediff-set-face 'background 'ediff-fine-diff-face-B "cyan")) | ||
| 1035 | ;; (t | ||
| 1036 | ;; (set-face-underline-p 'ediff-fine-diff-face-B t) | ||
| 1037 | ;; (ediff-set-face-pixmap 'ediff-fine-diff-face-B | ||
| 1038 | ;; ediff-fine-diff-pixmap) | ||
| 1039 | ;; ))) | ||
| 1040 | ;; 'ediff-fine-diff-face-B)) | ||
| 1041 | ;; "Face for highlighting the refinement of the selected diff in buffer B.") | ||
| 1042 | |||
| 1043 | (defface ediff-fine-diff-face-B | ||
| 1044 | '((((class color)) (:foreground "Black" :background "cyan")) | ||
| 1045 | (t (:underline t :stipple "gray3"))) | ||
| 1046 | "Face for highlighting the refinement of the selected diff in buffer B." | ||
| 1047 | :group 'ediff-highlighting) | ||
| 1048 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1049 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1050 | (defvar ediff-fine-diff-face-B 'ediff-fine-diff-face-B) | ||
| 1051 | (ediff-hide-face 'ediff-fine-diff-face-B) | ||
| 1052 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1053 | ;; This means that some use customization may be trashed. | ||
| 1054 | (if (and ediff-xemacs-p | ||
| 1055 | (ediff-has-face-support-p) | ||
| 1056 | (not (ediff-color-display-p))) | ||
| 1057 | (ediff-set-face-pixmap 'ediff-fine-diff-face-B "gray3")) | ||
| 1018 | 1058 | ||
| 1019 | (defvar ediff-even-diff-face-A | 1059 | ;;(defvar ediff-fine-diff-face-C |
| 1020 | (if (ediff-has-face-support-p) | 1060 | ;; (if (ediff-has-face-support-p) |
| 1021 | (progn | 1061 | ;; (progn |
| 1022 | (make-face 'ediff-even-diff-face-A) | 1062 | ;; (make-face 'ediff-fine-diff-face-C) |
| 1023 | (ediff-hide-face 'ediff-even-diff-face-A) | 1063 | ;; (or (face-differs-from-default-p 'ediff-fine-diff-face-C) |
| 1024 | (or (face-differs-from-default-p 'ediff-even-diff-face-A) | 1064 | ;; (cond ((ediff-color-display-p) |
| 1025 | (cond ((ediff-color-display-p) | 1065 | ;; (ediff-set-face 'foreground 'ediff-fine-diff-face-C "black") |
| 1026 | (ediff-set-face | 1066 | ;; (ediff-set-face |
| 1027 | 'foreground 'ediff-even-diff-face-A "black") | 1067 | ;; 'background 'ediff-fine-diff-face-C "Turquoise")) |
| 1028 | (ediff-set-face | 1068 | ;; (t |
| 1029 | 'background 'ediff-even-diff-face-A "light grey")) | 1069 | ;; (set-face-underline-p 'ediff-fine-diff-face-C t) |
| 1030 | (t | 1070 | ;; (ediff-set-face-pixmap 'ediff-fine-diff-face-C |
| 1031 | (copy-face 'italic 'ediff-even-diff-face-A) | 1071 | ;; ediff-fine-diff-pixmap) |
| 1032 | (ediff-set-face-pixmap 'ediff-even-diff-face-A | 1072 | ;; ))) |
| 1033 | ediff-even-diff-pixmap) | 1073 | ;; 'ediff-fine-diff-face-C)) |
| 1034 | ))) | 1074 | ;; "Face for highlighting the refinement of the selected diff in buffer C.") |
| 1035 | 'ediff-even-diff-face-A)) | 1075 | |
| 1036 | "Face used to highlight even-numbered differences in buffer A.") | 1076 | (defface ediff-fine-diff-face-C |
| 1077 | '((((class color)) (:foreground "Black" :background "Turquoise")) | ||
| 1078 | (t (:underline t :stipple "gray3"))) | ||
| 1079 | "Face for highlighting the refinement of the selected diff in buffer C." | ||
| 1080 | :group 'ediff-highlighting) | ||
| 1081 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1082 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1083 | (defvar ediff-fine-diff-face-C 'ediff-fine-diff-face-C) | ||
| 1084 | (ediff-hide-face 'ediff-fine-diff-face-C) | ||
| 1085 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1086 | ;; This means that some use customization may be trashed. | ||
| 1087 | (if (and ediff-xemacs-p | ||
| 1088 | (ediff-has-face-support-p) | ||
| 1089 | (not (ediff-color-display-p))) | ||
| 1090 | (ediff-set-face-pixmap 'ediff-fine-diff-face-C "gray3")) | ||
| 1091 | |||
| 1092 | ;;(defvar ediff-fine-diff-face-Ancestor | ||
| 1093 | ;; (if (ediff-has-face-support-p) | ||
| 1094 | ;; (progn | ||
| 1095 | ;; (make-face 'ediff-fine-diff-face-Ancestor) | ||
| 1096 | ;; (ediff-hide-face 'ediff-fine-diff-face-Ancestor) | ||
| 1097 | ;; (or (face-differs-from-default-p 'ediff-fine-diff-face-Ancestor) | ||
| 1098 | ;; (progn | ||
| 1099 | ;; (copy-face | ||
| 1100 | ;; 'ediff-fine-diff-face-C 'ediff-fine-diff-face-Ancestor) | ||
| 1101 | ;; (ediff-set-face-pixmap 'ediff-fine-diff-face-Ancestor | ||
| 1102 | ;; ediff-fine-diff-pixmap)) | ||
| 1103 | ;; ))) | ||
| 1104 | ;; "Face highlighting refinements of the selected diff in ancestor buffer. | ||
| 1105 | ;;Presently, this is not used, as difference regions are not refined in the | ||
| 1106 | ;;ancestor buffer.") | ||
| 1107 | |||
| 1108 | (defface ediff-fine-diff-face-Ancestor | ||
| 1109 | '((((class color)) (:foreground "Black" :background "Green")) | ||
| 1110 | (t (:underline t :stipple "gray3"))) | ||
| 1111 | "Face for highlighting the refinement of the selected diff in the ancestor buffer. | ||
| 1112 | At present, this face is not used and no fine differences are computed for the | ||
| 1113 | ancestor buffer." | ||
| 1114 | :group 'ediff-highlighting) | ||
| 1115 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1116 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1117 | (defvar ediff-fine-diff-face-Ancestor 'ediff-fine-diff-face-Ancestor) | ||
| 1118 | (ediff-hide-face 'ediff-fine-diff-face-Ancestor) | ||
| 1119 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1120 | ;; This means that some use customization may be trashed. | ||
| 1121 | (if (and ediff-xemacs-p | ||
| 1122 | (ediff-has-face-support-p) | ||
| 1123 | (not (ediff-color-display-p))) | ||
| 1124 | (ediff-set-face-pixmap | ||
| 1125 | 'ediff-fine-diff-face-Ancestor "gray3")) | ||
| 1126 | |||
| 1127 | ;;(defvar ediff-even-diff-face-A | ||
| 1128 | ;; (if (ediff-has-face-support-p) | ||
| 1129 | ;; (progn | ||
| 1130 | ;; (make-face 'ediff-even-diff-face-A) | ||
| 1131 | ;; (or (face-differs-from-default-p 'ediff-even-diff-face-A) | ||
| 1132 | ;; (cond ((ediff-color-display-p) | ||
| 1133 | ;; (ediff-set-face | ||
| 1134 | ;; 'foreground 'ediff-even-diff-face-A "black") | ||
| 1135 | ;; (ediff-set-face | ||
| 1136 | ;; 'background 'ediff-even-diff-face-A "light grey")) | ||
| 1137 | ;; (t | ||
| 1138 | ;; (copy-face 'italic 'ediff-even-diff-face-A) | ||
| 1139 | ;; (ediff-set-face-pixmap 'ediff-even-diff-face-A | ||
| 1140 | ;; ediff-even-diff-pixmap) | ||
| 1141 | ;; ))) | ||
| 1142 | ;; 'ediff-even-diff-face-A)) | ||
| 1143 | ;; "Face used for highlighting even-numbered differences in buffer A.") | ||
| 1144 | |||
| 1145 | (defface ediff-even-diff-face-A | ||
| 1146 | '((((class color)) (:foreground "Black" :background "light grey")) | ||
| 1147 | (t (:italic t :stipple "Stipple"))) | ||
| 1148 | "Face for highlighting even-numbered non-current differences in buffer A." | ||
| 1149 | :group 'ediff-highlighting) | ||
| 1150 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1151 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1152 | (defvar ediff-even-diff-face-A 'ediff-even-diff-face-A) | ||
| 1153 | (ediff-hide-face 'ediff-even-diff-face-A) | ||
| 1154 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1155 | ;; This means that some use customization may be trashed. | ||
| 1156 | (if (and ediff-xemacs-p | ||
| 1157 | (ediff-has-face-support-p) | ||
| 1158 | (not (ediff-color-display-p))) | ||
| 1159 | (ediff-set-face-pixmap 'ediff-even-diff-face-A "Stipple")) | ||
| 1037 | 1160 | ||
| 1038 | (defvar ediff-even-diff-face-B | 1161 | ;;(defvar ediff-even-diff-face-B |
| 1039 | (if (ediff-has-face-support-p) | 1162 | ;; (if (ediff-has-face-support-p) |
| 1040 | (progn | 1163 | ;; (progn |
| 1041 | (make-face 'ediff-even-diff-face-B) | 1164 | ;; (make-face 'ediff-even-diff-face-B) |
| 1042 | (ediff-hide-face 'ediff-even-diff-face-B) | 1165 | ;; (or (face-differs-from-default-p 'ediff-even-diff-face-B) |
| 1043 | (or (face-differs-from-default-p 'ediff-even-diff-face-B) | 1166 | ;; (cond ((ediff-color-display-p) |
| 1044 | (cond ((ediff-color-display-p) | 1167 | ;; (ediff-set-face |
| 1045 | (ediff-set-face | 1168 | ;; 'foreground 'ediff-even-diff-face-B "White") |
| 1046 | 'foreground 'ediff-even-diff-face-B "White") | 1169 | ;; (ediff-set-face |
| 1047 | (ediff-set-face | 1170 | ;; 'background 'ediff-even-diff-face-B "Gray")) |
| 1048 | 'background 'ediff-even-diff-face-B "Gray")) | 1171 | ;; (t |
| 1049 | (t | 1172 | ;; (copy-face 'italic 'ediff-even-diff-face-B) |
| 1050 | (copy-face 'italic 'ediff-even-diff-face-B) | 1173 | ;; (ediff-set-face-pixmap 'ediff-even-diff-face-B |
| 1051 | (ediff-set-face-pixmap 'ediff-even-diff-face-B | 1174 | ;; ediff-even-diff-pixmap) |
| 1052 | ediff-even-diff-pixmap) | 1175 | ;; ))) |
| 1053 | ))) | 1176 | ;; 'ediff-even-diff-face-B)) |
| 1054 | 'ediff-even-diff-face-B)) | 1177 | ;; "Face used for highlighting even-numbered differences in buffer B.") |
| 1055 | "Face used to highlight even-numbered differences in buffer B.") | 1178 | |
| 1179 | (defface ediff-even-diff-face-B | ||
| 1180 | '((((class color)) (:foreground "White" :background "Grey")) | ||
| 1181 | (t (:italic t :stipple "Stipple"))) | ||
| 1182 | "Face for highlighting even-numbered non-current differences in buffer B." | ||
| 1183 | :group 'ediff-highlighting) | ||
| 1184 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1185 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1186 | (defvar ediff-even-diff-face-B 'ediff-even-diff-face-B) | ||
| 1187 | (ediff-hide-face 'ediff-even-diff-face-B) | ||
| 1188 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1189 | ;; This means that some use customization may be trashed. | ||
| 1190 | (if (and ediff-xemacs-p | ||
| 1191 | (ediff-has-face-support-p) | ||
| 1192 | (not (ediff-color-display-p))) | ||
| 1193 | (ediff-set-face-pixmap 'ediff-even-diff-face-B "Stipple")) | ||
| 1056 | 1194 | ||
| 1057 | (defvar ediff-even-diff-face-C | 1195 | ;;(defvar ediff-even-diff-face-C |
| 1058 | (if (ediff-has-face-support-p) | 1196 | ;; (if (ediff-has-face-support-p) |
| 1059 | (progn | 1197 | ;; (progn |
| 1060 | (make-face 'ediff-even-diff-face-C) | 1198 | ;; (make-face 'ediff-even-diff-face-C) |
| 1061 | (ediff-hide-face 'ediff-even-diff-face-C) | 1199 | ;; (ediff-hide-face 'ediff-even-diff-face-C) |
| 1062 | (or (face-differs-from-default-p 'ediff-even-diff-face-C) | 1200 | ;; (or (face-differs-from-default-p 'ediff-even-diff-face-C) |
| 1063 | (progn | 1201 | ;; (progn |
| 1064 | (copy-face 'ediff-even-diff-face-A 'ediff-even-diff-face-C) | 1202 | ;; (copy-face 'ediff-even-diff-face-A 'ediff-even-diff-face-C) |
| 1065 | (ediff-set-face-pixmap 'ediff-even-diff-face-C | 1203 | ;; (ediff-set-face-pixmap 'ediff-even-diff-face-C |
| 1066 | ediff-even-diff-pixmap))) | 1204 | ;; ediff-even-diff-pixmap))) |
| 1067 | 'ediff-even-diff-face-C)) | 1205 | ;; 'ediff-even-diff-face-C)) |
| 1068 | "Face used to highlight even-numbered differences in buffer C.") | 1206 | ;; "Face used for highlighting even-numbered differences in buffer C.") |
| 1069 | 1207 | ||
| 1070 | (defvar ediff-even-diff-face-Ancestor | 1208 | (defface ediff-even-diff-face-C |
| 1071 | (if (ediff-has-face-support-p) | 1209 | '((((class color)) (:foreground "Black" :background "light grey")) |
| 1072 | (progn | 1210 | (t (:italic t :stipple "Stipple"))) |
| 1073 | (make-face 'ediff-even-diff-face-Ancestor) | 1211 | "Face for highlighting even-numbered non-current differences in buffer C." |
| 1074 | (ediff-hide-face 'ediff-even-diff-face-Ancestor) | 1212 | :group 'ediff-highlighting) |
| 1075 | (or (face-differs-from-default-p 'ediff-even-diff-face-Ancestor) | 1213 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1076 | (progn | 1214 | ;; this variable is set to nil, then again to the appropriate face. |
| 1077 | (copy-face | 1215 | (defvar ediff-even-diff-face-C 'ediff-even-diff-face-C) |
| 1078 | 'ediff-even-diff-face-C 'ediff-even-diff-face-Ancestor) | 1216 | (ediff-hide-face 'ediff-even-diff-face-C) |
| 1079 | (ediff-set-face-pixmap 'ediff-even-diff-face-Ancestor | 1217 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. |
| 1080 | ediff-even-diff-pixmap))) | 1218 | ;; This means that some use customization may be trashed. |
| 1081 | 'ediff-even-diff-face-Ancestor)) | 1219 | (if (and ediff-xemacs-p |
| 1082 | "Face highlighting even-numbered differences in the ancestor buffer.") | 1220 | (ediff-has-face-support-p) |
| 1221 | (not (ediff-color-display-p))) | ||
| 1222 | (ediff-set-face-pixmap 'ediff-even-diff-face-C "Stipple")) | ||
| 1223 | |||
| 1224 | ;;(defvar ediff-even-diff-face-Ancestor | ||
| 1225 | ;; (if (ediff-has-face-support-p) | ||
| 1226 | ;; (progn | ||
| 1227 | ;; (make-face 'ediff-even-diff-face-Ancestor) | ||
| 1228 | ;; (ediff-hide-face 'ediff-even-diff-face-Ancestor) | ||
| 1229 | ;; (or (face-differs-from-default-p 'ediff-even-diff-face-Ancestor) | ||
| 1230 | ;; (progn | ||
| 1231 | ;; (copy-face | ||
| 1232 | ;; 'ediff-even-diff-face-C 'ediff-even-diff-face-Ancestor) | ||
| 1233 | ;; (ediff-set-face-pixmap 'ediff-even-diff-face-Ancestor | ||
| 1234 | ;; ediff-even-diff-pixmap))) | ||
| 1235 | ;; 'ediff-even-diff-face-Ancestor)) | ||
| 1236 | ;; "Face highlighting even-numbered differences in the ancestor buffer.") | ||
| 1237 | |||
| 1238 | (defface ediff-even-diff-face-Ancestor | ||
| 1239 | '((((class color)) (:foreground "White" :background "Grey")) | ||
| 1240 | (t (:italic t :stipple "Stipple"))) | ||
| 1241 | "Face for highlighting even-numbered non-current differences in the ancestor buffer." | ||
| 1242 | :group 'ediff-highlighting) | ||
| 1243 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1244 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1245 | (defvar ediff-even-diff-face-Ancestor 'ediff-even-diff-face-Ancestor) | ||
| 1246 | (ediff-hide-face 'ediff-even-diff-face-Ancestor) | ||
| 1247 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1248 | ;; This means that some use customization may be trashed. | ||
| 1249 | (if (and ediff-xemacs-p | ||
| 1250 | (ediff-has-face-support-p) | ||
| 1251 | (not (ediff-color-display-p))) | ||
| 1252 | (ediff-set-face-pixmap | ||
| 1253 | 'ediff-even-diff-face-Ancestor "Stipple")) | ||
| 1083 | 1254 | ||
| 1084 | ;; Association between buffer types and even-diff-face symbols | 1255 | ;; Association between buffer types and even-diff-face symbols |
| 1085 | (defconst ediff-even-diff-face-alist | 1256 | (defconst ediff-even-diff-face-alist |
| @@ -1088,69 +1259,130 @@ ancestor buffer.") | |||
| 1088 | (C . ediff-even-diff-face-C) | 1259 | (C . ediff-even-diff-face-C) |
| 1089 | (Ancestor . ediff-even-diff-face-Ancestor))) | 1260 | (Ancestor . ediff-even-diff-face-Ancestor))) |
| 1090 | 1261 | ||
| 1091 | (defvar ediff-odd-diff-face-A | 1262 | ;;(defvar ediff-odd-diff-face-A |
| 1092 | (if (ediff-has-face-support-p) | 1263 | ;; (if (ediff-has-face-support-p) |
| 1093 | (progn | 1264 | ;; (progn |
| 1094 | (make-face 'ediff-odd-diff-face-A) | 1265 | ;; (make-face 'ediff-odd-diff-face-A) |
| 1095 | (ediff-hide-face 'ediff-odd-diff-face-A) | 1266 | ;; (or (face-differs-from-default-p 'ediff-odd-diff-face-A) |
| 1096 | (or (face-differs-from-default-p 'ediff-odd-diff-face-A) | 1267 | ;; (cond ((ediff-color-display-p) |
| 1097 | (cond ((ediff-color-display-p) | 1268 | ;; (ediff-set-face |
| 1098 | (ediff-set-face | 1269 | ;; 'foreground 'ediff-odd-diff-face-A "White") |
| 1099 | 'foreground 'ediff-odd-diff-face-A "White") | 1270 | ;; (ediff-set-face |
| 1100 | (ediff-set-face | 1271 | ;; 'background 'ediff-odd-diff-face-A "Gray")) |
| 1101 | 'background 'ediff-odd-diff-face-A "Gray")) | 1272 | ;; (t |
| 1102 | (t | 1273 | ;; (copy-face 'italic 'ediff-odd-diff-face-A) |
| 1103 | (copy-face 'italic 'ediff-odd-diff-face-A) | 1274 | ;; (ediff-set-face-pixmap 'ediff-odd-diff-face-A |
| 1104 | (ediff-set-face-pixmap 'ediff-odd-diff-face-A | 1275 | ;; ediff-odd-diff-pixmap) |
| 1105 | ediff-odd-diff-pixmap) | 1276 | ;; ))) |
| 1106 | ))) | 1277 | ;; 'ediff-odd-diff-face-A)) |
| 1107 | 'ediff-odd-diff-face-A)) | 1278 | ;; "Face used for highlighting odd-numbered differences in buffer A.") |
| 1108 | "Face used to highlight odd-numbered differences in buffer A.") | 1279 | |
| 1280 | (defface ediff-odd-diff-face-A | ||
| 1281 | '((((class color)) (:foreground "White" :background "Grey")) | ||
| 1282 | (t (:italic t :stipple "gray1"))) | ||
| 1283 | "Face for highlighting odd-numbered non-current differences in buffer A." | ||
| 1284 | :group 'ediff-highlighting) | ||
| 1285 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1286 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1287 | (defvar ediff-odd-diff-face-A 'ediff-odd-diff-face-A) | ||
| 1288 | (ediff-hide-face 'ediff-odd-diff-face-A) | ||
| 1289 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1290 | ;; This means that some use customization may be trashed. | ||
| 1291 | (if (and ediff-xemacs-p | ||
| 1292 | (ediff-has-face-support-p) | ||
| 1293 | (not (ediff-color-display-p))) | ||
| 1294 | (ediff-set-face-pixmap 'ediff-odd-diff-face-A "gray1")) | ||
| 1109 | 1295 | ||
| 1110 | (defvar ediff-odd-diff-face-B | 1296 | ;;(defvar ediff-odd-diff-face-B |
| 1111 | (if (ediff-has-face-support-p) | 1297 | ;; (if (ediff-has-face-support-p) |
| 1112 | (progn | 1298 | ;; (progn |
| 1113 | (make-face 'ediff-odd-diff-face-B) | 1299 | ;; (make-face 'ediff-odd-diff-face-B) |
| 1114 | (ediff-hide-face 'ediff-odd-diff-face-B) | 1300 | ;; (ediff-hide-face 'ediff-odd-diff-face-B) |
| 1115 | (or (face-differs-from-default-p 'ediff-odd-diff-face-B) | 1301 | ;; (or (face-differs-from-default-p 'ediff-odd-diff-face-B) |
| 1116 | (cond ((ediff-color-display-p) | 1302 | ;; (cond ((ediff-color-display-p) |
| 1117 | (ediff-set-face | 1303 | ;; (ediff-set-face |
| 1118 | 'foreground 'ediff-odd-diff-face-B "Black") | 1304 | ;; 'foreground 'ediff-odd-diff-face-B "Black") |
| 1119 | (ediff-set-face | 1305 | ;; (ediff-set-face |
| 1120 | 'background 'ediff-odd-diff-face-B "light grey")) | 1306 | ;; 'background 'ediff-odd-diff-face-B "light grey")) |
| 1121 | (t | 1307 | ;; (t |
| 1122 | (copy-face 'italic 'ediff-odd-diff-face-B) | 1308 | ;; (copy-face 'italic 'ediff-odd-diff-face-B) |
| 1123 | (ediff-set-face-pixmap 'ediff-odd-diff-face-B | 1309 | ;; (ediff-set-face-pixmap 'ediff-odd-diff-face-B |
| 1124 | ediff-odd-diff-pixmap) | 1310 | ;; ediff-odd-diff-pixmap) |
| 1125 | ))) | 1311 | ;; ))) |
| 1126 | 'ediff-odd-diff-face-B)) | 1312 | ;; 'ediff-odd-diff-face-B)) |
| 1127 | "Face used to highlight odd-numbered differences in buffer B.") | 1313 | ;; "Face used for highlighting odd-numbered differences in buffer B.") |
| 1314 | |||
| 1315 | (defface ediff-odd-diff-face-B | ||
| 1316 | '((((class color)) (:foreground "Black" :background "light grey")) | ||
| 1317 | (t (:italic t :stipple "gray1"))) | ||
| 1318 | "Face for highlighting odd-numbered non-current differences in buffer B." | ||
| 1319 | :group 'ediff-highlighting) | ||
| 1320 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1321 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1322 | (defvar ediff-odd-diff-face-B 'ediff-odd-diff-face-B) | ||
| 1323 | (ediff-hide-face 'ediff-odd-diff-face-B) | ||
| 1324 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1325 | ;; This means that some use customization may be trashed. | ||
| 1326 | (if (and ediff-xemacs-p | ||
| 1327 | (ediff-has-face-support-p) | ||
| 1328 | (not (ediff-color-display-p))) | ||
| 1329 | (ediff-set-face-pixmap 'ediff-odd-diff-face-B "gray1")) | ||
| 1128 | 1330 | ||
| 1129 | (defvar ediff-odd-diff-face-C | 1331 | ;;(defvar ediff-odd-diff-face-C |
| 1130 | (if (ediff-has-face-support-p) | 1332 | ;; (if (ediff-has-face-support-p) |
| 1131 | (progn | 1333 | ;; (progn |
| 1132 | (make-face 'ediff-odd-diff-face-C) | 1334 | ;; (make-face 'ediff-odd-diff-face-C) |
| 1133 | (ediff-hide-face 'ediff-odd-diff-face-C) | 1335 | ;; (or (face-differs-from-default-p 'ediff-odd-diff-face-C) |
| 1134 | (or (face-differs-from-default-p 'ediff-odd-diff-face-C) | 1336 | ;; (progn |
| 1135 | (progn | 1337 | ;; (copy-face 'ediff-odd-diff-face-A 'ediff-odd-diff-face-C) |
| 1136 | (copy-face 'ediff-odd-diff-face-A 'ediff-odd-diff-face-C) | 1338 | ;; (ediff-set-face-pixmap 'ediff-odd-diff-face-C |
| 1137 | (ediff-set-face-pixmap 'ediff-odd-diff-face-C | 1339 | ;; ediff-odd-diff-pixmap))) |
| 1138 | ediff-odd-diff-pixmap))) | 1340 | ;; 'ediff-odd-diff-face-C)) |
| 1139 | 'ediff-odd-diff-face-C)) | 1341 | ;; "Face used for highlighting odd-numbered differences in buffer C.") |
| 1140 | "Face used to highlight odd-numbered differences in buffer C.") | 1342 | |
| 1141 | 1343 | (defface ediff-odd-diff-face-C | |
| 1142 | (defvar ediff-odd-diff-face-Ancestor | 1344 | '((((class color)) (:foreground "White" :background "Grey")) |
| 1143 | (if (ediff-has-face-support-p) | 1345 | (t (:italic t :stipple "gray1"))) |
| 1144 | (progn | 1346 | "Face for highlighting odd-numbered non-current differences in buffer C." |
| 1145 | (make-face 'ediff-odd-diff-face-Ancestor) | 1347 | :group 'ediff-highlighting) |
| 1146 | (ediff-hide-face 'ediff-odd-diff-face-Ancestor) | 1348 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, |
| 1147 | (or (face-differs-from-default-p 'ediff-odd-diff-face-Ancestor) | 1349 | ;; this variable is set to nil, then again to the appropriate face. |
| 1148 | (progn | 1350 | (defvar ediff-odd-diff-face-C 'ediff-odd-diff-face-C) |
| 1149 | (copy-face 'ediff-odd-diff-face-C 'ediff-odd-diff-face-Ancestor) | 1351 | (ediff-hide-face 'ediff-odd-diff-face-C) |
| 1150 | (ediff-set-face-pixmap 'ediff-odd-diff-face-Ancestor | 1352 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. |
| 1151 | ediff-odd-diff-pixmap))) | 1353 | ;; This means that some use customization may be trashed. |
| 1152 | 'ediff-odd-diff-face-Ancestor)) | 1354 | (if (and ediff-xemacs-p |
| 1153 | "Face used to highlight even-numbered differences in the ancestor buffer.") | 1355 | (ediff-has-face-support-p) |
| 1356 | (not (ediff-color-display-p))) | ||
| 1357 | (ediff-set-face-pixmap 'ediff-odd-diff-face-C "gray1")) | ||
| 1358 | |||
| 1359 | ;;(defvar ediff-odd-diff-face-Ancestor | ||
| 1360 | ;; (if (ediff-has-face-support-p) | ||
| 1361 | ;; (progn | ||
| 1362 | ;; (make-face 'ediff-odd-diff-face-Ancestor) | ||
| 1363 | ;; (or (face-differs-from-default-p 'ediff-odd-diff-face-Ancestor) | ||
| 1364 | ;; (progn | ||
| 1365 | ;; (copy-face 'ediff-odd-diff-face-C 'ediff-odd-diff-face-Ancestor) | ||
| 1366 | ;; (ediff-set-face-pixmap 'ediff-odd-diff-face-Ancestor | ||
| 1367 | ;; ediff-odd-diff-pixmap))) | ||
| 1368 | ;; 'ediff-odd-diff-face-Ancestor)) | ||
| 1369 | ;; "Face used for highlighting even-numbered differences in the ancestor buffer.") | ||
| 1370 | |||
| 1371 | (defface ediff-odd-diff-face-Ancestor | ||
| 1372 | '((((class color)) (:foreground "Black" :background "light grey")) | ||
| 1373 | (t (:italic t :stipple "gray1"))) | ||
| 1374 | "Face for highlighting odd-numbered non-current differences in the ancestor buffer." | ||
| 1375 | :group 'ediff-highlighting) | ||
| 1376 | ;; An internal variable. Ediff takes the face from here. When unhighlighting, | ||
| 1377 | ;; this variable is set to nil, then again to the appropriate face. | ||
| 1378 | (defvar ediff-odd-diff-face-Ancestor 'ediff-odd-diff-face-Ancestor) | ||
| 1379 | (ediff-hide-face 'ediff-odd-diff-face-Ancestor) | ||
| 1380 | ;; Until custom.el for XEmacs starts supporting :stipple we do this. | ||
| 1381 | ;; This means that some use customization may be trashed. | ||
| 1382 | (if (and ediff-xemacs-p | ||
| 1383 | (ediff-has-face-support-p) | ||
| 1384 | (not (ediff-color-display-p))) | ||
| 1385 | (ediff-set-face-pixmap 'ediff-odd-diff-face-Ancestor "gray1")) | ||
| 1154 | 1386 | ||
| 1155 | ;; Association between buffer types and odd-diff-face symbols | 1387 | ;; Association between buffer types and odd-diff-face symbols |
| 1156 | (defconst ediff-odd-diff-face-alist | 1388 | (defconst ediff-odd-diff-face-alist |
diff --git a/lisp/ediff-mult.el b/lisp/ediff-mult.el index 98d41109bae..7fce125bc8e 100644 --- a/lisp/ediff-mult.el +++ b/lisp/ediff-mult.el | |||
| @@ -93,7 +93,7 @@ | |||
| 93 | (provide 'ediff-mult) | 93 | (provide 'ediff-mult) |
| 94 | 94 | ||
| 95 | (defgroup ediff-mult nil | 95 | (defgroup ediff-mult nil |
| 96 | "Multi-file and multi-buffer processing in ediff" | 96 | "Multi-file and multi-buffer processing in Ediff" |
| 97 | :prefix "ediff-" | 97 | :prefix "ediff-" |
| 98 | :group 'ediff) | 98 | :group 'ediff) |
| 99 | 99 | ||
diff --git a/lisp/ediff.el b/lisp/ediff.el index d27b08b159e..dd69b41649c 100644 --- a/lisp/ediff.el +++ b/lisp/ediff.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Keywords: comparing, merging, patching, version control. | 7 | ;; Keywords: comparing, merging, patching, version control. |
| 8 | 8 | ||
| 9 | (defconst ediff-version "2.67" "The current version of Ediff") | 9 | (defconst ediff-version "2.67" "The current version of Ediff") |
| 10 | (defconst ediff-date "July 31, 1997" "Date of last update") | 10 | (defconst ediff-date "August 7, 1997" "Date of last update") |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | ;; This file is part of GNU Emacs. | 13 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el index 30d12695223..18878d8328b 100644 --- a/lisp/emulation/viper-init.el +++ b/lisp/emulation/viper-init.el | |||
| @@ -692,6 +692,15 @@ Related buffers can be cycled through via :R and :P commands." | |||
| 692 | 692 | ||
| 693 | ;;; Face-saving tricks | 693 | ;;; Face-saving tricks |
| 694 | 694 | ||
| 695 | ;;(defcustom viper-replace-overlay-pixmap "gray3" | ||
| 696 | ;; "Pixmap to use for search face on non-color displays." | ||
| 697 | ;; :type 'string | ||
| 698 | ;; :group 'viper) | ||
| 699 | ;;(defcustom viper-search-face-pixmap "gray3" | ||
| 700 | ;; "Pixmap to use for search face on non-color displays." | ||
| 701 | ;; :type 'string | ||
| 702 | ;; :group 'viper) | ||
| 703 | |||
| 695 | (defun viper-hide-face (face) | 704 | (defun viper-hide-face (face) |
| 696 | (if (and (viper-has-face-support-p) viper-emacs-p) | 705 | (if (and (viper-has-face-support-p) viper-emacs-p) |
| 697 | (add-to-list 'facemenu-unlisted-faces face))) | 706 | (add-to-list 'facemenu-unlisted-faces face))) |
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index d9e39281a70..9a11e0d35e9 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -1130,7 +1130,7 @@ Must be called in order for changes to `viper-syntax-preference' to take effect. | |||
| 1130 | 'forward | 1130 | 'forward |
| 1131 | (cond ((eq viper-syntax-preference 'strict-vi) | 1131 | (cond ((eq viper-syntax-preference 'strict-vi) |
| 1132 | "") | 1132 | "") |
| 1133 | (t viper-ALPHA-char-class )) | 1133 | (t viper-ALPHA-char-class)) |
| 1134 | (cond ((eq viper-syntax-preference 'strict-vi) | 1134 | (cond ((eq viper-syntax-preference 'strict-vi) |
| 1135 | (concat viper-strict-ALPHA-chars addl-chars)) | 1135 | (concat viper-strict-ALPHA-chars addl-chars)) |
| 1136 | (t addl-chars)))) | 1136 | (t addl-chars)))) |
| @@ -1141,7 +1141,7 @@ Must be called in order for changes to `viper-syntax-preference' to take effect. | |||
| 1141 | 'backward | 1141 | 'backward |
| 1142 | (cond ((eq viper-syntax-preference 'strict-vi) | 1142 | (cond ((eq viper-syntax-preference 'strict-vi) |
| 1143 | "") | 1143 | "") |
| 1144 | (t viper-ALPHA-char-class )) | 1144 | (t viper-ALPHA-char-class)) |
| 1145 | (cond ((eq viper-syntax-preference 'strict-vi) | 1145 | (cond ((eq viper-syntax-preference 'strict-vi) |
| 1146 | (concat viper-strict-ALPHA-chars addl-chars)) | 1146 | (concat viper-strict-ALPHA-chars addl-chars)) |
| 1147 | (t addl-chars)))) | 1147 | (t addl-chars)))) |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 84fac506164..269c54d18a4 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | ;; Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. | 9 | ;; Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. |
| 10 | 10 | ||
| 11 | (defconst viper-version "2.96 of August 1, 1997" | 11 | (defconst viper-version "2.96 of August 7, 1997" |
| 12 | "The current version of Viper") | 12 | "The current version of Viper") |
| 13 | 13 | ||
| 14 | ;; This file is part of GNU Emacs. | 14 | ;; This file is part of GNU Emacs. |