Mercurial > emacs
changeset 66577:8be29c332588
(gdb-many-windows): Leave window configuration
intact if there is no gud-comint-buffer.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Mon, 31 Oct 2005 09:28:48 +0000 |
parents | d3c8faff2fbc |
children | ed2aec2424ae |
files | lisp/progmodes/gdb-ui.el |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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.