From f99cf679b39a9a2bff8dc37f3e83f2a057233571 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Mon, 31 Oct 2005 09:28:48 +0000 Subject: [PATCH] (gdb-many-windows): Leave window configuration intact if there is no gud-comint-buffer. --- lisp/progmodes/gdb-ui.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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. -- 2.39.5