From unknown Sun Jun 22 04:32:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59144: [PATCH] Add repeat-map for comint and eshell Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 06:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59144 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 59144@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166797462631953 (code B ref -1); Wed, 09 Nov 2022 06:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 06:17:06 +0000 Received: from localhost ([127.0.0.1]:38773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oseOU-0008JG-Nh for submit@debbugs.gnu.org; Wed, 09 Nov 2022 01:17:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:58854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oseOT-0008Iv-Jq for submit@debbugs.gnu.org; Wed, 09 Nov 2022 01:17:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oseOT-00083Y-9K for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 01:17:01 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oseOP-0000Lf-Ke for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 01:16:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6EA0C240027 for ; Wed, 9 Nov 2022 07:16:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667974611; bh=Jsz34ETT8g77ApXG0ZOEyBncdIsvZCUSO3qjIC5+UrE=; h=From:To:Subject:Date:From; b=mvVQ9pE+AqhZYf+Yc05r21iE+G7eEuBrol3m9lyfosuk5HykNQ1hU4XdRG6TX5LyQ zZGQoRN6sTG2/oeNTVDEk3L1uzC9oDY4BYeh3uEPi3NhfPXDSgTKYLWOVk9wJtENrf wExnuPBoJ9X5+FLMctGqjMJx3ZQQflBN6Z3ZdghjNOPn5NC+4YbPtvCx9kfZk323at S32t5UwlqFrVmFEUDg9Kw547TDCcPLqzkgU+eKW8NWwyu/3uIVJnFM/HQ6lhe0EcZ5 OQ1d6wS+toWayMydfNh46LsyatiiQ/4O//3HYI6R50f38yX+lFb6rlJSQXyWGLQr6h f3SK6kv5eiVVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6ZVm0qpFz6tnF for ; Wed, 9 Nov 2022 07:16:47 +0100 (CET) From: Brian Leung Date: Wed, 09 Nov 2022 06:16:45 +0000 Message-ID: <8735aswt2q.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=leungbk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) Repository revision: 68e2a9cd92996dd55ff9599dc1bf99c70070cddb Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: NixOS 22.11 (Raccoon) Configured using: 'configure --prefix=/nix/store/1bs9w4lkx78fsln68yg51y5i8a1czfjj-emacs-git-20221108.0 --disable-build-details --with-modules --with-x-toolkit=lucid --with-xft --with-cairo --with-native-compilation' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-comint-Add-repeat-map-for-comint.patch >From 50a276b3839569c6c9f61e81e1771e958e7fd9c0 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:03:29 -0800 Subject: [PATCH 1/2] comint: Add repeat-map for comint * lisp/comint.el (comint-repeat-map): New keymap. --- lisp/comint.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/comint.el b/lisp/comint.el index 07ced8d321..93b97cb22b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -604,6 +604,14 @@ comint-mode-map menu-bar-final-items)) map)) +(defvar-keymap comint-repeat-map + :doc "Keymap to repeat comint key sequences. Used in `repeat-mode'." + "C-n" #'comint-next-prompt + "C-p" #'comint-previous-prompt) + +(put #'comint-next-prompt 'repeat-map 'comint-repeat-map) +(put #'comint-previous-prompt 'repeat-map 'comint-repeat-map) + ;; Fixme: Is this still relevant? (defvar comint-ptyp t "Non-nil if communications via pty; false if by pipe. Buffer local. -- 2.38.1 --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0002-em-prompt-Add-repeat-map-for-em-prompt.patch >From 0fa475101f29c7e2984b23dc490b7d6d593a98d1 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:11:15 -0800 Subject: [PATCH 2/2] em-prompt: Add repeat-map for em-prompt * lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap. --- lisp/eshell/em-prompt.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index a1a91e7d63..a8744de1db 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el @@ -100,6 +100,14 @@ eshell-prompt-mode-map "C-c C-n" #'eshell-next-prompt "C-c C-p" #'eshell-previous-prompt) +(defvar-keymap eshell-prompt-repeat-map + :doc "Keymap to repeat eshell-prompt key sequences. Used in `repeat-mode'." + "C-n" #'eshell-next-prompt + "C-p" #'eshell-previous-prompt) + +(put #'eshell-next-prompt 'repeat-map 'eshell-prompt-repeat-map) +(put #'eshell-previous-prompt 'repeat-map 'eshell-prompt-repeat-map) + ;;; Functions: (define-minor-mode eshell-prompt-mode -- 2.38.1 --=-=-=-- From unknown Sun Jun 22 04:32:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59144: [PATCH] Add repeat-map for comint and eshell Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 06:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59144 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Brian Leung , 59144@debbugs.gnu.org Received: via spool by 59144-submit@debbugs.gnu.org id=B59144.16679764443020 (code B ref 59144); Wed, 09 Nov 2022 06:48:01 +0000 Received: (at 59144) by debbugs.gnu.org; 9 Nov 2022 06:47:24 +0000 Received: from localhost ([127.0.0.1]:38825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osers-0000me-5l for submit@debbugs.gnu.org; Wed, 09 Nov 2022 01:47:24 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:51094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oserp-0000mK-Vu for 59144@debbugs.gnu.org; Wed, 09 Nov 2022 01:47:23 -0500 Received: by mail-pj1-f45.google.com with SMTP id l6so15896703pjj.0 for <59144@debbugs.gnu.org>; Tue, 08 Nov 2022 22:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=g6Jww7ws7Mg+4taWcL6aBqzeu+3jm9ZrP7hryzUv2Fs=; b=VnWGRqfKwp8JJ7m4VfmJ0TXNMIuh24PIoX5J3g7jOd9Tt4Ztq5+xub+8c3YXHt2AqK Yt7quX2eptgw5IZGfjSuM3K7waugT79mFCk2FU7R4ILkOTptYfYKpFWRN+IcprdZeaEB +ezlWil073do95sMFRJ6WtQx/aYHn49L9aA+9yE+2Dz6rxy98EMdysH0cS4vkPwrUtWL kgecHVQfvnnQ/MIX71XaiGs4OvIN/AaZO8rRZZv4fNa1kIO1aa9t7BzgmUkCaUqAE0wN 9DEq428htNaHYTJtvvHQyeTy31xiJbV6CRMce2xjOwUC3FrTpRZWGyWDqfyLU5XNuqGt u9Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g6Jww7ws7Mg+4taWcL6aBqzeu+3jm9ZrP7hryzUv2Fs=; b=NOUZETXSX3vP161hBC3nV9tjwc1S2fmFV0C02h9styN6SSQFuay5f1XokF+V42A8T7 StdVi/9kuvldEWaHxzORkfP/ZLGNp+f7ydUKawzbitzt+ZUG+EKd46/Tv9frzZUWeGEE /6VTt9WdzNvkGRXnSnkCNVI9l0FZXmXJztEZDjNQSzwws55WvBTYMJL47FCBTnkcETDJ njWAuH1nhvkM0wyLHRRAqO9NTbV74fUlWspF9PpT1k8OgKWw1vnXG42hQEKoV6YLvrS/ IJZaXEQ/ffmX9zlC8orQ5Ss0g7UoeDoSRjYtzpvCKMie+8u4qphFE847wAp7xqy9Fzy6 7bCQ== X-Gm-Message-State: ACrzQf1MKeuaVRyHDHMkG9jvN/7OrE1xmGz1W9e3XJ/080D4y+0JmkQp dvI61WfK/rbTBkxDye8wYWs= X-Google-Smtp-Source: AMsMyM4H48MNhnh24Pue4FeYiqV1ggc97WRhHHTx3tl4R7MsM8xAymXL0VhHpqP+p8hkeJwFjmXB5Q== X-Received: by 2002:a17:902:c14d:b0:187:337b:ad9c with SMTP id 13-20020a170902c14d00b00187337bad9cmr45577881plj.35.1667976435978; Tue, 08 Nov 2022 22:47:15 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id n3-20020aa79843000000b0056c814a501dsm7742783pfq.10.2022.11.08.22.47.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 22:47:15 -0800 (PST) Message-ID: <18daeceb-87d4-e9a3-0528-10e2033cbf76@gmail.com> Date: Tue, 8 Nov 2022 22:47:14 -0800 MIME-Version: 1.0 Content-Language: en-US References: <8735aswt2q.fsf@posteo.net> From: Jim Porter In-Reply-To: <8735aswt2q.fsf@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 11/8/2022 10:16 PM, Brian Leung wrote: > Tags: patch Thanks. For Eshell, there are a few other commands that might make sense to have repeat-maps. For example, 'eshell-forward-argument' (see 'eshell-command-map' in esh-mode.el). These are defined differently, but hopefully repeat-mode can handle them... From unknown Sun Jun 22 04:32:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59144: [PATCH] Add repeat-map for comint and eshell Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 07:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59144 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Jim Porter Cc: 59144@debbugs.gnu.org Received: via spool by 59144-submit@debbugs.gnu.org id=B59144.16679784596505 (code B ref 59144); Wed, 09 Nov 2022 07:21:01 +0000 Received: (at 59144) by debbugs.gnu.org; 9 Nov 2022 07:20:59 +0000 Received: from localhost ([127.0.0.1]:38855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osfOM-0001gr-KL for submit@debbugs.gnu.org; Wed, 09 Nov 2022 02:20:58 -0500 Received: from mout02.posteo.de ([185.67.36.66]:59805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osfOK-0001gd-Al for 59144@debbugs.gnu.org; Wed, 09 Nov 2022 02:20:57 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4C818240101 for <59144@debbugs.gnu.org>; Wed, 9 Nov 2022 08:20:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667978450; bh=rqtDxcBLCRoVM1kbTH7ShebMtjP+MBsUlInPkdaYcbo=; h=From:To:Cc:Subject:Date:From; b=U8VObUfeOhblN6Yr8XA0+edJGQEyq9LJku1nwkIa6oidRUS2Qm2KNoAJdKq8Vjxlr zbb8Qtfl4bDmmYDVrsbZSSlOdS6AWmrYLQPPihczqzTSS15qbt2Xih7SvQMhHFk6yp mWXBIdSB2KGu8cJOBkkDLOVpojR7SvnoGANeVyN/VdjjyVttG5KMjSpI+4Z3zTdBjL jo8XnpiKynjLvGpTNojgjZjgi90fj5ktz0PZ0OkfjLQAxw/tEJktkb7EGio7IIlcH9 jtf9JfKFzO2pejy8cjrweslWWe1KtIyddMEZGk4F1XjMBag6XlRFec4+XlrhN63CgN SAD1Y/aioO6lQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6bwZ2cg3z9rxP; Wed, 9 Nov 2022 08:20:45 +0100 (CET) References: <8735aswt2q.fsf@posteo.net> <18daeceb-87d4-e9a3-0528-10e2033cbf76@gmail.com> From: Brian Leung Date: Wed, 09 Nov 2022 07:19:31 +0000 In-reply-to: <18daeceb-87d4-e9a3-0528-10e2033cbf76@gmail.com> Message-ID: <87y1skvbjn.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; format=flowed > On 11/8/2022 10:16 PM, Brian Leung wrote: >> Tags: patch > > Thanks. For Eshell, there are a few other commands that might > make > sense to have repeat-maps. For example, > 'eshell-forward-argument' (see > 'eshell-command-map' in esh-mode.el). These are defined > differently, > but hopefully repeat-mode can handle them... OK, see attached for additional Eshell and shell patches. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-esh-mode-Add-repeat-map-for-eshell-forward-backward-.patch Content-Description: eshell >From 20f3c46b7475aa640d8af2d1f2c6384ffeb1c5fc Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 23:16:16 -0800 Subject: [PATCH 1/2] esh-mode: Add repeat-map for eshell-{forward,backward}-argument * lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar. --- lisp/eshell/esh-mode.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index 92523fd99e..4357a0e29a 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el @@ -280,6 +280,14 @@ eshell-command-map "C-w" #'backward-kill-word "C-y" #'eshell-repeat-argument) +(defvar-keymap eshell-command-repeat-map + :doc "Keymap to repeat eshell-command key sequences. Used in `repeat-mode'." + "C-f" #'eshell-forward-argument + "C-b" #'eshell-backward-argument) + +(put #'eshell-forward-argument 'repeat-map 'eshell-command-repeat-map) +(put #'eshell-backward-argument 'repeat-map 'eshell-command-repeat-map) + ;;; User Functions: (defun eshell-kill-buffer-function () -- 2.38.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-shell-Add-repeat-map-for-shell-forward-backward-prom.patch Content-Description: shell >From 645aa7e78991adcf32dc4467ab397762f90fc859 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 23:18:23 -0800 Subject: [PATCH 2/2] shell: Add repeat-map for shell-{forward,backward}-prompt * lisp/shell.el (shell-repeat-map): New defvar. --- lisp/shell.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/shell.el b/lisp/shell.el index 641f274045..180a338216 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -393,6 +393,14 @@ shell-mode-map 'complete-expand) map)) +(defvar-keymap shell-repeat-map + :doc "Keymap to repeat eshell-command key sequences. Used in `repeat-mode'." + "C-f" #'shell-forward-command + "C-b" #'shell-backward-command) + +(put #'shell-forward-command 'repeat-map 'shell-repeat-map) +(put #'shell-backward-command 'repeat-map 'shell-repeat-map) + (defcustom shell-mode-hook '() "Hook for customizing Shell mode." :type 'hook -- 2.38.1 --=-=-=-- From unknown Sun Jun 22 04:32:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59144: [PATCH] Add repeat-map for comint and eshell Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 07:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59144 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Jim Porter Cc: 59144@debbugs.gnu.org Received: via spool by 59144-submit@debbugs.gnu.org id=B59144.16679789927315 (code B ref 59144); Wed, 09 Nov 2022 07:30:01 +0000 Received: (at 59144) by debbugs.gnu.org; 9 Nov 2022 07:29:52 +0000 Received: from localhost ([127.0.0.1]:38864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osfWy-0001tv-0t for submit@debbugs.gnu.org; Wed, 09 Nov 2022 02:29:52 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osfWw-0001tf-A0 for 59144@debbugs.gnu.org; Wed, 09 Nov 2022 02:29:51 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 75547240103 for <59144@debbugs.gnu.org>; Wed, 9 Nov 2022 08:29:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667978984; bh=k/HuZ+3hbryuqv1LbXtGyROSwvBvpZknk5GwDIoXO7Y=; h=From:To:Cc:Subject:Date:From; b=bune3aw6PaS2HWC5hPQbGMhfOgXcfNLXk6hPEVFd4l7PlYc7CNB2efTPpC85or0jA iNTJc7THGwFYJPIP3W4ckv5N/lXKLxx3iiOmrgYcKUf80hxVMp+05zJ8zh1/vFq1pu GdUvzyYsNW+H2w+7fYVh/U9JQoM781WuZTyu8GEI6tcqpCFA3+4mKbU6V0jwuAiHDq iZ8OwRhxxueJmWpS6IgO5B7XJblO3FS67mb+hb6xr7w/ji3jTELCsi2fV0VFkBmX6f kszub4W0TK0qDS0hvlzn8ZMhVsl2PNEdAkuHzT1SrOWHozEjFaCNrklE8ISDkYdLY2 UFfdPITxw+rkg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6c6v1YHMz6trH; Wed, 9 Nov 2022 08:29:42 +0100 (CET) References: <8735aswt2q.fsf@posteo.net> <18daeceb-87d4-e9a3-0528-10e2033cbf76@gmail.com> <87y1skvbjn.fsf@posteo.net> From: Brian Leung Date: Wed, 09 Nov 2022 07:27:40 +0000 In-reply-to: <87y1skvbjn.fsf@posteo.net> Message-ID: <87tu38vb4q.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; format=flowed Revised the commits. I reworded some commit messages and fixed a docstring typo. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-comint-Add-repeat-map-for-comint-next-previous-promp.patch Content-Description: comint >From 55663ae863d04e9e2d94bdc51b01fb1a4e2cc982 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:03:29 -0800 Subject: [PATCH 1/4] comint: Add repeat-map for comint-{next,previous}-prompt * lisp/comint.el (comint-repeat-map): New keymap. --- lisp/comint.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/comint.el b/lisp/comint.el index 07ced8d321..93b97cb22b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -604,6 +604,14 @@ comint-mode-map menu-bar-final-items)) map)) +(defvar-keymap comint-repeat-map + :doc "Keymap to repeat comint key sequences. Used in `repeat-mode'." + "C-n" #'comint-next-prompt + "C-p" #'comint-previous-prompt) + +(put #'comint-next-prompt 'repeat-map 'comint-repeat-map) +(put #'comint-previous-prompt 'repeat-map 'comint-repeat-map) + ;; Fixme: Is this still relevant? (defvar comint-ptyp t "Non-nil if communications via pty; false if by pipe. Buffer local. -- 2.38.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-em-prompt-Add-repeat-map-for-eshell-next-previous-pr.patch Content-Description: em-prompt >From bda7857dfae7b92137b9bb67706599940f65a6c2 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:11:15 -0800 Subject: [PATCH 2/4] em-prompt: Add repeat-map for eshell-{next,previous}-prompt * lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap. --- lisp/eshell/em-prompt.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index a1a91e7d63..a8744de1db 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el @@ -100,6 +100,14 @@ eshell-prompt-mode-map "C-c C-n" #'eshell-next-prompt "C-c C-p" #'eshell-previous-prompt) +(defvar-keymap eshell-prompt-repeat-map + :doc "Keymap to repeat eshell-prompt key sequences. Used in `repeat-mode'." + "C-n" #'eshell-next-prompt + "C-p" #'eshell-previous-prompt) + +(put #'eshell-next-prompt 'repeat-map 'eshell-prompt-repeat-map) +(put #'eshell-previous-prompt 'repeat-map 'eshell-prompt-repeat-map) + ;;; Functions: (define-minor-mode eshell-prompt-mode -- 2.38.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0003-esh-mode-Add-repeat-map-for-eshell-forward-backward-.patch Content-Description: esh-mode >From 565fc60e55813caefe431f34f08befd47f15a073 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 23:16:16 -0800 Subject: [PATCH 3/4] esh-mode: Add repeat-map for eshell-{forward,backward}-argument * lisp/eshell/esh-mode.el (eshell-command-repeat-map): New defvar. --- lisp/eshell/esh-mode.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index 92523fd99e..4357a0e29a 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el @@ -280,6 +280,14 @@ eshell-command-map "C-w" #'backward-kill-word "C-y" #'eshell-repeat-argument) +(defvar-keymap eshell-command-repeat-map + :doc "Keymap to repeat eshell-command key sequences. Used in `repeat-mode'." + "C-f" #'eshell-forward-argument + "C-b" #'eshell-backward-argument) + +(put #'eshell-forward-argument 'repeat-map 'eshell-command-repeat-map) +(put #'eshell-backward-argument 'repeat-map 'eshell-command-repeat-map) + ;;; User Functions: (defun eshell-kill-buffer-function () -- 2.38.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0004-shell-Add-repeat-map-for-shell-forward-backward-prom.patch Content-Description: shell >From 5bfa2e7c267b52c1cc59eb965850aac239a6eb0c Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 23:18:23 -0800 Subject: [PATCH 4/4] shell: Add repeat-map for shell-{forward,backward}-prompt * lisp/shell.el (shell-repeat-map): New defvar. --- lisp/shell.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/shell.el b/lisp/shell.el index 641f274045..7c3c925ab8 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -393,6 +393,14 @@ shell-mode-map 'complete-expand) map)) +(defvar-keymap shell-repeat-map + :doc "Keymap to repeat shell key sequences. Used in `repeat-mode'." + "C-f" #'shell-forward-command + "C-b" #'shell-backward-command) + +(put #'shell-forward-command 'repeat-map 'shell-repeat-map) +(put #'shell-backward-command 'repeat-map 'shell-repeat-map) + (defcustom shell-mode-hook '() "Hook for customizing Shell mode." :type 'hook -- 2.38.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 15:23:26 2022 Received: (at control) by debbugs.gnu.org; 12 Nov 2022 20:23:26 +0000 Received: from localhost ([127.0.0.1]:49101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otx2E-0002FE-4n for submit@debbugs.gnu.org; Sat, 12 Nov 2022 15:23:26 -0500 Received: from mail-oi1-f175.google.com ([209.85.167.175]:33764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otx2A-0002Eb-4k for control@debbugs.gnu.org; Sat, 12 Nov 2022 15:23:22 -0500 Received: by mail-oi1-f175.google.com with SMTP id c129so8002092oia.0 for ; Sat, 12 Nov 2022 12:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=rhF3bY/onApKARaHVikwfuQLSkytXGhAIP+CkXJ0prk=; b=WdQN+h1LYCF/fsT6ppCBwXIvzu/I5iobscZuFapUemk1AkgsoksqrwAw43dlCeaHW3 V84cg5M1oizNSoIRYpowGSOsbgovvqJaFkGuofYVjBUOEzixjYdV2RcPy9pBjGIrtsgU otYWxsO+/6DDvPA614OQEZ15P8laNLPv92c1F79N8JbH35/5VzoYejFFO7ADtsHZRS8c ymuQzTGc4dDAsVUOuN5th2bHHpHK0BOYacgUy75CLk1TUgf+WtTbuHdldA9Bjegc6p9Q YiiGYiGTz7JPGd+dutttViYo3sXn2g6AIxTYrhTpLG3DEQ2nda/yoR9cnwvg0dI6ESXT Ozcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rhF3bY/onApKARaHVikwfuQLSkytXGhAIP+CkXJ0prk=; b=IqHopLBFZufTW4yXRhb6p++lbJur7doowgxC2/ymhnLonw0umn964DaKtvMmw8UQZe UwL96Z17nn1TQn4duTo0y8uwKL0thOdwjF+3Way/C7QPxPj3HZlm5zAy9PcaXXGGZ6YV X0XBtvY3vhwi5Vjx7QuVQUT1jozld+FzUTruAH+44KNoQW+zfJzFp3lfZ2PiuM+0FObN 42aH6gWvHfZ4YLRgxTYU0RzoXUpEr1W4KWRWIEcvzkGZCrg4eFask5Dp3AM4fkWG1VP0 A95Guj4odkHNMzybSRXSEHmJ8ldmDbYr2N1oHerC4ezNaX13qiBgRRcrOLHq2z4SoFL6 YyMg== X-Gm-Message-State: ANoB5plp29PgPgz4LAB7JUIOmqHXQANwFTMYY6WrnYBO3DG+ktC2dTLK Yd7yzsw82RAmkVaeDV8zRKVpSGXsFHdKMDoCpXLw2o2x X-Google-Smtp-Source: AA0mqf5o3LSbiI4ypn7yye16NsfgYBfTQ9ojvmbniN5t/+uCoPF2aMsFZ0hXz3NBY75nWqrII7JxHV79t0E8cOw93GE= X-Received: by 2002:a54:4889:0:b0:359:dc32:4f9e with SMTP id r9-20020a544889000000b00359dc324f9emr3161912oic.92.1668284596765; Sat, 12 Nov 2022 12:23:16 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 12 Nov 2022 12:23:16 -0800 From: Stefan Kangas X-Hashcash: 1:20:221112:control@debbugs.gnu.org::UVQhTEO175uVYkQa:01Jp MIME-Version: 1.0 Date: Sat, 12 Nov 2022 12:23:16 -0800 Message-ID: Subject: control message for bug #59144 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 59144 wishlist quit From unknown Sun Jun 22 04:32:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Brian Leung Subject: bug#59144: closed (Re: bug#59144: [PATCH] Add repeat-map for comint and eshell) Message-ID: References: <83edu1exau.fsf@gnu.org> <8735aswt2q.fsf@posteo.net> X-Gnu-PR-Message: they-closed 59144 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 59144@debbugs.gnu.org Date: Thu, 17 Nov 2022 09:38:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1668677882-9406-1" This is a multi-part message in MIME format... ------------=_1668677882-9406-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #59144: [PATCH] Add repeat-map for comint and eshell which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 59144@debbugs.gnu.org. --=20 59144: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59144 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1668677882-9406-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 59144-done) by debbugs.gnu.org; 17 Nov 2022 09:37:56 +0000 Received: from localhost ([127.0.0.1]:59123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovbLI-0002RR-2f for submit@debbugs.gnu.org; Thu, 17 Nov 2022 04:37:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovbLF-0002RB-Cg for 59144-done@debbugs.gnu.org; Thu, 17 Nov 2022 04:37:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovbL8-0007Xc-Ki; Thu, 17 Nov 2022 04:37:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JoIb6eo6BMW7T5iqu13wEkv+ZMwXlS5MhjVn8fOK+hw=; b=OxCGCELYtPs8 S5n0x4gjYU9YCWhn8oVF3OXTF+54OW6K2KC+pRJTXzcYqxGMinQJrorHAQtpZ9/ixEzzMr+vh/W2l MFf5V2d798DDBz4sMoppWJxA3FwZTTJDA+iw1Oxnm30HS6ExrCH9WQhmB7ifSnLCrXd0xUgsTWEVY bo1JwnOlDTIF2SI/AgtsUBGgLINMCWnm9IrGkdZQnEMJmoEzNqdmtTtbA5MbQCc3fso/r0rf7tfEo eJcZtVgML5DXwgYJyG8w5Cj68WxvYH5kohMdGTgbaPB4SycVC6uhoMkw5a2AZHLjtrMx6Lhhk2276 O+epwq0d5D7zXADDcSAGXA==; Received: from [87.69.77.57] (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 1ovbL7-0004kQ-2g; Thu, 17 Nov 2022 04:37:46 -0500 Date: Thu, 17 Nov 2022 11:37:45 +0200 Message-Id: <83edu1exau.fsf@gnu.org> From: Eli Zaretskii To: Brian Leung In-Reply-To: <87tu38vb4q.fsf@posteo.net> (message from Brian Leung on Wed, 09 Nov 2022 07:27:40 +0000) Subject: Re: bug#59144: [PATCH] Add repeat-map for comint and eshell References: <8735aswt2q.fsf@posteo.net> <18daeceb-87d4-e9a3-0528-10e2033cbf76@gmail.com> <87y1skvbjn.fsf@posteo.net> <87tu38vb4q.fsf@posteo.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59144-done Cc: jporterbugs@gmail.com, 59144-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 59144@debbugs.gnu.org > From: Brian Leung > Date: Wed, 09 Nov 2022 07:27:40 +0000 > > Revised the commits. I reworded some commit messages and fixed a > docstring typo. Thanks, installed, and closing the bug. ------------=_1668677882-9406-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 06:17:06 +0000 Received: from localhost ([127.0.0.1]:38773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oseOU-0008JG-Nh for submit@debbugs.gnu.org; Wed, 09 Nov 2022 01:17:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:58854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oseOT-0008Iv-Jq for submit@debbugs.gnu.org; Wed, 09 Nov 2022 01:17:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oseOT-00083Y-9K for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 01:17:01 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oseOP-0000Lf-Ke for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 01:16:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6EA0C240027 for ; Wed, 9 Nov 2022 07:16:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667974611; bh=Jsz34ETT8g77ApXG0ZOEyBncdIsvZCUSO3qjIC5+UrE=; h=From:To:Subject:Date:From; b=mvVQ9pE+AqhZYf+Yc05r21iE+G7eEuBrol3m9lyfosuk5HykNQ1hU4XdRG6TX5LyQ zZGQoRN6sTG2/oeNTVDEk3L1uzC9oDY4BYeh3uEPi3NhfPXDSgTKYLWOVk9wJtENrf wExnuPBoJ9X5+FLMctGqjMJx3ZQQflBN6Z3ZdghjNOPn5NC+4YbPtvCx9kfZk323at S32t5UwlqFrVmFEUDg9Kw547TDCcPLqzkgU+eKW8NWwyu/3uIVJnFM/HQ6lhe0EcZ5 OQ1d6wS+toWayMydfNh46LsyatiiQ/4O//3HYI6R50f38yX+lFb6rlJSQXyWGLQr6h f3SK6kv5eiVVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6ZVm0qpFz6tnF for ; Wed, 9 Nov 2022 07:16:47 +0100 (CET) From: Brian Leung To: bug-gnu-emacs@gnu.org Subject: [PATCH] Add repeat-map for comint and eshell Date: Wed, 09 Nov 2022 06:16:45 +0000 Message-ID: <8735aswt2q.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=leungbk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) Repository revision: 68e2a9cd92996dd55ff9599dc1bf99c70070cddb Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: NixOS 22.11 (Raccoon) Configured using: 'configure --prefix=/nix/store/1bs9w4lkx78fsln68yg51y5i8a1czfjj-emacs-git-20221108.0 --disable-build-details --with-modules --with-x-toolkit=lucid --with-xft --with-cairo --with-native-compilation' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-comint-Add-repeat-map-for-comint.patch >From 50a276b3839569c6c9f61e81e1771e958e7fd9c0 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:03:29 -0800 Subject: [PATCH 1/2] comint: Add repeat-map for comint * lisp/comint.el (comint-repeat-map): New keymap. --- lisp/comint.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/comint.el b/lisp/comint.el index 07ced8d321..93b97cb22b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -604,6 +604,14 @@ comint-mode-map menu-bar-final-items)) map)) +(defvar-keymap comint-repeat-map + :doc "Keymap to repeat comint key sequences. Used in `repeat-mode'." + "C-n" #'comint-next-prompt + "C-p" #'comint-previous-prompt) + +(put #'comint-next-prompt 'repeat-map 'comint-repeat-map) +(put #'comint-previous-prompt 'repeat-map 'comint-repeat-map) + ;; Fixme: Is this still relevant? (defvar comint-ptyp t "Non-nil if communications via pty; false if by pipe. Buffer local. -- 2.38.1 --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0002-em-prompt-Add-repeat-map-for-em-prompt.patch >From 0fa475101f29c7e2984b23dc490b7d6d593a98d1 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 8 Nov 2022 22:11:15 -0800 Subject: [PATCH 2/2] em-prompt: Add repeat-map for em-prompt * lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap. --- lisp/eshell/em-prompt.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index a1a91e7d63..a8744de1db 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el @@ -100,6 +100,14 @@ eshell-prompt-mode-map "C-c C-n" #'eshell-next-prompt "C-c C-p" #'eshell-previous-prompt) +(defvar-keymap eshell-prompt-repeat-map + :doc "Keymap to repeat eshell-prompt key sequences. Used in `repeat-mode'." + "C-n" #'eshell-next-prompt + "C-p" #'eshell-previous-prompt) + +(put #'eshell-next-prompt 'repeat-map 'eshell-prompt-repeat-map) +(put #'eshell-previous-prompt 'repeat-map 'eshell-prompt-repeat-map) + ;;; Functions: (define-minor-mode eshell-prompt-mode -- 2.38.1 --=-=-=-- ------------=_1668677882-9406-1--