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

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

[elpa] master ca33520 120/215: Add a prefix arg to "continue" command


From: Rocky Bernstein
Subject: [elpa] master ca33520 120/215: Add a prefix arg to "continue" command
Date: Sat, 30 Jul 2016 14:48:59 +0000 (UTC)

branch: master
commit ca33520fd39d692816d795d7475724082c58673a
Author: Clément Pit--Claudel <address@hidden>
Commit: Clément Pit--Claudel <address@hidden>

    Add a prefix arg to "continue" command
    
    Without it, "c" now just continues without prompting.
    Discussed in #82.
---
 realgud/common/cmds.el |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 21eaa57..72eebd5 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -88,10 +88,12 @@ a shortcut for that key."
   (realgud:cmd-remap line-num "clear" "clear %l" "X"))
 
 (defun realgud:cmd-continue(&optional arg)
-    "Continue execution."
-    (interactive "MContinue args: ")
-    (realgud:cmd-remap arg "continue" "continue" "c")
-)
+    "Continue execution.
+With prefix argument, prompt for argument to \"continue\"
+command."
+    (interactive (when (consp current-prefix-arg)
+                   (list (read-string "Continue args: " nil nil nil t))))
+    (realgud:cmd-remap arg "continue" "continue" "c"))
 
 (defun realgud:cmd-delete(&optional arg)
     "Delete breakpoint by number."



reply via email to

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