emacs/lisp/progmodes
Yuan Fu 9dccaf8a5c 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.
2020-03-15 16:47:43 +01:00
..
antlr-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
asm-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autoconf.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bat-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bug-reference.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
cc-align.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-awk.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
cc-bytecomp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-cmds.el CC Mode: allow specified directives (e.g. pragma) to be indented as statements 2020-03-08 16:21:15 +00:00
cc-defs.el * lisp/progmodes/cc-defs.el (c-version): update to 5.34.2 for master branch 2020-03-14 12:27:20 +00:00
cc-engine.el Java Mode: Fix fontification of variable decl inside `for' 2020-02-23 12:41:20 +00:00
cc-fonts.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-guess.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-langs.el CC Mode: allow specified directives (e.g. pragma) to be indented as statements 2020-03-08 16:21:15 +00:00
cc-menus.el Objective C Mode imenu: cease recognizing "functions" within comments, etc. 2020-01-07 20:11:37 +00:00
cc-mode.el CC Mode: allow specified directives (e.g. pragma) to be indented as statements 2020-03-08 16:21:15 +00:00
cc-styles.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-vars.el CC Mode: allow specified directives (e.g. pragma) to be indented as statements 2020-03-08 16:21:15 +00:00
cfengine.el Expose ElDoc functions in a hook (Bug#28257) 2020-02-25 18:15:12 -05:00
cmacexp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
compile.el Make OMake support slightly less expensive (bug#39595) 2020-02-17 11:23:41 +01:00
cperl-mode.el * lisp/progmodes/cperl-mode.el: Clarify comment. 2020-03-01 01:56:42 +01:00
cpp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cwarn.el Make more load-hooks obsolete 2020-01-16 23:06:04 -08:00
dcl-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ebnf-abn.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebnf-bnf.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebnf-dtd.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebnf-ebx.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebnf-iso.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebnf-otz.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ebnf-yac.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebnf2ps.el Remove Emacs 20 bug workaround in ebnf2ps (bug#39663) 2020-02-20 15:52:23 +01:00
ebrowse.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
elisp-mode.el * lisp/progmodes/elisp-mode.el (elisp-enable-lexical-binding): New command 2020-03-03 11:34:49 -05:00
etags.el Honor tags-case-fold-search during xref identifer completion 2020-01-18 00:23:46 +03:00
executable.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
f90.el ; Unmaintain fortran elisp 2020-01-15 18:49:21 -08:00
flymake-cc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
flymake-proc.el flymake: fix typo in variable binding (bug#38752) 2020-01-10 18:15:03 +01:00
flymake.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fortran.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
gdb-mi.el Add store/restore window configuration feature for gdb-mi 2020-03-15 16:47:43 +01:00
glasses.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
grep.el * lisp/progmodes/grep.el (grep-read-files-function): New var. 2020-01-21 09:16:25 -05:00
gud.el Replace add-hook load-hook with with-eval-after-load 2020-01-16 21:21:29 -08:00
hideif.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
hideshow.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
icon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
idlw-complete-structtag.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
idlw-help.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
idlw-shell.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
idlw-toolbar.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
idlwave.el Make more load-hooks obsolete 2020-01-16 23:06:04 -08:00
inf-lisp.el Make more load-hooks obsolete 2020-01-16 23:06:04 -08:00
js.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ld-script.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
m4-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
make-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
meta-mode.el Make more load-hooks obsolete 2020-01-16 23:06:04 -08:00
mixal-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
modula2.el Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo" 2019-06-26 10:24:59 -04:00
octave.el Expose ElDoc functions in a hook (Bug#28257) 2020-02-25 18:15:12 -05:00
opascal.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
pascal.el Fix XEmacs-specific clause in definition of pascal-outline-map. 2020-02-29 14:50:51 -08:00
perl-mode.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
prog-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
project.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
prolog.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ps-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
python.el Expose ElDoc functions in a hook (Bug#28257) 2020-02-25 18:15:12 -05:00
ruby-mode.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
scheme.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sh-script.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
simula.el Fix broken regexps 2020-02-20 11:25:25 +01:00
sql.el * lisp/progmodes/sql.el: Try and avoid eval; use define-derived-mode 2020-03-14 15:39:31 -04:00
subword.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tcl.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vera-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
verilog-mode.el Add `verilog-auto-inst-template-required'. 2020-02-23 17:18:08 -05:00
vhdl-mode.el Merge from origin/emacs-27 2020-03-04 13:57:58 -08:00
which-func.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xref.el Honor tags-case-fold-search during xref identifer completion 2020-01-18 00:23:46 +03:00
xscheme.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00