1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

comint: Add repeat-map for comint-{next,previous}-prompt

* lisp/comint.el (comint-repeat-map): New keymap.  (Bug#59144)
This commit is contained in:
Brian Leung 2022-11-08 22:03:29 -08:00 committed by Eli Zaretskii
parent 6678572110
commit 84472c3363

View file

@ -604,6 +604,14 @@ via PTYs.")
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.