]> git.eshelyaron.com Git - emacs.git/commit
Ensure that gud commands for M-x gdb are handled by repeat-mode
authorBrian Leung <leungbk@mailfence.com>
Tue, 20 Jul 2021 06:41:01 +0000 (23:41 -0700)
committerJuri Linkov <juri@linkov.net>
Tue, 27 Jul 2021 21:13:40 +0000 (00:13 +0300)
commit29d62099957b2269c2505be3a9059c88d2d71881
treef24050e3043dfaa5fbb461fce4037e7e861ef203
parent30bd6a50aa4cf1cb486b40876fd42bd5da74e77a
Ensure that gud commands for M-x gdb are handled by repeat-mode

* lisp/progmodes/gud.el (gud-gdb-repeat-map): Rename from
gud-repeat-map, and populate at the top-level.
(gud-set-repeat-map-property): Introduce this helper function for
setting the repeat-map property.
(gud-gdb): Use the gud-set-repeat-map-property function to assign the
repeat-map property.

* lisp/progmodes/gdb-mi.el (gdb): Use the gud-set-repeat-map-property
function to assign the repeat-map property.

Because different debugging tools may not support all of the gud-foo
functions, we reassign the repeat-map property within the respective
commands, as opposed to the top level of the files, to ensure that the
repeat-map property is reassigned each time to a symbol corresponding
to the active debugging tool.  (Bug#49632)
lisp/progmodes/gdb-mi.el
lisp/progmodes/gud.el