From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49632: [PATCH] Ensure that M-x gdb populates gud-repeat-map Date: Mon, 19 Jul 2021 19:05:15 +0300 Message-ID: <831r7u70hw.fsf@gnu.org> References: <89178870.2006793.1626665845848@ichabod.co-bxl> <87eebupi5k.fsf@gnus.org> <835yx678fj.fsf@gnu.org> <1533263297.2069981.1626706630967@ichabod.co-bxl> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31242"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 49632@debbugs.gnu.org, juri@linkov.net To: Brian Leung Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 19 18:12:53 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 1m5Vsy-0007qD-FH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 18:12:52 +0200 Original-Received: from localhost ([::1]:41440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5Vsx-0002uF-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 12:12:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5VmM-00018Y-RP for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 12:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5VmM-00080g-JE for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 12:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5VmM-0002Bu-F5 for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 12:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49632 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49632-submit@debbugs.gnu.org id=B49632.16267107358354 (code B ref 49632); Mon, 19 Jul 2021 16:06:02 +0000 Original-Received: (at 49632) by debbugs.gnu.org; 19 Jul 2021 16:05:35 +0000 Original-Received: from localhost ([127.0.0.1]:60056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5Vlu-0002Ag-Jr for submit@debbugs.gnu.org; Mon, 19 Jul 2021 12:05:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5Vls-0002AN-CP for 49632@debbugs.gnu.org; Mon, 19 Jul 2021 12:05:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47586) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5Vll-0007ev-5I; Mon, 19 Jul 2021 12:05:25 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3111 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Vlk-0002yl-Pv; Mon, 19 Jul 2021 12:05:25 -0400 In-Reply-To: <1533263297.2069981.1626706630967@ichabod.co-bxl> (message from Brian Leung on Mon, 19 Jul 2021 16:57:11 +0200 (CEST)) 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:210286 Archived-At: > Date: Mon, 19 Jul 2021 16:57:11 +0200 (CEST) > From: Brian Leung > Cc: 49632@debbugs.gnu.org, juri@linkov.net > > RET can repeat only the last command (afaik). If instead I want to run, in order: > > 1. continue > 2. next > 3. next > 4. stepi > > then without this patch, I would need to press > > 1. C-x C-a C-r > 2. C-x C-a C-n > 3. C-x C-a C-n > 4. C-x C-a C-i > > if using M-x gdb. I would instead use M-p (one or more times), then RET. Isn't it better, especially since it works when using GDB's own CLI prompt? Or did you mean you want to invoke these commands in the program source buffer, not in the GUD interaction buffer? But in that case, how do I exit the repeat-mode, to be able to edit the sources?