From 4b17214aab5d108a2b9b060e49ef6a27d43d35b4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 27 May 2017 15:15:18 +0300 Subject: [PATCH] Fix GUD "Stop" display when running pdb * lisp/progmodes/gud.el (gud-menu-map): Don't call gdb-show-stop-p when GUD mode is 'pdb'. (Bug#27024) --- lisp/progmodes/gud.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 8cb912706fd..e9ca7eade36 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -157,7 +157,8 @@ Used to gray out relevant toolbar icons.") (gdb-show-run-p))) ([stop] menu-item "Stop" gud-stop-subjob :visible (or (not (memq gud-minor-mode '(gdbmi pdb))) - (gdb-show-stop-p))) + (and (eq gud-minor-mode 'gdbmi) + (gdb-show-stop-p)))) ([until] menu-item "Continue to selection" gud-until :enable (not gud-running) :visible (and (memq gud-minor-mode '(gdbmi gdb perldb)) -- 2.39.2