summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2005-10-31 09:28:48 +0000
committerNick Roberts <nickrob@snap.net.nz>2005-10-31 09:28:48 +0000
commitf99cf679b39a9a2bff8dc37f3e83f2a057233571 (patch)
treedd1743b1ee2a7948754fc7fea06811d2214cfbc1 /lisp
parentc8010cbb64a8f353f15219841f0010b5fdab87ba (diff)
downloademacs-f99cf679b39a9a2bff8dc37f3e83f2a057233571.tar.gz
emacs-f99cf679b39a9a2bff8dc37f3e83f2a057233571.tar.bz2
emacs-f99cf679b39a9a2bff8dc37f3e83f2a057233571.zip
(gdb-many-windows): Leave window configuration
intact if there is no gud-comint-buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/gdb-ui.el8
1 files 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.