From 9f438d80644943fa78ee767eeb7cd391dfc1c2bc Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Mon, 24 May 2004 18:14:13 +0000 Subject: [PATCH] (gdb-breakpoints-mode, gdb-frames-mode) (gdb-locals-mode): Check gud-minor-mode in gud-comint-buffer. --- lisp/progmodes/gdb-ui.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 5fca67dcb80..b376c380e98 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -1170,7 +1170,7 @@ static char *magick[] = { (setq mode-name "Breakpoints") (use-local-map gdb-breakpoints-mode-map) (setq buffer-read-only t) - (if (eq gud-minor-mode 'gdba) + (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)) (gdb-invalidate-breakpoints) (gdbmi-invalidate-breakpoints))) @@ -1290,7 +1290,7 @@ static char *magick[] = { (setq buffer-read-only t) (use-local-map gdb-frames-mode-map) (font-lock-mode -1) - (if (eq gud-minor-mode 'gdba) + (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)) (gdb-invalidate-frames) (gdbmi-invalidate-frames))) @@ -1490,7 +1490,7 @@ static char *magick[] = { (setq mode-name "Locals") (setq buffer-read-only t) (use-local-map gdb-locals-mode-map) - (if (eq gud-minor-mode 'gdba) + (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)) (gdb-invalidate-locals) (gdbmi-invalidate-locals))) -- 2.39.5