# HG changeset patch # User Nick Roberts # Date 1130750928 0 # Node ID 8be29c332588b733d4586cf15bb6789a11431991 # Parent d3c8faff2fbc52e63bcaa68a7526e503fa98e858 (gdb-many-windows): Leave window configuration intact if there is no gud-comint-buffer. diff -r d3c8faff2fbc -r 8be29c332588 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Mon Oct 31 09:27:57 2005 +0000 +++ b/lisp/progmodes/gdb-ui.el Mon Oct 31 09:28:48 2005 +0000 @@ -2398,9 +2398,11 @@ (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.