emacs freezes in term & term-emulator

emacs freezes in term & term-emulator

Post by Ryan Nas » Sun, 30 Jun 2002 15:01:42



I am running the gnu-emacs 21.2.1 on a debian linux system and
when I run term or term-emulator my emacs freezes on certain
commands such as an "ls" in a large directory. The process then has to be
kill'd.

If anyone else has experienced problems with this or has any suggestions
or other input it would be greatly appreciated

Thanks

 
 
 

emacs freezes in term & term-emulator

Post by Andrew Nesbi » Wed, 03 Jul 2002 00:33:52



> I am running the gnu-emacs 21.2.1 on a debian linux system and
> when I run term or term-emulator my emacs freezes on certain
> commands such as an "ls" in a large directory. The process then has to be
> kill'd.

I had this exact same problem, and solved the problem by modifying the
term.el source:

~> diff -u ~/emacs21-21.2/lisp/term.el.old ~/emacs21-21.2/lisp/term.el
--- /home/andrew/emacs21-21.2/lisp/term.el.old  Sun Feb  3 22:56:52 2002

                           ((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)

then I byte-compiled the new term.el and copied the new term.elc into
/usr/share/emacs/21.2/lisp (overwriting the old term.elc).  Works fine
now.

I originally found this solution on some XEmacs list, but I think I
had to hack it a bit to get it to work on my system.

HTH, Andrew.

 
 
 

1. term freezes

With M-x term, typing 'ls' after starting the shell causes term to
freeze. I have to kill emacs just to stop it. I've discovered that if
I "exec su - myusername" as soon as the shell starts, then I don't
have any freeze problems. The difference being the default in term is
to run an interactive term, while su - myusername causes a login
shell.

I've noticed that running "exec bash --login" also causes a freeze
upon running ls. This seems weird. Does anyone have a thought on what
might be going on here?

--
My pants just went to high school in the Carlsbad Caverns!!!

2. Wanted: SS10 memory

3. M-x term invokes wrong terminal emulator

4. brand new xbox for US$180?

5. term emulator question....

6. syslog utility for windows 2k?

7. question about term emulator

8. STUN & AS400

9. Is there a Win95 Term emulator that allows Alt for Meta?

10. term, bbdb, & path

11. TERM = EMACS hangs xemacs

12. TERM=emacs terminfo entry?