all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harry Kuiper <hkuiper@xs4all.nl>
Subject: Re: freeze after M-x term, ^L
Date: 02 May 2002 11:40:54 +0200	[thread overview]
Message-ID: <87offy3n15.fsf@mumon.localnet> (raw)
In-Reply-To: 200205020732.g427Wi312045@mirage.ca

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.
<snip> 
> 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

  reply	other threads:[~2002-05-02  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02  7:32 freeze after M-x term, ^L Robert W Anderson
2002-05-02  9:40 ` Harry Kuiper [this message]
2002-05-02 15:26 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87offy3n15.fsf@mumon.localnet \
    --to=hkuiper@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.