summaryrefslogtreecommitdiff
path: root/lisp/vc/ediff-wind.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-08-07 17:50:33 +0200
committerStefan Kangas <stefan@marxist.se>2022-08-07 17:50:33 +0200
commit6b4f6dfb4e195c572c6e8502a349afff5f7987b9 (patch)
tree92391db2b3fa50642fbe561839858ef42a7d1bcc /lisp/vc/ediff-wind.el
parentc3e99a870aa26d6d7d64b7fa9f5a8e990089638e (diff)
downloademacs-6b4f6dfb4e195c572c6e8502a349afff5f7987b9.tar.gz
emacs-6b4f6dfb4e195c572c6e8502a349afff5f7987b9.tar.bz2
emacs-6b4f6dfb4e195c572c6e8502a349afff5f7987b9.zip
Make ediff-window-display-p obsolete
* lisp/vc/ediff-init.el (ediff-window-display-p): Redefine as obsolete function alias for 'display-graphic-p'.
Diffstat (limited to 'lisp/vc/ediff-wind.el')
-rw-r--r--lisp/vc/ediff-wind.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el
index 0579cee6ecf..bd3f6880da1 100644
--- a/lisp/vc/ediff-wind.el
+++ b/lisp/vc/ediff-wind.el
@@ -52,7 +52,7 @@
;; Determine which window setup function to use based on current window system.
(defun ediff-choose-window-setup-function-automatically ()
(declare (obsolete ediff-setup-windows-default "24.3"))
- (if (ediff-window-display-p)
+ (if (display-graphic-p)
#'ediff-setup-windows-multiframe
#'ediff-setup-windows-plain))
@@ -304,7 +304,7 @@ keyboard input to go into icons."
(other-window 1))
;; in case user did a no-no on a tty
- (or (ediff-window-display-p)
+ (or (display-graphic-p)
(setq ediff-window-setup-function #'ediff-setup-windows-plain))
(or (ediff-keep-window-config control-buffer)
@@ -844,7 +844,7 @@ keyboard input to go into icons."
(defun ediff-skip-unsuitable-frames (&optional ok-unsplittable)
"Skip unsplittable frames and frames that have dedicated windows.
Create a new splittable frame if none is found."
- (if (ediff-window-display-p)
+ (if (display-graphic-p)
(let ((wind-frame (window-frame))
seen-windows)
(while (and (not (memq (selected-window) seen-windows))
@@ -993,7 +993,7 @@ Create a new splittable frame if none is found."
;; synchronize so the cursor will move to control frame
;; per RMS suggestion
- (if (ediff-window-display-p)
+ (if (display-graphic-p)
(let ((count 7))
(sit-for .1)
(while (and (not (frame-visible-p ctl-frame)) (> count 0))
@@ -1012,7 +1012,7 @@ Create a new splittable frame if none is found."
(defun ediff-destroy-control-frame (ctl-buffer)
(ediff-with-current-buffer ctl-buffer
- (if (and (ediff-window-display-p) (frame-live-p ediff-control-frame))
+ (if (and (display-graphic-p) (frame-live-p ediff-control-frame))
(let ((ctl-frame ediff-control-frame))
(setq ediff-control-frame nil)
(delete-frame ctl-frame))))
@@ -1145,7 +1145,7 @@ It assumes that it is called from within the control buffer."
;; Force mode-line redisplay
(force-mode-line-update)
- (if (and (ediff-window-display-p) (frame-live-p ediff-control-frame))
+ (if (and (display-graphic-p) (frame-live-p ediff-control-frame))
(ediff-refresh-control-frame))
(ediff-with-current-buffer ediff-buffer-A