diff options
| author | Nick Roberts | 2005-10-31 09:28:48 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-10-31 09:28:48 +0000 |
| commit | f99cf679b39a9a2bff8dc37f3e83f2a057233571 (patch) | |
| tree | dd1743b1ee2a7948754fc7fea06811d2214cfbc1 | |
| parent | c8010cbb64a8f353f15219841f0010b5fdab87ba (diff) | |
| download | emacs-f99cf679b39a9a2bff8dc37f3e83f2a057233571.tar.gz emacs-f99cf679b39a9a2bff8dc37f3e83f2a057233571.zip | |
(gdb-many-windows): Leave window configuration
intact if there is no gud-comint-buffer.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 8 |
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 | |||
| 2398 | (if (null arg) | 2398 | (if (null arg) |
| 2399 | (not gdb-many-windows) | 2399 | (not gdb-many-windows) |
| 2400 | (> (prefix-numeric-value arg) 0))) | 2400 | (> (prefix-numeric-value arg) 0))) |
| 2401 | (condition-case nil | 2401 | (if (and gud-comint-buffer |
| 2402 | (gdb-restore-windows) | 2402 | (buffer-name gud-comint-buffer)) |
| 2403 | (error nil))) | 2403 | (condition-case nil |
| 2404 | (gdb-restore-windows) | ||
| 2405 | (error nil)))) | ||
| 2404 | 2406 | ||
| 2405 | (defun gdb-restore-windows () | 2407 | (defun gdb-restore-windows () |
| 2406 | "Restore the basic arrangement of windows used by gdba. | 2408 | "Restore the basic arrangement of windows used by gdba. |