(term-emulate-terminal): Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2002 18:50:07 +0000 (18:50 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2002 18:50:07 +0000 (18:50 +0000)
lisp/term.el

index fb25393..eecd2ab 100644 (file)
@@ -2829,9 +2829,9 @@ See `term-prompt-regexp'."
                           ((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)))
+                                 (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)