emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/realgud 17e0352 1/2: Include "comint-mode-map" bindings


From: Stefan Monnier
Subject: [elpa] externals/realgud 17e0352 1/2: Include "comint-mode-map" bindings in "realgud-track-mode-map".
Date: Wed, 2 Jun 2021 18:28:39 -0400 (EDT)

branch: externals/realgud
commit 17e035228a528cc15e0d067f114d651db041af73
Author: yberfrankc <yberfrankc@gmail.com>
Commit: yberfrankc <yberfrankc@gmail.com>

    Include "comint-mode-map" bindings in "realgud-track-mode-map".
    
    In Emacs-26 "realgud-track-mode-map" had the keybindings of 
"comint-mode-map". This was accomplished
    indirectly by copying the "shell-mode-map" which in turn copied from 
"comint-mode-map".
    
    In Emacs-27 "shell-mode-map" no longer copies the "comint-mode-map" and 
this broke the
    
"realgud-track-mode-map"(https://github.com/emacs-mirror/emacs/commit/1204e7cb81093a42b781eb8c083af9d406de23e9)
    
    To fix set the "comint-mode-map" as parent keymap.
    
    Fixes https://github.com/realgud/realgud/issues/290
---
 realgud/common/track-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/realgud/common/track-mode.el b/realgud/common/track-mode.el
index 2f5bb6b..191e655 100644
--- a/realgud/common/track-mode.el
+++ b/realgud/common/track-mode.el
@@ -45,6 +45,7 @@
 
 (defvar realgud-track-mode-map
   (let ((map  (copy-keymap shell-mode-map)))
+    (set-keymap-parent map comint-mode-map)
     (realgud-populate-debugger-menu map)
     (define-key map "\r"       'realgud:send-input)
     (define-key map [M-right]  'realgud-track-hist-newest)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]