unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49632: [PATCH] Ensure that M-x gdb populates gud-repeat-map
@ 2021-07-19  3:37 Brian Leung
  2021-07-19 13:06 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Brian Leung @ 2021-07-19  3:37 UTC (permalink / raw)
  To: 49632

[-- Attachment #1: Type: text/plain, Size: 58 bytes --]

See attached.

-- 
Mailfence.com
Private and secure email

[-- Attachment #2: File Attachment: 0001-Ensure-that-M-x-gdb-populates-gud-repeat-map.patch --]
[-- Type: text/x-diff, Size: 1330 bytes --]

From c288290de6185e3b23f295b32843c2fc7d4a7049 Mon Sep 17 00:00:00 2001
From: Brian Leung <leungbk@mailfence.com>
Date: Sun, 18 Jul 2021 20:14:50 -0700
Subject: [PATCH] Ensure that M-x gdb populates gud-repeat-map

* lisp/progmodes/gdb-mi.el (gdb): Populate gud-repeat-map. This is
copied from the gud-gdb command.
---
 lisp/progmodes/gdb-mi.el | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index aa3365278c..d6a2bce334 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -979,6 +979,17 @@ gdb
   (define-key gud-minor-mode-map [left-margin C-mouse-3]
     'gdb-mouse-jump)
 
+  (pcase-dolist (`(,key . ,cmd) '(("n" . gud-next)
+                                  ("s" . gud-step)
+                                  ("i" . gud-stepi)
+                                  ("c" . gud-cont)
+                                  ("l" . gud-refresh)
+                                  ("f" . gud-finish)
+                                  ("<" . gud-up)
+                                  (">" . gud-down)))
+    (define-key gud-repeat-map key cmd)
+    (put cmd 'repeat-map 'gud-repeat-map))
+
   (setq-local gud-gdb-completion-function 'gud-gdbmi-completions)
 
   (add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-07-28 16:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19  3:37 bug#49632: [PATCH] Ensure that M-x gdb populates gud-repeat-map Brian Leung
2021-07-19 13:06 ` Lars Ingebrigtsen
2021-07-19 13:13   ` Eli Zaretskii
2021-07-19 14:57     ` Brian Leung
2021-07-19 16:05       ` Eli Zaretskii
2021-07-19 21:53         ` Juri Linkov
2021-07-19 14:51   ` Brian Leung via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-19 15:37     ` Juri Linkov
2021-07-19 15:52       ` Lars Ingebrigtsen
2021-07-24  3:33         ` Brian Leung
2021-07-25  6:26           ` Lars Ingebrigtsen
2021-07-25 20:53             ` Juri Linkov
2021-07-25 21:28               ` Brian Leung
2021-07-26 22:48                 ` Juri Linkov
2021-07-27  4:09                   ` Brian Leung
2021-07-27  6:46                     ` Brian Leung
2021-07-27 21:15                       ` Juri Linkov
2021-07-28 11:30                         ` Eli Zaretskii
2021-07-28 16:23                           ` Juri Linkov
2021-07-28 16:30                             ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).