From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Leung Newsgroups: gmane.emacs.bugs Subject: bug#49632: [PATCH] Ensure that M-x gdb populates gud-repeat-map Date: Mon, 19 Jul 2021 05:37:25 +0200 (CEST) Message-ID: <89178870.2006793.1626665845848@ichabod.co-bxl> Reply-To: Brian Leung Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2006651_246841991.1626665725906" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1924"; mail-complaints-to="usenet@ciao.gmane.io" To: 49632@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 19 05:39:00 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5K7P-0000FH-D5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 05:38:59 +0200 Original-Received: from localhost ([::1]:42406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5K7O-0001uR-Ce for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Jul 2021 23:38:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5K6V-0001Gv-CG for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 23:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5K6U-000371-2l for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 23:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5K6T-0001KE-TN for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 23:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 03:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49632 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: Bug Gnu Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16266658585060 (code B ref -1); Mon, 19 Jul 2021 03:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jul 2021 03:37:38 +0000 Original-Received: from localhost ([127.0.0.1]:57774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5K65-0001JY-Pr for submit@debbugs.gnu.org; Sun, 18 Jul 2021 23:37:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5K63-0001JR-Rh for submit@debbugs.gnu.org; Sun, 18 Jul 2021 23:37:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5K63-00015D-KQ for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 23:37:35 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:47856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5K61-0002eQ-4G for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 23:37:35 -0400 Original-Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 2B06F6E6 for ; Mon, 19 Jul 2021 05:37:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1626665848; s=20210208-e7xh; d=mailfence.com; i=leungbk@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:Reply-To:From; l=1739; bh=ILcFHZ1xG13iFOhJDXx+j9QkmJf81rqIp2pj5rDc8Rs=; b=rklHZg5EWfFk4JR548vZY5I+YC9wKueHIz6nTd33awjfi2YRlHbx4qcAlAGkKlRx dGh5XA5ynoUMLQkq9Q8cowUkGZ9oYEWqOzZ4Gsj69C+l7HDzw0CqS73/MZUKuD/zqDj iGCbDqPbYgi5AR2RKue60qWFeElvW3Vc3U1eF1LGHmaJcLtijTD5MWSl0AF+4a8ep54 XokVGizFBl0NEdMWlpcgLSYAe5jMPm0ERomJoB4Gx5L2qYN3lpU7/SEV/o1aZIHgFFU PNwCi7FVVgeMQx2xJ+6Coa695o2yShkMath+RVw3IMMqXwaznbSd51eZvT8Nt6Ys8fb mz1JZCcKEA== X-Priority: 3 X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:225491745 Received-SPF: pass client-ip=212.3.242.97; envelope-from=leungbk@mailfence.com; helo=mailout-l3b-97.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210232 Archived-At: ------=_Part_2006651_246841991.1626665725906 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit See attached. -- Mailfence.com Private and secure email ------=_Part_2006651_246841991.1626665725906 Content-Type: text/x-diff; charset=us-ascii; name=0001-Ensure-that-M-x-gdb-populates-gud-repeat-map.patch Content-Transfer-Encoding: 7bit Content-Description: File Attachment: 0001-Ensure-that-M-x-gdb-populates-gud-repeat-map.patch Content-Disposition: attachment; filename=0001-Ensure-that-M-x-gdb-populates-gud-repeat-map.patch >From c288290de6185e3b23f295b32843c2fc7d4a7049 Mon Sep 17 00:00:00 2001 From: Brian Leung 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 ------=_Part_2006651_246841991.1626665725906--