diff options
| author | Karl Heuer | 1995-06-05 23:47:44 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-06-05 23:47:44 +0000 |
| commit | 996f5f0e31c678d595cd8a0327a0ea25f15ae610 (patch) | |
| tree | 049634aace9b5eecbbf00733d6ecb5fe45987e66 | |
| parent | 41d25ad02ea8f59e2d6fbac19d31617666521c7f (diff) | |
| download | emacs-996f5f0e31c678d595cd8a0327a0ea25f15ae610.tar.gz emacs-996f5f0e31c678d595cd8a0327a0ea25f15ae610.zip | |
Changed window-system to ediff-window-display.
Converted xemacs *screen* nomenclature to *frame*.
Incorporated overlay strings. Ediff no longer runs under emacs
19.28 and earlier and XEmacs 19.11 and earlier.
| -rw-r--r-- | lisp/ediff-diff.el | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el index 92a6c938feb..8de42680f7d 100644 --- a/lisp/ediff-diff.el +++ b/lisp/ediff-diff.el | |||
| @@ -81,7 +81,7 @@ Lines that do not match are assumed to be error messages.") | |||
| 81 | 81 | ||
| 82 | ;;; Fine differences | 82 | ;;; Fine differences |
| 83 | 83 | ||
| 84 | (ediff-defvar-local ediff-auto-refine (if window-system 'on 'nix) | 84 | (ediff-defvar-local ediff-auto-refine (if (ediff-window-display-p) 'on 'nix) |
| 85 | "If `on', Ediff auto-highlights fine diffs for the current diff region. | 85 | "If `on', Ediff auto-highlights fine diffs for the current diff region. |
| 86 | If `off', auto-highlighting is not used. If `nix', no fine diffs are shown | 86 | If `off', auto-highlighting is not used. If `nix', no fine diffs are shown |
| 87 | at all, unless the user force-refines the region by hitting `*'. | 87 | at all, unless the user force-refines the region by hitting `*'. |
| @@ -131,7 +131,7 @@ one optional arguments, diff-number to refine.") | |||
| 131 | ;; ediff-setup-diff-regions3, which takes 4 arguments. | 131 | ;; ediff-setup-diff-regions3, which takes 4 arguments. |
| 132 | (defun ediff-setup-diff-regions (file-A file-B file-C) | 132 | (defun ediff-setup-diff-regions (file-A file-B file-C) |
| 133 | ;; force all minibuffers to display ediff's messages. | 133 | ;; force all minibuffers to display ediff's messages. |
| 134 | ;; when xemacs implements minibufferless screens, this won't be necessary | 134 | ;; when xemacs implements minibufferless frames, this won't be necessary |
| 135 | (if ediff-xemacs-p (setq synchronize-minibuffers t)) | 135 | (if ediff-xemacs-p (setq synchronize-minibuffers t)) |
| 136 | 136 | ||
| 137 | (or (ediff-buffer-live-p ediff-diff-buffer) | 137 | (or (ediff-buffer-live-p ediff-diff-buffer) |
| @@ -476,12 +476,13 @@ one optional arguments, diff-number to refine.") | |||
| 476 | (ediff-overlay-put overlay 'ediff-diff-num current-diff) | 476 | (ediff-overlay-put overlay 'ediff-diff-num current-diff) |
| 477 | (ediff-overlay-put | 477 | (ediff-overlay-put |
| 478 | overlay 'insert-in-front-hooks '(ediff-insert-in-front)) | 478 | overlay 'insert-in-front-hooks '(ediff-insert-in-front)) |
| 479 | (ediff-overlay-put | 479 | (if (ediff-window-display-p) |
| 480 | overlay 'face (if (ediff-odd-p current-diff) | 480 | (ediff-overlay-put |
| 481 | (intern | 481 | overlay 'face (if (ediff-odd-p current-diff) |
| 482 | (format "ediff-odd-diff-face-%S-var" buf-type)) | 482 | (intern |
| 483 | (intern | 483 | (format "ediff-odd-diff-face-%S-var" buf-type)) |
| 484 | (format "ediff-even-diff-face-%S-var" buf-type)))) | 484 | (intern |
| 485 | (format "ediff-even-diff-face-%S-var" buf-type))))) | ||
| 485 | 486 | ||
| 486 | (if (= 0 (mod current-diff 10)) | 487 | (if (= 0 (mod current-diff 10)) |
| 487 | (message "Buffer %S: Processing difference region %d of %d" | 488 | (message "Buffer %S: Processing difference region %d of %d" |
| @@ -678,7 +679,7 @@ one optional arguments, diff-number to refine.") | |||
| 678 | 679 | ||
| 679 | ;; if fine diff vector is not set for diff N, then do nothing | 680 | ;; if fine diff vector is not set for diff N, then do nothing |
| 680 | (defun ediff-set-fine-diff-properties (n &optional default) | 681 | (defun ediff-set-fine-diff-properties (n &optional default) |
| 681 | (or (not window-system) | 682 | (or (not (ediff-window-display-p)) |
| 682 | (< n 0) | 683 | (< n 0) |
| 683 | (>= n ediff-number-of-differences) | 684 | (>= n ediff-number-of-differences) |
| 684 | ;; in a window system, set faces and priorities of fine overlays | 685 | ;; in a window system, set faces and priorities of fine overlays |
| @@ -951,7 +952,7 @@ one optional arguments, diff-number to refine.") | |||
| 951 | (defun ediff-setup-diff-regions3 (file-A file-B file-C) | 952 | (defun ediff-setup-diff-regions3 (file-A file-B file-C) |
| 952 | 953 | ||
| 953 | ;; force all minibuffers to display ediff's messages. | 954 | ;; force all minibuffers to display ediff's messages. |
| 954 | ;; when xemacs implements minibufferless screens, this won't be necessary | 955 | ;; when xemacs implements minibufferless frames, this won't be necessary |
| 955 | (if ediff-xemacs-p (setq synchronize-minibuffers t)) | 956 | (if ediff-xemacs-p (setq synchronize-minibuffers t)) |
| 956 | 957 | ||
| 957 | (or (ediff-buffer-live-p ediff-diff-buffer) | 958 | (or (ediff-buffer-live-p ediff-diff-buffer) |