From: Nick Roberts Date: Mon, 31 Oct 2005 09:28:48 +0000 (+0000) Subject: (gdb-many-windows): Leave window configuration X-Git-Tag: emacs-pretest-22.0.90~6166 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f99cf679b39a9a2bff8dc37f3e83f2a057233571;p=emacs.git (gdb-many-windows): Leave window configuration intact if there is no gud-comint-buffer. --- diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 5255b69e08d..c8f1d1db020 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -2398,9 +2398,11 @@ of the inferior. Non-nil means display the layout shown for (if (null arg) (not gdb-many-windows) (> (prefix-numeric-value arg) 0))) - (condition-case nil - (gdb-restore-windows) - (error nil))) + (if (and gud-comint-buffer + (buffer-name gud-comint-buffer)) + (condition-case nil + (gdb-restore-windows) + (error nil)))) (defun gdb-restore-windows () "Restore the basic arrangement of windows used by gdba.