From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#49632: [PATCH] Ensure that M-x gdb populates gud-repeat-map Date: Tue, 20 Jul 2021 00:53:18 +0300 Organization: LINKOV.NET Message-ID: <87eebuvult.fsf@mail.linkov.net> References: <89178870.2006793.1626665845848@ichabod.co-bxl> <87eebupi5k.fsf@gnus.org> <835yx678fj.fsf@gnu.org> <1533263297.2069981.1626706630967@ichabod.co-bxl> <831r7u70hw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16857"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: larsi@gnus.org, 49632@debbugs.gnu.org, Brian Leung To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 20 00:02:10 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 1m5bL0-0004JE-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 00:02:10 +0200 Original-Received: from localhost ([::1]:50846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5bKy-0003K7-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 18:02:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5bKs-0003Jy-51 for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 18:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5bKr-000102-Qs for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 18:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5bKr-0002iv-J5 for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 18:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 22:02:01 +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.162673211810461 (code B ref 49632); Mon, 19 Jul 2021 22:02:01 +0000 Original-Received: (at 49632) by debbugs.gnu.org; 19 Jul 2021 22:01:58 +0000 Original-Received: from localhost ([127.0.0.1]:60542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5bKo-0002if-Em for submit@debbugs.gnu.org; Mon, 19 Jul 2021 18:01:58 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:40901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5bKn-0002iR-32 for 49632@debbugs.gnu.org; Mon, 19 Jul 2021 18:01:57 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id DAB6540002; Mon, 19 Jul 2021 22:01:49 +0000 (UTC) In-Reply-To: <831r7u70hw.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Jul 2021 19:05:15 +0300") 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:210313 Archived-At: >> 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? 'repeat-mode' provides several ways to exit it: 1. type a non-repeatable key (like a non-isearch key exits isearch-mode); 2. customize repeat-exit-key e.g. to RET (then RET exits like in isearch-mode); 3. customize repeat-exit-timeout to exit after a timeout.