diff options
| author | Yuan Fu | 2020-03-27 09:43:49 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2020-03-27 09:43:49 +0100 |
| commit | ac242ed3843e127c1e2e506ecfd1a4552a2a8c44 (patch) | |
| tree | 2ba149aa6e3b983ef73400453dc173e89c773d42 /doc | |
| parent | de00a933e4b35b42398582eaba58531e5fdd46ca (diff) | |
| download | emacs-ac242ed3843e127c1e2e506ecfd1a4552a2a8c44.tar.gz emacs-ac242ed3843e127c1e2e506ecfd1a4552a2a8c44.zip | |
Add manual and NEWS entries for previous gdb-mi changes
* etc/NEWS: Add entries for saving and restoring GDB window
configurations.
* doc/emacs/building.texi (GDB User Interface Layout): Add
documentation for 'gdb-save-window-configuration',
'gdb-load-window-configuration',
'gdb-default-window-configuration-file',
'gdb-window-configuration-directory',
'gdb-restore-window-configuration-after-quit'. Change 'many-windows
layout' to 'default layout'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/building.texi | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 38963f225ca..8a05680c742 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi | |||
| @@ -975,9 +975,27 @@ displays the following frame layout: | |||
| 975 | @end group | 975 | @end group |
| 976 | @end smallexample | 976 | @end smallexample |
| 977 | 977 | ||
| 978 | @findex gdb-save-window-configuration | ||
| 979 | @findex gdb-load-window-configuration | ||
| 980 | @vindex gdb-default-window-configuration-file | ||
| 981 | @vindex gdb-window-configuration-directory | ||
| 982 | You can customize the window layout based on the one above and save | ||
| 983 | that layout to a file using @code{gdb-save-window-configuration}. | ||
| 984 | Then you can later load this layout back using | ||
| 985 | @code{gdb-load-window-configuration}. (Internally, Emacs uses the | ||
| 986 | term window configuration instead of window layout.) You can set your | ||
| 987 | custom layout as the default one used by @code{gdb-many-windows} by | ||
| 988 | customizing @code{gdb-default-window-configuration-file}. If it is | ||
| 989 | not an absolute file name, GDB looks under | ||
| 990 | @code{gdb-window-configuration-directory} for the file. | ||
| 991 | @code{gdb-window-configuration-directory} defaults to | ||
| 992 | @code{user-emacs-directory} (@pxref{Find Init}). | ||
| 993 | |||
| 994 | |||
| 978 | @findex gdb-restore-windows | 995 | @findex gdb-restore-windows |
| 979 | @findex gdb-many-windows | 996 | @findex gdb-many-windows |
| 980 | If you ever change the window layout, you can restore the many-windows | 997 | @vindex gdb-restore-window-configuration-after-quit |
| 998 | If you ever change the window layout, you can restore the default | ||
| 981 | layout by typing @kbd{M-x gdb-restore-windows}. To toggle | 999 | layout by typing @kbd{M-x gdb-restore-windows}. To toggle |
| 982 | between the many windows layout and a simple layout with just the GUD | 1000 | between the many windows layout and a simple layout with just the GUD |
| 983 | interaction buffer and a source file, type @kbd{M-x gdb-many-windows}. | 1001 | interaction buffer and a source file, type @kbd{M-x gdb-many-windows}. |
| @@ -988,7 +1006,13 @@ interaction buffer and a source file, type @kbd{M-x gdb-many-windows}. | |||
| 988 | of windows on your original frame will not be affected. A separate | 1006 | of windows on your original frame will not be affected. A separate |
| 989 | frame for GDB sessions can come in especially handy if you work on a | 1007 | frame for GDB sessions can come in especially handy if you work on a |
| 990 | text-mode terminal, where the screen estate for windows could be at a | 1008 | text-mode terminal, where the screen estate for windows could be at a |
| 991 | premium. | 1009 | premium. If you choose to start GDB in the same frame, consider |
| 1010 | setting @code{gdb-restore-window-configuration-after-quit} to a | ||
| 1011 | non-@code{nil} value. Your original layout will then be restored | ||
| 1012 | after GDB quits. Use @code{t} to always restore; use | ||
| 1013 | @code{if-gdb-many-windows} to restore only when | ||
| 1014 | @code{gdb-many-windows} is non-@code{nil}; use @code{if-gdb-show-main} | ||
| 1015 | to restore only when @code{gdb-show-main} is non-@code{nil}. | ||
| 992 | 1016 | ||
| 993 | You may also specify additional GDB-related buffers to display, | 1017 | You may also specify additional GDB-related buffers to display, |
| 994 | either in the same frame or a different one. Select the buffers you | 1018 | either in the same frame or a different one. Select the buffers you |