; Fix last change in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-display-io-buffer): Move to before
the first use.  Doc fix.  Change the group to 'gdb-buffers'.

* etc/NEWS: Announce the new option.  (Bug#65007)
This commit is contained in:
Eli Zaretskii 2023-09-16 13:41:07 +03:00
parent ce77bfff50
commit f44c1969b6
2 changed files with 16 additions and 8 deletions

View file

@ -243,8 +243,9 @@ functions in CJK locales.
* Changes in Specialized Modes and Packages in Emacs 30.1
** gdb-mi
---
** Variable order and truncation can now be configured in 'gdb-many-windows'.
*** Variable order and truncation can now be configured in 'gdb-many-windows'.
The new user option 'gdb-locals-table-row-config' allows users to
configure the order and max length of various properties in the local
variables buffer when using 'gdb-many-windows'.
@ -259,6 +260,13 @@ If you want to get back the old behavior, set the user option to the value
(setopt gdb-locals-table-row-config
`((type . 0) (name . 0) (value . ,gdb-locals-value-limit)))
---
*** New user option 'gdb-display-io-buffer'.
If this is nil, "M-x gdb" will neither create nor display a separate
buffer for the I/O of the program being debugged, but will instead
redirect the program's interaction to the GDB execution buffer. The
default is t, to preserve previous behavior.
** Grep
*** New user option 'grep-use-headings'.

View file

@ -716,6 +716,13 @@ that GDB starts to reuse existing source windows."
:group 'gdb
:version "28.1")
(defcustom gdb-display-io-buffer t
"When non-nil, display the separate `gdb-inferior-io' buffer.
Otherwise, send program output to the GDB buffer."
:type 'boolean
:group 'gdb-buffers
:version "30.1")
(defvar gdbmi-debug-mode nil
"When non-nil, print the messages sent/received from GDB/MI in *Messages*.")
@ -1829,13 +1836,6 @@ this trigger is subscribed to `gdb-buf-publisher' and called with
:group 'gdb
:version "25.1")
(defcustom gdb-display-io-buffer t
"When non-nil, display the `gdb-inferior-io' buffer. Otherwise,
send program output to the GDB buffer."
:type 'boolean
:group 'gdb
:version "30.1")
(defun gdb-inferior-filter (proc string)
(unless (string-equal string "")
(let (buf)