diff options
| author | Richard M. Stallman | 1998-11-19 04:33:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-11-19 04:33:37 +0000 |
| commit | 18aa807e60761a03ae4dab9d0056220078096cd0 (patch) | |
| tree | 137abad15b941e506dae9c9c88c4333285da4942 | |
| parent | 47a18cef7c3b32121626893396805c1d8c05db22 (diff) | |
| download | emacs-18aa807e60761a03ae4dab9d0056220078096cd0.tar.gz emacs-18aa807e60761a03ae4dab9d0056220078096cd0.zip | |
(gud-common-init): Use pop-to-buffer.
(same-window-regexps): Add an element that matches all gud buffers.
| -rw-r--r-- | lisp/gud.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index daa40daa6dc..501d19ebea2 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -2042,6 +2042,10 @@ comint mode, which see." | |||
| 2042 | (setq words (cons (substring string beg) words))) | 2042 | (setq words (cons (substring string beg) words))) |
| 2043 | (nreverse words))) | 2043 | (nreverse words))) |
| 2044 | 2044 | ||
| 2045 | ;; Cause our buffers to be displayed, by default, | ||
| 2046 | ;; in the selected window. | ||
| 2047 | ;;;###autoload (add-hook 'same-window-regexps "\\*gud-.*\\*\\(\\|<[0-9]+>\\)") | ||
| 2048 | |||
| 2045 | ;; Perform initializations common to all debuggers. | 2049 | ;; Perform initializations common to all debuggers. |
| 2046 | ;; The first arg is the specified command line, | 2050 | ;; The first arg is the specified command line, |
| 2047 | ;; which starts with the program to debug. | 2051 | ;; which starts with the program to debug. |
| @@ -2072,7 +2076,7 @@ comint mode, which see." | |||
| 2072 | (expand-file-name file-subst) | 2076 | (expand-file-name file-subst) |
| 2073 | file-subst))) | 2077 | file-subst))) |
| 2074 | (filepart (and file-word (concat "-" (file-name-nondirectory file))))) | 2078 | (filepart (and file-word (concat "-" (file-name-nondirectory file))))) |
| 2075 | (switch-to-buffer (concat "*gud" filepart "*")) | 2079 | (pop-to-buffer (concat "*gud" filepart "*")) |
| 2076 | ;; Set default-directory to the file's directory. | 2080 | ;; Set default-directory to the file's directory. |
| 2077 | (and file-word | 2081 | (and file-word |
| 2078 | ;; Don't set default-directory if no directory was specified. | 2082 | ;; Don't set default-directory if no directory was specified. |