From xemacs-m  Tue Mar 25 14:39:40 1997
Received: from mail.cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.8.55])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA08954
	for <xemacs-beta@xemacs.org>; Tue, 25 Mar 1997 14:39:39 -0600 (CST)
Received: from calico.cis.ohio-state.edu (calico.cis.ohio-state.edu [164.107.142.11]) by mail.cis.ohio-state.edu (8.6.7/8.6.4) with ESMTP id PAA29868; Tue, 25 Mar 1997 15:39:27 -0500
Received: (ware@localhost) by calico.cis.ohio-state.edu (8.8.0/8.6.4) id PAA15113; Tue, 25 Mar 1997 15:39:26 -0500 (EST)
To: "Karl M. Hegbloom" <karlheg@inetarena.com>
Cc: <xemacs-beta@xemacs.org>
Subject: Re: telnet font-lock oddity (patch)
References: <199703251909.LAA27966@bittersweet.inetarena.com>
From: Pete Ware <ware@cis.ohio-state.edu>
Date: 25 Mar 1997 15:39:25 -0500
In-Reply-To: "Karl M. Hegbloom"'s message of Tue, 25 Mar 1997 11:09:46 -0800
Message-ID: <vwmlo7bzoxu.fsf@calico.cis.ohio-state.edu>
Lines: 21
X-Mailer: Gnus v5.4.36/XEmacs 19.15(beta104)

The following HACK fixes the problem with telnet buffers showing
everything in blue (it basically disables it).  I'd really like to
re-work telnet mode so it integrates better with comint.  The problem
with telnet is it deletes the input from the buffer to allow the
remote shell to echo it back.  I haven't figured out how to correct it.

--pete

--- /usr/contrib/lib/xemacs-19.15-b104/lisp/comint/telnet.el	Tue Mar 25 15:22:03 1997
+++ lisp/comint/telnet.el	Sun Feb  2 00:05:04 1997
@@ -211,10 +211,7 @@
       ;; in remote-echo mode, then delete our local copy of the command, and
       ;; the newline that comint-send-input sent.
       (if p1
-	  (progn
-	    ;; ####FIX: Hack to avoid problems with deleted text highlighting
-	    (comint-input-done)
-	    (delete-region p1 (1+ p2)))))))
+	  (delete-region p1 (1+ p2))))))
 
 ;;;###autoload (add-hook 'same-window-regexps "\\*telnet-.*\\*\\(\\|<[0-9]+>\\)")

