# HG changeset patch # User Nick Roberts # Date 1215250501 0 # Node ID cd65c90908c421293bfbaddffbf29a9f935893e1 # Parent 1411a65023df5882aed4252612cde7675f53f9a8 (gdb-display-buffer): Don't split a buffer if it's not part of gdb-ui, e.g, at start. diff -r 1411a65023df -r cd65c90908c4 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Sat Jul 05 09:33:35 2008 +0000 +++ b/lisp/progmodes/gdb-ui.el Sat Jul 05 09:35:01 2008 +0000 @@ -3084,12 +3084,16 @@ (if answer (display-buffer buf nil (or frame 0)) ;Deiconify the frame if necessary. (let ((window (get-lru-window))) - (let* ((largest (get-largest-window)) - (cur-size (window-height largest))) - (setq answer (split-window largest)) - (set-window-buffer answer buf) - (set-window-dedicated-p answer dedicated))) - answer))) + (if (memq (buffer-local-value 'gud-minor-mode (window-buffer window)) + '(gdba gdbmi)) + (let* ((largest (get-largest-window)) + (cur-size (window-height largest))) + (setq answer (split-window largest)) + (set-window-buffer answer buf) + (set-window-dedicated-p answer dedicated) + answer) + (set-window-buffer window buf) + window))))) ;;; Shared keymap initialization: