aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2005-08-19 15:03:48 +0000
committerAndreas Schwab <[email protected]>2005-08-19 15:03:48 +0000
commit6a7df22fdb508a944417455238b7714ada78d8b4 (patch)
treec23a99bf4279771d1cffd94ad24d701ff5bb8bcb /lisp/progmodes
parentc9133fa6fb5fa601d21db003128f43d4a815ba56 (diff)
(gud-kill-buffer-hook): Don't kill unrelated
process.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/gud.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 21f61ec1dc..0577e2a2bb 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -2598,7 +2598,7 @@ It is saved for when this flag is not set.")
(defun gud-kill-buffer-hook ()
(setq gud-minor-mode-type gud-minor-mode)
(condition-case nil
- (kill-process (get-buffer-process gud-comint-buffer))
+ (kill-process (get-buffer-process (current-buffer)))
(error nil)))
(defun gud-reset ()