diff options
| author | Nick Roberts | 2006-07-13 21:57:05 +0000 |
|---|---|---|
| committer | Nick Roberts | 2006-07-13 21:57:05 +0000 |
| commit | 8d39ce5e923ba01ca42770e8d83297a7033fad9d (patch) | |
| tree | b2bc2fd1a75bd0eed3cd041178c4533fd4585374 | |
| parent | d138996e007e5b2ba7fc6a84c1a4f01bba9162b9 (diff) | |
| download | emacs-8d39ce5e923ba01ca42770e8d83297a7033fad9d.tar.gz emacs-8d39ce5e923ba01ca42770e8d83297a7033fad9d.zip | |
(gud-display-line): Use gdb-display-buffer. Set gdb-source-window.
| -rw-r--r-- | lisp/progmodes/gud.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index c57c88d3ece..97e54135a6f 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -2763,7 +2763,8 @@ Obeying it means displaying in another window the specified file and line." | |||
| 2763 | (gud-find-file true-file))) | 2763 | (gud-find-file true-file))) |
| 2764 | (window (and buffer (or (get-buffer-window buffer) | 2764 | (window (and buffer (or (get-buffer-window buffer) |
| 2765 | (if (memq gud-minor-mode '(gdbmi gdba)) | 2765 | (if (memq gud-minor-mode '(gdbmi gdba)) |
| 2766 | (gdb-display-source-buffer buffer)) | 2766 | (unless (gdb-display-source-buffer buffer) |
| 2767 | (gdb-display-buffer buffer nil))) | ||
| 2767 | (display-buffer buffer)))) | 2768 | (display-buffer buffer)))) |
| 2768 | (pos)) | 2769 | (pos)) |
| 2769 | (if buffer | 2770 | (if buffer |
| @@ -2793,7 +2794,10 @@ Obeying it means displaying in another window the specified file and line." | |||
| 2793 | (cond ((or (< pos (point-min)) (> pos (point-max))) | 2794 | (cond ((or (< pos (point-min)) (> pos (point-max))) |
| 2794 | (widen) | 2795 | (widen) |
| 2795 | (goto-char pos)))) | 2796 | (goto-char pos)))) |
| 2796 | (if window (set-window-point window gud-overlay-arrow-position)))))) | 2797 | (when window |
| 2798 | (set-window-point window gud-overlay-arrow-position) | ||
| 2799 | (if (memq gud-minor-mode '(gdbmi gdba)) | ||
| 2800 | (setq gdb-source-window window))))))) | ||
| 2797 | 2801 | ||
| 2798 | ;; The gud-call function must do the right thing whether its invoking | 2802 | ;; The gud-call function must do the right thing whether its invoking |
| 2799 | ;; keystroke is from the GUD buffer itself (via major-mode binding) | 2803 | ;; keystroke is from the GUD buffer itself (via major-mode binding) |