Mercurial > emacs
changeset 76381:cca5c886cdea
(gdb): Pop up current GUD buffer if user
tries to start a second session in graphical mode.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Thu, 08 Mar 2007 08:19:28 +0000 |
parents | a5b023692148 |
children | fe29a5e24c69 |
files | lisp/progmodes/gud.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/gud.el Thu Mar 08 08:18:29 2007 +0000 +++ b/lisp/progmodes/gud.el Thu Mar 08 08:19:28 2007 +0000 @@ -690,7 +690,10 @@ (buffer-name gud-comint-buffer) (get-buffer-process gud-comint-buffer) (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))) - (error "Multiple debugging requires restarting in text command mode")) + (let ((same-window-regexps)) + (display-buffer gud-comint-buffer) + (error + "Multiple debugging requires restarting in text command mode"))) (gud-common-init command-line nil 'gud-gdb-marker-filter) (set (make-local-variable 'gud-minor-mode) 'gdb)