branch: master commit 75737a02f00785623f7381e43a6a31aa4d455622 Merge: fd00428 ca33520 Author: R. Bernstein <ro...@users.noreply.github.com> Commit: R. Bernstein <ro...@users.noreply.github.com>
Merge pull request #90 from cpitclaudel/82-add-prefix-arg-to-c Add a prefix arg to "continue" command --- 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."