1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-02 11:50:48 -08:00
emacs/lisp/progmodes
Yuan Fu fd4ee36139 Unify and improve gdb-mi source buffer display logic
Unify the behavior of source buffer display for gdb-mi.  Before this
change, stepping and other gdb command handlers use 'gud-display-line',
and 'gdb-goto-breakpoint' uses 'gdb-display-source-buffer'.  Now whenever
gdb-mi code tries to open a source buffer, 'gdb-display-source-buffer'
is used.  Also, simplify the logic in 'gdb-display-source-buffer' and
add a feature to limit the maximum number of source windows.

* doc/emacs/building.texi (GDB User Interface Layout): Explain source
file display in GDB.
* etc/NEWS (gdb-mi): Add news about source display.
* lisp/progmodes/gdb-mi.el (gdb-source-window): Remove variable,
change to 'gdb-source-window-list'.
(gdb-source-window-list): New variable.
(gdb-display-source-buffer-action,
gdb-max-source-window-count): New options.
(gdb-init-1, gdb-setup-windows, gdb-load-window-configuration,
gdb-restore-windows): Use 'gdb-source-window' rather than
'gdb-source-window-list'.
(gdb-save-window-configuration): Use 'gdb-source-window' rather than
'gdb-source-window-list'.  And consider any buffer that is not a
command or function buffer as a source buffer.
(gdb-display-source-buffer): Use new logic.
(gdb-goto-breakpoint): Remove 'display-buffer' call
and don't set 'gdb-source-buffer' anymore.
* lisp/progmodes/gud.el (gud-display-line): If used by gdb-mi, use
'gdb-display-source-buffer' rather than 'display-buffer'.  Don't set
'gdb-source-buffer' anymore.
2020-04-06 09:56:15 +02: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 C++ Mode: recognize brace blocks without the hitherto required = sign 2020-04-03 20:37:31 +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 javac support in compilation-parse-errors rules 2020-04-01 03:04:31 +03: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 Add "Old-" prefix to "Version" header in some cases 2020-03-21 02:48:24 +01: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 * lisp/progmodes/ebrowse.el (ebrowse-tags-loop-call): Rename 2020-03-28 09:43:14 -04: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 Unify and improve gdb-mi source buffer display logic 2020-04-06 09:56:15 +02: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 Unify and improve gdb-mi source buffer display logic 2020-04-06 09:56:15 +02: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 Handle project--files-in-directory finding no files better 2020-03-30 23:16:27 +03: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 Handle project--files-in-directory finding no files better 2020-03-30 23:16:27 +03:00
xscheme.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00