+2015-02-12 Oleh Krehel <ohwoeowho@gmail.com>
+
+ * progmodes/gdb-mi.el (gdb-display-io-nopopup): New defcustom.
+ (gdb-inferior-filter): Don't pop up the buried output buffer when
+ `gdb-display-io-nopopup' is non-nil.
+
2015-02-12 Fabián Ezequiel Gallina <fgallina@gnu.org>
python.el: Allow killing shell buffer if process is dead. (Bug#19823)
:syntax-table nil :abbrev-table nil
(make-comint-in-buffer "gdb-inferior" (current-buffer) nil))
+(defcustom gdb-display-io-nopopup nil
+ "When non-nil, and the 'gdb-inferior-io buffer is buried, don't pop it up."
+ :type 'boolean
+ :group 'gdb
+ :version "25.1")
+
(defun gdb-inferior-filter (proc string)
(unless (string-equal string "")
- (gdb-display-buffer (gdb-get-buffer-create 'gdb-inferior-io)))
+ (let (buf)
+ (unless (and gdb-display-io-nopopup
+ (setq buf (gdb-get-buffer 'gdb-inferior-io))
+ (null (get-buffer-window buf)))
+ (gdb-display-buffer (gdb-get-buffer-create 'gdb-inferior-io)))))
(with-current-buffer (gdb-get-buffer-create 'gdb-inferior-io)
(comint-output-filter proc string)))