Fix bug: If a telnet buffer's process dies and is reused for another
authorArthur Gleckler <edu/mit/csail/zurich/arthur>
Fri, 22 Nov 1991 20:29:27 +0000 (20:29 +0000)
committerArthur Gleckler <edu/mit/csail/zurich/arthur>
Fri, 22 Nov 1991 20:29:27 +0000 (20:29 +0000)
invocation of telnet, if the buffer is already selected, Edwin
complains that there is no process for the buffer.

v7/src/edwin/telnet.scm

index aa57d90e351a67980391c010cfd860ccc4a2f1bd..08eb2f7ef3bf11e8a4b38bfcb95021c96391b97b 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/telnet.scm,v 1.4 1991/10/25 00:03:22 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/telnet.scm,v 1.5 1991/11/22 20:29:27 arthur Exp $
 
 Copyright (c) 1991 Massachusetts Institute of Technology
 
@@ -54,7 +54,7 @@ and telnet-mode-hook, in that order."
   (set-variable! comint-prompt-regexp
                 (or (ref-variable telnet-prompt-pattern)
                     (ref-variable shell-prompt-pattern)))
-  (let ((process (current-process)))
+  (let ((process (get-buffer-process (current-buffer))))
     (if process
        (set-process-filter! process
                             (make-telnet-filter process))))