From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Kuiper Newsgroups: gmane.emacs.bugs Subject: Re: freeze after M-x term, ^L Date: 02 May 2002 11:40:54 +0200 Organization: XS4ALL Internet BV Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87offy3n15.fsf@mumon.localnet> References: <200205020732.g427Wi312045@mirage.ca> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020332536 3088 127.0.0.1 (2 May 2002 09:42:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 May 2002 09:42:16 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 173D6O-0000nh-00 for ; Thu, 02 May 2002 11:42:16 +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 173D6J-00082H-00; Thu, 02 May 2002 05:42:11 -0400 Original-Received: from news1.xs4all.nl ([194.109.6.74]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 173D5C-0007r3-00 for ; Thu, 02 May 2002 05:41:02 -0400 Original-Received: by news1.xs4all.nl (8.9.0/8.9.0) id LAA21218 for gnu-emacs-bug@prep.ai.mit.edu; Thu, 2 May 2002 11:40:55 +0200 (CEST) Original-To: gnu-emacs-bug@prep.ai.mit.edu Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 49 Original-NNTP-Posting-Host: node-c-4639.a2000.nl Original-X-Trace: news1.xs4all.nl 1020332454 17691 62.194.70.57 (2 May 2002 09:40:54 GMT) Original-X-Complaints-To: abuse@xs4all.nl Original-NNTP-Posting-Date: 2 May 2002 09:40:54 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:1099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1099 rwa@mirage.ca (Robert W Anderson) writes: > This bug report will be sent to the Free Software Foundation, > not to your local site managers! > Please write in English, because the Emacs maintainers do not have > translators to read other languages for them. > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > Actions: > > M-x term (to enter terminal mode) > ^L (to clear screen) > ls (to list files) > > at which point emacs freezes indefinitely and must be > killed. This problem was solved by Daiki Ueno. His patch will be part of the next Emacs release. FYI here is the patch: Index: term.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/term.el,v retrieving revision 1.46 diff -u -F^( -r1.46 term.el --- term.el 3 Feb 2002 11:25:23 -0000 1.46 +++ term.el 14 Apr 2002 00:56:23 -0000 @@ -2827,11 +2827,11 @@ (defun term-emulate-terminal (proc str) ((eq char ?\^G) (beep t)) ; Bell ((eq char ?\032) - (let ((end (string-match "\r?$" str i))) + (let ((end (string-match "\r?\n" str i))) (if end - (progn (funcall term-command-hook - (substring str (1+ i) end)) - (setq i (match-end 0))) + (funcall term-command-hook + (prog1 (substring str (1+ i) end) + (setq i (match-end 0)))) (setq term-terminal-parameter (substring str i)) (setq term-terminal-state 4) -- Harry Kuiper hkuiper@xs4all.nl Haarlem, The Netherlands