diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-10-04 15:20:41 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-10-04 15:20:48 +0200 |
commit | 8ef09cb30a526f34236f6696d06a2848043685ae (patch) | |
tree | 9aa39b5cab931781cf4ae758c07b7e0fee71d1f9 /lisp/vc/ediff-util.el | |
parent | f1d9e41ab022358c5086227d5b267f3f35d27666 (diff) | |
download | emacs-8ef09cb30a526f34236f6696d06a2848043685ae.tar.gz emacs-8ef09cb30a526f34236f6696d06a2848043685ae.tar.bz2 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.
Diffstat (limited to 'lisp/vc/ediff-util.el')
-rw-r--r-- | lisp/vc/ediff-util.el | 29 |
1 files changed, 9 insertions, 20 deletions
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.") (setq ediff-mode-map (make-sparse-keymap)) (suppress-keymap ediff-mode-map) - (define-key ediff-mode-map - (if (featurep 'emacs) [mouse-2] [button2]) 'ediff-help-for-quick-help) + (define-key ediff-mode-map [mouse-2] 'ediff-help-for-quick-help) (define-key ediff-mode-map "\C-m" 'ediff-help-for-quick-help) (define-key ediff-mode-map "p" 'ediff-previous-difference) @@ -1267,8 +1266,7 @@ This is especially useful when comparing buffers side-by-side." (interactive) (ediff-barf-if-not-control-buffer) (or (ediff-window-display-p) - (user-error "%sEmacs is not running as a window application" - (if (featurep 'emacs) "" "X"))) + (user-error "Emacs is not running as a window application")) (ediff-recenter 'no-rehighlight) ; make sure buffs are displayed in windows (let ((ctl-buf ediff-control-buffer)) (setq ediff-wide-display-p (not ediff-wide-display-p)) @@ -1297,8 +1295,7 @@ which see." (interactive) (let (window-setup-func) (or (ediff-window-display-p) - (user-error "%sEmacs is not running as a window application" - (if (featurep 'emacs) "" "X"))) + (user-error "Emacs is not running as a window application")) (cond ((eq ediff-window-setup-function #'ediff-setup-windows-multiframe) (setq ediff-multiframe nil) @@ -1344,8 +1341,7 @@ To change the default, set the variable `ediff-use-toolbar-p', which see." (if (featurep 'ediff-tbar) (progn (or (ediff-window-display-p) - (user-error "%sEmacs is not running as a window application" - (if (featurep 'emacs) "" "X"))) + (user-error "Emacs is not running as a window application")) (if (ediff-use-toolbar-p) (ediff-kill-bottom-toolbar)) ;; do this only after killing the toolbar @@ -2562,10 +2558,7 @@ temporarily reverses the meaning of this variable." (cond ((ediff-good-frame-under-mouse)) (t warp-frame))) (if (and (ediff-window-display-p) (frame-live-p warp-frame) ediff-grab-mouse) - (set-mouse-position (if (featurep 'emacs) - warp-frame - (frame-selected-window warp-frame)) - 2 1)) + (set-mouse-position warp-frame 2 1)) (mapc #'funcall after-quit-hook-internal) )) @@ -2576,14 +2569,11 @@ temporarily reverses the meaning of this variable." (let ((frame-or-win (car (mouse-position))) (buf-name "") frame obj-ok) - (setq obj-ok - (if (featurep 'emacs) - (frame-live-p frame-or-win) - (window-live-p frame-or-win))) + (setq obj-ok (frame-live-p frame-or-win)) (if obj-ok - (setq frame (if (featurep 'emacs) frame-or-win (window-frame frame-or-win)) + (setq frame frame-or-win buf-name - (buffer-name (window-buffer (frame-selected-window frame))))) + (buffer-name (window-buffer (frame-selected-window frame))))) (if (string-match "Minibuf" buf-name) nil frame))) @@ -3830,8 +3820,7 @@ Ediff Control Panel to restore highlighting." (make-overlay beg end buff nil 'rear-advance))) ;; never detach - (ediff-overlay-put - overl (if (featurep 'emacs) 'evaporate 'detachable) nil) + (ediff-overlay-put overl 'evaporate nil) ;; make overlay open-ended ;; In emacs, it is made open ended at creation time (when (featurep 'xemacs) |