From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.bugs Subject: Re: term.el (term-emulate-terminal) Date: Sat, 13 Apr 2002 18:36:53 +0300 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <8962-Sat13Apr2002183653+0300-eliz@is.elta.co.il> References: <87k7rb3ee1.fsf@mumon.localnet> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018712713 9852 127.0.0.1 (13 Apr 2002 15:45:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 13 Apr 2002 15:45:13 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16wPiC-0002Yn-00 for ; Sat, 13 Apr 2002 17:45:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16wPiD-0005xb-00; Sat, 13 Apr 2002 11:45:13 -0400 Original-Received: from mirapoint.inter.net.il ([192.114.186.20]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16wPfP-0005mt-00 for ; Sat, 13 Apr 2002 11:42:19 -0400 Original-Received: from zaretsky (diup-218-178.inter.net.il [213.8.218.178]) by mirapoint.inter.net.il (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id ABA67662; Sat, 13 Apr 2002 18:41:42 +0300 (IDT) Original-To: hkuiper@xs4all.nl, ueno@unixuser.org X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: <87k7rb3ee1.fsf@mumon.localnet> (message from Harry Kuiper on 13 Apr 2002 15:40:54 +0200) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:639 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:639 > From: Harry Kuiper > Date: 13 Apr 2002 15:40:54 +0200 > > I looked at the diffs between term.el in Emacs-21.1 and Emacs-21.2 > using these I backed out the change Eli Zaretskii made at 2002-02-03 > (see below, something about matching terminal prompt). After that > term works OK again for me. Actually, this change was suggested by Daiki Ueno; I was asked (probably by Richard Stallman) to install it. The bug which the change was supposed to fix is explained here: http://mail.gnu.org/pipermail/bug-gnu-emacs/2002-January/010123.html > <<<<< Eli's changes I backed out. >>>>> > > + 2002-02-03 Eli Zaretskii > + > + * term.el (term-emulate-terminal): Extract proper command string > + which is supplied to term-command-hook. > + > > --- 797,814 ---- > *************** See `term-prompt-regexp'." > *** 2856,2864 **** > (beep t)) ; Bell > ((eq char ?\032) > ! (let ((end (string-match "\n" str i))) > (if end > (progn (funcall term-command-hook > ! (substring str (1+ i) (1- end))) > ! (setq i end)) > (setq term-terminal-parameter > (substring str i)) > --- 2831,2839 ---- > (beep t)) ; Bell > ((eq char ?\032) > ! (let ((end (string-match "\r?$" str i))) > (if end > (progn (funcall term-command-hook > ! (substring str (1+ i) end)) > ! (setq i (match-end 0))) > (setq term-terminal-parameter > (substring str i)) > <<<<< End >>>>>