+2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * term.el (term-emulate-terminal): Fix last change.
+
2002-04-12 Richard M. Stallman <rms@gnu.org>
* files.el (hack-one-local-variable): Clear text props from string
((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)