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

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

[elpa] master c633f3f 136/215: Ignore safe-mode setting when clicking a


From: Rocky Bernstein
Subject: [elpa] master c633f3f 136/215: Ignore safe-mode setting when clicking a toolbar button
Date: Sat, 30 Jul 2016 14:49:00 +0000 (UTC)

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

    Ignore safe-mode setting when clicking a toolbar button
---
 realgud/common/cmds.el |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 9516345..c854cd1 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -41,7 +41,9 @@ Similar to GDB's “set confirm”."
   "Ask use to confirm current command if in safe mode.
 Use MESSAGE plus a space as the prompt string.  Do not confirm
 when command was run from a menu."
-  (if (and realgud-safe-mode last-nonmenu-event)
+  (if (and realgud-safe-mode
+           last-nonmenu-event
+           (not (equal last-nonmenu-event '(tool-bar))))
       (when (y-or-n-p (concat message " "))
         (run-with-timer
          0 nil #'message



reply via email to

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