branch: master
commit 0cf93217f568d97f4164e871ab8e5c302f355ec8
Author: Clément Pit--Claudel <[email protected]>
Commit: Clément Pit--Claudel <[email protected]>

    Small fixes in cmds.el
    
    - Fix docstring of cmd-shell
    - Remove unused arg of cmd-terminate
    - Remove a call to local-set-key that affected the current buffer when
      realgud was loaded
---
 realgud/common/cmds.el |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 9f00af3..f86e1c6 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -257,7 +257,7 @@ With a numeric argument move that many levels back."
 )
 
 (defun realgud:cmd-shell(&optional arg)
-    "Restart execution."
+    "Drop to a shell."
     (interactive "")
     (realgud:cmd-remap arg "shell" "shell" "S")
 )
@@ -286,13 +286,13 @@ getting stepped."
     (realgud:cmd-remap nil "step" "step" "s")
 )
 
-(defun realgud:cmd-terminate (&optional arg)
+(defun realgud:cmd-terminate ()
   "Gently terminate source and command buffers without possibly
 issuing a command to the underlying debuger.  Use this if the
 underlying debugger has died or you want to get out of all
 shortkey modes in the source window and possibly restart
 debugging after editing source."
-  (interactive "p")
+  (interactive)
   (realgud:terminate (current-buffer))
 )
 
@@ -331,6 +331,4 @@ continuing execution."
     )
   )
 
-(local-set-key "\C-cq" 'realgud:cmd-quit)
-
 (provide-me "realgud-")

Reply via email to