summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2020-03-15 16:47:43 +0100
committerMartin Rudalics <rudalics@gmx.at>2020-03-15 16:47:43 +0100
commit9dccaf8a5cdb10dae597345ec3741475477a7d97 (patch)
tree1c6c16db369257b4c0da7e3137dc383c8c202527 /lisp/emacs-lisp/cl-macs.el
parentff862f55f4a51c96254a198c17910f90e45b8986 (diff)
downloademacs-9dccaf8a5cdb10dae597345ec3741475477a7d97.tar.gz
emacs-9dccaf8a5cdb10dae597345ec3741475477a7d97.tar.bz2
emacs-9dccaf8a5cdb10dae597345ec3741475477a7d97.zip
Add store/restore window configuration feature for gdb-mi
Add a feature that allows a user to save a gdb window configuration (window layout) to a file with 'gdb-save-window-configuration' and load it back with 'gdb-load-window-configuration'. Set a default window configuration by setting 'gdb-default-window-configuration-file'. Add an option to make gdb preserve the window configuration that the user had before starting gdb. In window.el, add 'with-window-non-dedicated'. * lisp/progmodes/gdb-mi.el (top/level): Require 'pcase' and 'cl-seq'. (gdb--window-configuration-before): New variable. (gdb-restore-window-configuration-after-quit): New option. (gdb-window-configuration-directory, gdb-default-window-configuration-file): New variables. (gdb): Save configuration on startup. (gud-menu-map): Add "Load Layout" and "Save Layout" to menu. Add "Restore Layout After Quit" button to menu. Rename "Restore Window Layout" to "Restore Default Layout", add some help echo, and move it from "GDB-MI" menu to "GDB-WINDOWs" menu. (gdb-toggle-restore-window-configuration): New function. (gdb-get-source-buffer): New function, extracted out of 'gdb-restore-window'. (gdb-setup-windows): Add a condition branch that loads default window configuration when available. Fix docstring. (gdb-buffer-p, gdb-function-buffer-p, gdb--buffer-type, gdb-save-window-configuration, gdb-load-window-configuration): New functions. (gdb-restore-windows): Edit docstring to mention 'gdb-default-window-configuration-file'. (gdb-reset): Restore window configuration after quit. * lisp/window.el (with-window-non-dedicated): New macro.
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
0 files changed, 0 insertions, 0 deletions