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

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

[elpa] master 7211cc5 192/215: Restart should be a confirm command too.


From: Rocky Bernstein
Subject: [elpa] master 7211cc5 192/215: Restart should be a confirm command too.
Date: Sat, 30 Jul 2016 14:49:05 +0000 (UTC)

branch: master
commit 7211cc5916d5d87c9b33508e2cf8c46e0744b54c
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Restart should be a confirm command too.
---
 realgud/common/cmds.el |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 3f04503..4b2f3eb 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -1,4 +1,4 @@
-;; Copyright (C) 2015 Free Software Foundation, Inc
+;; Copyright (C) 2015, 2016 Free Software Foundation, Inc
 
 ;; Author: Rocky Bernstein <address@hidden>
 
@@ -348,7 +348,9 @@ With a numeric argument move that many levels back."
 (defun realgud:cmd-restart()
   "Restart execution."
   (interactive)
-  (realgud:cmd-run-command nil "restart" nil t nil t))
+  (if (realgud:prompt-if-safe-mode
+                "Restart program?")
+      (realgud:cmd-run-command nil "restart" nil t nil t)))
 
 (defun realgud:cmd-shell()
   "Drop to a shell."



reply via email to

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