]> git.eshelyaron.com Git - emacs.git/commitdiff
(gud-sentinel): Condition on GUD buffer if it has not been killed.
authorNick Roberts <nickrob@snap.net.nz>
Wed, 24 May 2006 12:05:03 +0000 (12:05 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Wed, 24 May 2006 12:05:03 +0000 (12:05 +0000)
lisp/progmodes/gud.el

index bda30b196e1aee4faedfbe73063061558a945c7d..bbb9df4cb2c7d1157a7333f15a8be51619d0addc 100644 (file)
@@ -2693,10 +2693,10 @@ It is saved for when this flag is not set.")
        ((memq (process-status proc) '(signal exit))
         ;; Stop displaying an arrow in a source file.
         (setq gud-overlay-arrow-position nil)
-        (with-current-buffer gud-comint-buffer
-          (if (memq gud-minor-mode-type '(gdbmi gdba))
-              (gdb-reset)
-            (gud-reset)))
+        (if (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
+                  '(gdba gdbmi))
+            (gdb-reset)
+          (gud-reset))
         (let* ((obuf (current-buffer)))
           ;; save-excursion isn't the right thing if
           ;;  process-buffer is current-buffer