diff options
| author | Alan Mackenzie | 2015-03-16 14:48:09 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2015-03-16 14:48:09 +0000 |
| commit | 3eb4d23a7cdee6f763b5be4947f70a1040c25424 (patch) | |
| tree | 3e79194c03d6122483d652e06f0104a0a54d0153 | |
| parent | 8599360928a0169b232fe1d67cc8228edd4f790c (diff) | |
| download | emacs-3eb4d23a7cdee6f763b5be4947f70a1040c25424.tar.gz emacs-3eb4d23a7cdee6f763b5be4947f70a1040c25424.zip | |
Make Edebug work with Follow Mode.
* emacs-lisp/edebug.el (edebug--display-1): Remove call to
edebug-adjust-window.
(edebug--recursive-edit): Don't bind pre/post-command-hooks to nil
over the recursive edit.
(edebug-adjust-window): Remove.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 34 |
2 files changed, 10 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 747a1d6c650..c6fab7fba3d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2015-03-16 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | Make Edebug work with Follow Mode. | ||
| 4 | |||
| 5 | * emacs-lisp/edebug.el (edebug--display-1): Remove call to | ||
| 6 | edebug-adjust-window. | ||
| 7 | (edebug--recursive-edit): Don't bind pre/post-command-hooks to nil | ||
| 8 | over the recursive edit. | ||
| 9 | (edebug-adjust-window): Remove. | ||
| 10 | |||
| 1 | 2015-03-15 Michael Albinus <michael.albinus@gmx.de> | 11 | 2015-03-15 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 12 | ||
| 3 | * net/tramp-adb.el: | 13 | * net/tramp-adb.el: |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 10918775f49..333f02842f7 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -2446,9 +2446,6 @@ MSG is printed after `::::} '." | |||
| 2446 | edebug-function) | 2446 | edebug-function) |
| 2447 | )) | 2447 | )) |
| 2448 | 2448 | ||
| 2449 | (setcdr edebug-window-data | ||
| 2450 | (edebug-adjust-window (cdr edebug-window-data))) | ||
| 2451 | |||
| 2452 | ;; Test if there is input, not including keyboard macros. | 2449 | ;; Test if there is input, not including keyboard macros. |
| 2453 | (if (input-pending-p) | 2450 | (if (input-pending-p) |
| 2454 | (progn | 2451 | (progn |
| @@ -2677,12 +2674,6 @@ MSG is printed after `::::} '." | |||
| 2677 | (defining-kbd-macro | 2674 | (defining-kbd-macro |
| 2678 | (if edebug-continue-kbd-macro defining-kbd-macro)) | 2675 | (if edebug-continue-kbd-macro defining-kbd-macro)) |
| 2679 | 2676 | ||
| 2680 | ;; Disable command hooks. This is essential when | ||
| 2681 | ;; a hook function is instrumented - to avoid infinite loop. | ||
| 2682 | ;; This may be more than we need, however. | ||
| 2683 | (pre-command-hook nil) | ||
| 2684 | (post-command-hook nil) | ||
| 2685 | |||
| 2686 | ;; others?? | 2677 | ;; others?? |
| 2687 | ) | 2678 | ) |
| 2688 | 2679 | ||
| @@ -2722,31 +2713,6 @@ MSG is printed after `::::} '." | |||
| 2722 | 2713 | ||
| 2723 | ;;; Display related functions | 2714 | ;;; Display related functions |
| 2724 | 2715 | ||
| 2725 | (defun edebug-adjust-window (old-start) | ||
| 2726 | ;; If pos is not visible, adjust current window to fit following context. | ||
| 2727 | ;; (message "window: %s old-start: %s window-start: %s pos: %s" | ||
| 2728 | ;; (selected-window) old-start (window-start) (point)) (sit-for 5) | ||
| 2729 | (if (not (pos-visible-in-window-p)) | ||
| 2730 | (progn | ||
| 2731 | ;; First try old-start | ||
| 2732 | (if old-start | ||
| 2733 | (set-window-start (selected-window) old-start)) | ||
| 2734 | (if (not (pos-visible-in-window-p)) | ||
| 2735 | (progn | ||
| 2736 | ;; (message "resetting window start") (sit-for 2) | ||
| 2737 | (set-window-start | ||
| 2738 | (selected-window) | ||
| 2739 | (save-excursion | ||
| 2740 | (forward-line | ||
| 2741 | (if (< (point) (window-start)) -1 ; one line before if in back | ||
| 2742 | (- (/ (window-height) 2)) ; center the line moving forward | ||
| 2743 | )) | ||
| 2744 | (beginning-of-line) | ||
| 2745 | (point))))))) | ||
| 2746 | (window-start)) | ||
| 2747 | |||
| 2748 | |||
| 2749 | |||
| 2750 | (defconst edebug-arrow-alist | 2716 | (defconst edebug-arrow-alist |
| 2751 | '((Continue-fast . "=") | 2717 | '((Continue-fast . "=") |
| 2752 | (Trace-fast . "-") | 2718 | (Trace-fast . "-") |