aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-02-04 04:30:03 +0100
committerStefan Kangas2021-02-04 05:27:45 +0100
commitfd9516238a4930bc09b26cc37ae61a2bda95dca2 (patch)
treeaee2f02b5f3a05ff4e98cdb357e4d2246857ab3f
parentc07ebfcbe084e8219d8c2588f23f77ba4ef39087 (diff)
downloademacs-fd9516238a4930bc09b26cc37ae61a2bda95dca2.tar.gz
emacs-fd9516238a4930bc09b26cc37ae61a2bda95dca2.zip
Remove XEmacs compat code from edebug.el
* lisp/emacs-lisp/edebug.el (edebug-window-live-p, edebug-mark): Make obsolete. Update callers.
-rw-r--r--lisp/emacs-lisp/edebug.el25
1 files changed, 14 insertions, 11 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index 84191af88cc..5d595851b9f 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -341,7 +341,7 @@ Return the result of the last expression in BODY."
341 ;; FIXME: We should probably just be using `pop-to-buffer'. 341 ;; FIXME: We should probably just be using `pop-to-buffer'.
342 (setq window 342 (setq window
343 (cond 343 (cond
344 ((and (edebug-window-live-p window) 344 ((and (window-live-p window)
345 (eq (window-buffer window) buffer)) 345 (eq (window-buffer window) buffer))
346 window) 346 window)
347 ((eq (window-buffer) buffer) 347 ((eq (window-buffer) buffer)
@@ -392,7 +392,7 @@ Return the result of the last expression in BODY."
392 ;; Get either a full window configuration or some window information. 392 ;; Get either a full window configuration or some window information.
393 (if (listp which-windows) 393 (if (listp which-windows)
394 (mapcar (lambda (window) 394 (mapcar (lambda (window)
395 (if (edebug-window-live-p window) 395 (if (window-live-p window)
396 (list window 396 (list window
397 (window-buffer window) 397 (window-buffer window)
398 (window-point window) 398 (window-point window)
@@ -407,7 +407,7 @@ Return the result of the last expression in BODY."
407 (mapcar (lambda (one-window-info) 407 (mapcar (lambda (one-window-info)
408 (if one-window-info 408 (if one-window-info
409 (apply (lambda (window buffer point start hscroll) 409 (apply (lambda (window buffer point start hscroll)
410 (if (edebug-window-live-p window) 410 (if (window-live-p window)
411 (progn 411 (progn
412 (set-window-buffer window buffer) 412 (set-window-buffer window buffer)
413 (set-window-point window point) 413 (set-window-point window point)
@@ -2688,7 +2688,7 @@ See `edebug-behavior-alist' for implementations.")
2688 (edebug-outside-window (selected-window)) 2688 (edebug-outside-window (selected-window))
2689 (edebug-outside-buffer (current-buffer)) 2689 (edebug-outside-buffer (current-buffer))
2690 (edebug-outside-point (point)) 2690 (edebug-outside-point (point))
2691 (edebug-outside-mark (edebug-mark)) 2691 (edebug-outside-mark (mark t))
2692 edebug-outside-windows ; Window or screen configuration. 2692 edebug-outside-windows ; Window or screen configuration.
2693 edebug-buffer-points 2693 edebug-buffer-points
2694 2694
@@ -2857,7 +2857,7 @@ See `edebug-behavior-alist' for implementations.")
2857 2857
2858 ;; Unrestore edebug-buffer's window-start, if displayed. 2858 ;; Unrestore edebug-buffer's window-start, if displayed.
2859 (let ((window (car edebug-window-data))) 2859 (let ((window (car edebug-window-data)))
2860 (if (and (edebug-window-live-p window) 2860 (if (and (window-live-p window)
2861 (eq (window-buffer) edebug-buffer)) 2861 (eq (window-buffer) edebug-buffer))
2862 (progn 2862 (progn
2863 (set-window-start window (cdr edebug-window-data) 2863 (set-window-start window (cdr edebug-window-data)
@@ -2876,7 +2876,7 @@ See `edebug-behavior-alist' for implementations.")
2876 ;; Since we may be in a save-excursion, in case of quit, 2876 ;; Since we may be in a save-excursion, in case of quit,
2877 ;; reselect the outside window only. 2877 ;; reselect the outside window only.
2878 ;; Only needed if we are not recovering windows?? 2878 ;; Only needed if we are not recovering windows??
2879 (if (edebug-window-live-p edebug-outside-window) 2879 (if (window-live-p edebug-outside-window)
2880 (select-window edebug-outside-window)) 2880 (select-window edebug-outside-window))
2881 ) ; if edebug-save-windows 2881 ) ; if edebug-save-windows
2882 2882
@@ -4540,11 +4540,6 @@ It is removed when you hit any char."
4540 4540
4541;;; Emacs version specific code 4541;;; Emacs version specific code
4542 4542
4543(defalias 'edebug-window-live-p 'window-live-p)
4544
4545(defun edebug-mark ()
4546 (mark t))
4547
4548(defun edebug-set-conditional-breakpoint (arg condition) 4543(defun edebug-set-conditional-breakpoint (arg condition)
4549 "Set a conditional breakpoint at nearest sexp. 4544 "Set a conditional breakpoint at nearest sexp.
4550The condition is evaluated in the outside context. 4545The condition is evaluated in the outside context.
@@ -4660,7 +4655,15 @@ instrumentation for, defaulting to all functions."
4660 (message "Removed edebug instrumentation from %s" 4655 (message "Removed edebug instrumentation from %s"
4661 (mapconcat #'symbol-name functions ", "))) 4656 (mapconcat #'symbol-name functions ", ")))
4662 4657
4658
4659;;; Obsolete.
4660
4661(defun edebug-mark ()
4662 (declare (obsolete mark "28.1"))
4663 (mark t))
4664
4663(define-obsolete-function-alias 'edebug-mark-marker #'mark-marker "28.1") 4665(define-obsolete-function-alias 'edebug-mark-marker #'mark-marker "28.1")
4666(define-obsolete-function-alias 'edebug-window-live-p #'window-live-p "28.1")
4664 4667
4665(provide 'edebug) 4668(provide 'edebug)
4666;;; edebug.el ends here 4669;;; edebug.el ends here